コード例 #1
0
ファイル: Particle.cpp プロジェクト: jjacob/AnalysisSoftware
double Particle::angle(const ParticlePointer otherParticle) const {
	return fourvector.Angle(otherParticle->getFourVector().Vect());
}
コード例 #2
0
ファイル: Particle.cpp プロジェクト: jjacob/AnalysisSoftware
double Particle::invariantMass(const ParticlePointer otherParticle) const {
	TLorentzVector combinedParticle(fourvector + otherParticle->getFourVector());
	return combinedParticle.M();
}
コード例 #3
0
ファイル: Particle.cpp プロジェクト: jjacob/AnalysisSoftware
double Particle::relativePtTo(const ParticlePointer otherParticle) const {
	double relativePt = fourvector.Perp(otherParticle->getFourVector().Vect());
	return fabs(relativePt);
}
コード例 #4
0
ファイル: Particle.cpp プロジェクト: jjacob/AnalysisSoftware
double Particle::deltaR(const ParticlePointer other) const {
	return fourvector.DeltaR(other->getFourVector());
}