CMS 3D CMS Logo

PhotonMCTruth.h
Go to the documentation of this file.
1 #ifndef PhotonMCTruth_h
2 #define PhotonMCTruth_h
3 
6 #include <CLHEP/Matrix/Vector.h>
7 #include <CLHEP/Vector/LorentzVector.h>
9 #include <vector>
10 
21 public:
22  PhotonMCTruth() : isAConversion_(0), thePhoton_(0., 0., 0.), theConvVertex_(0., 0., 0.){};
23 
24  PhotonMCTruth(CLHEP::HepLorentzVector v) : thePhoton_(v){};
25 
27  CLHEP::HepLorentzVector v,
28  int vertIndex,
29  int trackId,
30  int motherId,
31  CLHEP::HepLorentzVector mothMom,
32  CLHEP::HepLorentzVector mothVtx,
33  CLHEP::HepLorentzVector convVertex,
34  CLHEP::HepLorentzVector pV,
35  std::vector<ElectronMCTruth>& electrons);
36 
37  CLHEP::HepLorentzVector primaryVertex() const { return thePrimaryVertex_; }
38  int isAConversion() const { return isAConversion_; }
39  CLHEP::HepLorentzVector fourMomentum() const { return thePhoton_; }
40  int vertexInd() const { return theVertexIndex_; }
41  CLHEP::HepLorentzVector vertex() const { return theConvVertex_; }
42  std::vector<ElectronMCTruth> electrons() const { return theElectrons_; }
43  int trackId() const { return theTrackId_; }
44  int motherType() const { return theMotherId_; }
45  CLHEP::HepLorentzVector motherMomentum() const { return theMotherMom_; }
46  CLHEP::HepLorentzVector motherVtx() const { return theMotherVtx_; }
47 
48 private:
50  CLHEP::HepLorentzVector thePhoton_;
54  CLHEP::HepLorentzVector theMotherMom_;
55  CLHEP::HepLorentzVector theMotherVtx_;
56  CLHEP::HepLorentzVector theConvVertex_;
57  CLHEP::HepLorentzVector thePrimaryVertex_;
58  std::vector<ElectronMCTruth> theElectrons_;
59 };
60 
61 #endif
PhotonMCTruth::theVertexIndex_
int theVertexIndex_
Definition: PhotonMCTruth.h:51
PhotonMCTruth::PhotonMCTruth
PhotonMCTruth(CLHEP::HepLorentzVector v)
Definition: PhotonMCTruth.h:24
PhotonMCTruth::isAConversion
int isAConversion() const
Definition: PhotonMCTruth.h:38
PhotonMCTruth::motherType
int motherType() const
Definition: PhotonMCTruth.h:44
PhotonMCTruth::theConvVertex_
CLHEP::HepLorentzVector theConvVertex_
Definition: PhotonMCTruth.h:56
PhotonMCTruth::thePrimaryVertex_
CLHEP::HepLorentzVector thePrimaryVertex_
Definition: PhotonMCTruth.h:57
PhotonMCTruth::theElectrons_
std::vector< ElectronMCTruth > theElectrons_
Definition: PhotonMCTruth.h:58
PhotonMCTruth::theMotherVtx_
CLHEP::HepLorentzVector theMotherVtx_
Definition: PhotonMCTruth.h:55
PhotonMCTruth::theTrackId_
int theTrackId_
Definition: PhotonMCTruth.h:52
findQualityFiles.v
v
Definition: findQualityFiles.py:179
PhotonMCTruth::isAConversion_
int isAConversion_
Definition: PhotonMCTruth.h:49
ElectronMCTruth.h
PhotonMCTruth::trackId
int trackId() const
Definition: PhotonMCTruth.h:43
PhotonMCTruth
Definition: PhotonMCTruth.h:20
PhotonMCTruth::PhotonMCTruth
PhotonMCTruth()
Definition: PhotonMCTruth.h:22
PhotonMCTruth::theMotherMom_
CLHEP::HepLorentzVector theMotherMom_
Definition: PhotonMCTruth.h:54
PhotonMCTruth::motherMomentum
CLHEP::HepLorentzVector motherMomentum() const
Definition: PhotonMCTruth.h:45
PhotonMCTruth::thePhoton_
CLHEP::HepLorentzVector thePhoton_
Definition: PhotonMCTruth.h:50
objects.autophobj.motherId
motherId
Definition: autophobj.py:237
PhotonMCTruth::fourMomentum
CLHEP::HepLorentzVector fourMomentum() const
Definition: PhotonMCTruth.h:39
PhotonMCTruth::theMotherId_
int theMotherId_
Definition: PhotonMCTruth.h:53
PhotonMCTruth::vertex
CLHEP::HepLorentzVector vertex() const
Definition: PhotonMCTruth.h:41
PhotonMCTruth::primaryVertex
CLHEP::HepLorentzVector primaryVertex() const
Definition: PhotonMCTruth.h:37
PhotonMCTruth::electrons
std::vector< ElectronMCTruth > electrons() const
Definition: PhotonMCTruth.h:42
PhotonMCTruth::motherVtx
CLHEP::HepLorentzVector motherVtx() const
Definition: PhotonMCTruth.h:46
SimTrack.h
PhotonMCTruth::vertexInd
int vertexInd() const
Definition: PhotonMCTruth.h:40
GlobalPoint.h