16 |
|
|
17 |
|
public: |
18 |
|
|
19 |
< |
TRootParticle() : TLorentzVector(), vertex_(), type_(0), charge_(0.), status_(0), nDau_(0), motherType_(0), grannyType_(0), dauOneId_(0), dauTwoId_(0), dauThreeId_(0), dauFourId_(0), indexInList_(-1) {;} |
20 |
< |
TRootParticle(const TRootParticle& particle) : TLorentzVector(particle), vertex_(particle.vertex_),type_(particle.type_), charge_(particle.charge_), status_(particle.status_),nDau_(particle.nDau_),motherType_(particle.motherType_),grannyType_(particle.grannyType_), dauOneId_(particle.dauOneId_), dauTwoId_(particle.dauTwoId_), dauThreeId_(particle.dauThreeId_), dauFourId_(particle.dauFourId_), indexInList_(particle.indexInList_) {;} |
21 |
< |
TRootParticle(Double_t px, Double_t py, Double_t pz, Double_t e) : TLorentzVector(px,py,pz,e), vertex_(), type_(0),charge_(0.), status_(0), nDau_(0), motherType_(0), grannyType_(0), dauOneId_(0), dauTwoId_(0), dauThreeId_(0), dauFourId_(0), indexInList_(-1) {;} |
22 |
< |
TRootParticle(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z) : TLorentzVector(px,py,pz,e), vertex_(vtx_x,vtx_y,vtx_z), type_(0), charge_(0.),status_(0), nDau_(0), motherType_(0), grannyType_(0), dauOneId_(0), dauTwoId_(0), dauThreeId_(0), dauFourId_(0), indexInList_(-1) {;} |
23 |
< |
TRootParticle(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z,Int_t type, Float_t charge) : TLorentzVector(px,py,pz,e),vertex_(vtx_x,vtx_y,vtx_z), type_(type), charge_(charge), status_(0), nDau_(0), motherType_(0), grannyType_(0), dauOneId_(0), dauTwoId_(0), dauThreeId_(0), dauFourId_(0), indexInList_(-1) {;} |
24 |
< |
TRootParticle(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z,Int_t type, Float_t charge, Int_t status, Int_t nDau, Int_t motherType, Int_t grannyType, Int_t dauOneId, Int_t dauTwoId, Int_t dauThreeId, Int_t dauFourId, Int_t indexInList) : TLorentzVector(px,py,pz,e),vertex_(vtx_x,vtx_y,vtx_z), type_(type), charge_(charge), status_(status), nDau_(nDau), motherType_(motherType), grannyType_(grannyType), dauOneId_(dauOneId), dauTwoId_(dauTwoId), dauThreeId_(dauThreeId), dauFourId_(dauFourId), indexInList_(indexInList) {;} |
25 |
< |
TRootParticle(const TLorentzVector &momentum) : TLorentzVector(momentum), vertex_(), type_(0), charge_(0.), status_(0), nDau_(0), motherType_(0), grannyType_(0), dauOneId_(0), dauTwoId_(0), dauThreeId_(0), dauFourId_(0), indexInList_(-1) {;} |
26 |
< |
TRootParticle(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) : TLorentzVector(momentum), vertex_(vertex), type_(type), charge_(charge), status_(0), nDau_(0), motherType_(0), grannyType_(0), dauOneId_(0), dauTwoId_(0), dauThreeId_(0), dauFourId_(0), indexInList_(-1) {;} |
27 |
< |
TRootParticle(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge, Int_t status, Int_t nDau, Int_t motherType, Int_t grannyType, Int_t dauOneId, Int_t dauTwoId, Int_t dauThreeId, Int_t dauFourId, Int_t indexInList) : TLorentzVector(momentum), vertex_(vertex), type_(type), charge_(charge), status_(status), nDau_(nDau), motherType_(motherType), grannyType_(grannyType), dauOneId_(dauOneId), dauTwoId_(dauTwoId), dauThreeId_(dauThreeId), dauFourId_(dauFourId), indexInList_(indexInList) {;} |
19 |
> |
TRootParticle() : |
20 |
> |
TLorentzVector() |
21 |
> |
,vertex_() |
22 |
> |
,type_(0) |
23 |
> |
,charge_(0.) |
24 |
> |
,genParticleIndex_(-1) |
25 |
> |
,genParticle_(0) |
26 |
> |
{;} |
27 |
> |
|
28 |
> |
TRootParticle(const TRootParticle& particle) : |
29 |
> |
TLorentzVector(particle) |
30 |
> |
,vertex_(particle.vertex_) |
31 |
> |
,type_(particle.type_) |
32 |
> |
,charge_(particle.charge_) |
33 |
> |
,genParticleIndex_(particle.genParticleIndex_) |
34 |
> |
,genParticle_(particle.genParticle_) |
35 |
> |
{;} |
36 |
> |
|
37 |
> |
TRootParticle(Double_t px, Double_t py, Double_t pz, Double_t e) : |
38 |
> |
TLorentzVector(px,py,pz,e) |
39 |
> |
,vertex_() |
40 |
> |
,type_(0) |
41 |
> |
,charge_(0.) |
42 |
> |
,genParticleIndex_(-1) |
43 |
> |
,genParticle_(0) |
44 |
> |
{;} |
45 |
> |
|
46 |
> |
TRootParticle(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z) : |
47 |
> |
TLorentzVector(px,py,pz,e) |
48 |
> |
,vertex_(vtx_x,vtx_y,vtx_z) |
49 |
> |
,type_(0) |
50 |
> |
,charge_(0.) |
51 |
> |
,genParticleIndex_(-1) |
52 |
> |
,genParticle_(0) |
53 |
> |
{;} |
54 |
> |
|
55 |
> |
TRootParticle(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z,Int_t type, Float_t charge) : |
56 |
> |
TLorentzVector(px,py,pz,e) |
57 |
> |
,vertex_(vtx_x,vtx_y,vtx_z) |
58 |
> |
,type_(type) |
59 |
> |
,charge_(charge) |
60 |
> |
,genParticleIndex_(-1) |
61 |
> |
,genParticle_(0) |
62 |
> |
{;} |
63 |
> |
|
64 |
> |
|
65 |
> |
TRootParticle(const TLorentzVector &momentum) : |
66 |
> |
TLorentzVector(momentum) |
67 |
> |
,vertex_() |
68 |
> |
,type_(0) |
69 |
> |
,charge_(0.) |
70 |
> |
,genParticleIndex_(-1) |
71 |
> |
,genParticle_(0) |
72 |
> |
{;} |
73 |
> |
|
74 |
> |
TRootParticle(const TLorentzVector &momentum, const TVector3 &vertex) : |
75 |
> |
TLorentzVector(momentum) |
76 |
> |
,vertex_(vertex) |
77 |
> |
,type_(0) |
78 |
> |
,charge_(0.) |
79 |
> |
,genParticleIndex_(-1) |
80 |
> |
,genParticle_(0) |
81 |
> |
{;} |
82 |
> |
|
83 |
> |
TRootParticle(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) : |
84 |
> |
TLorentzVector(momentum) |
85 |
> |
,vertex_(vertex) |
86 |
> |
,type_(type) |
87 |
> |
,charge_(charge) |
88 |
> |
,genParticleIndex_(-1) |
89 |
> |
,genParticle_(0) |
90 |
> |
{;} |
91 |
> |
|
92 |
|
~TRootParticle() {;} |
93 |
|
|
94 |
+ |
|
95 |
|
Double_t vx() const { return vertex_.x(); } |
96 |
|
Double_t vy() const { return vertex_.y(); } |
97 |
|
Double_t vz() const { return vertex_.z(); } |
98 |
|
Int_t type() const { return type_; } |
99 |
|
Float_t charge() const { return charge_; } |
100 |
< |
Int_t status() const {return status_; } |
101 |
< |
Int_t nDau() const {return nDau_; } |
102 |
< |
Int_t motherType() const {return motherType_; } |
103 |
< |
Int_t grannyType() const {return grannyType_; } |
39 |
< |
Int_t dauOneId() const {return dauOneId_;} |
40 |
< |
Int_t dauTwoId() const {return dauTwoId_;} |
41 |
< |
Int_t dauThreeId() const {return dauThreeId_;} |
42 |
< |
Int_t dauFourId() const {return dauFourId_;} |
43 |
< |
Int_t indexInList() const {return indexInList_; } |
100 |
> |
Int_t genParticleIndex() const { return genParticleIndex_; } |
101 |
> |
TRootParticle* genParticle() const { return (TRootParticle*) genParticle_.GetObject() ;} |
102 |
> |
virtual TString typeName() const { return "TRootParticle"; } |
103 |
> |
|
104 |
|
|
105 |
|
// FIXME setVx, setVy and setVz must modify the TLorentzVector ? |
106 |
|
void setVx(Double_t vx) { vertex_.SetX(vx); } |
108 |
|
void setVz(Double_t vz) { vertex_.SetZ(vz); } |
109 |
|
void setType(Int_t type) { type_ = type; } |
110 |
|
void setCharge(Int_t charge) { charge_ = charge; } |
111 |
< |
void setStatus(Int_t status) { status_ = status; } |
112 |
< |
void setnDau(Int_t nDau) { nDau_ = nDau; } |
113 |
< |
void setMotherType(Int_t motherType) { motherType_ = motherType; } |
114 |
< |
void setGrannyType(Int_t grannyType) { grannyType_ = grannyType; } |
115 |
< |
void setIndexInList(Int_t indexInList) {indexInList_ = indexInList; } |
116 |
< |
|
117 |
< |
friend std::ostream& operator<< (std::ostream& stream, const TRootParticle& part) { |
118 |
< |
stream << "Type=" << part.type_ << " Charge=" << part.charge_ << " Status=" << part.status_ << " number of daughters=" << |
119 |
< |
part.nDau_ << " mother ID=" << part.motherType_ << " granny ID=" << part.grannyType_ << " index in the MC list=" << part.indexInList_ << " (Et,eta,phi)=("<< part.Et() <<","<< part.Eta() <<","<< part.Phi() << ")" |
120 |
< |
<< " vertex(x,y,z)=("<< part.vx() <<","<< part.vy() <<","<< part.vz() << ")"; |
121 |
< |
return stream; |
122 |
< |
}; |
63 |
< |
|
64 |
< |
|
111 |
> |
void setGenParticleIndex(Int_t genParticleIndex) { genParticleIndex_ = genParticleIndex; } |
112 |
> |
void setGenParticle(TObject* genParticle) { genParticle_ = genParticle; } |
113 |
> |
|
114 |
> |
friend std::ostream& operator<< (std::ostream& stream, const TRootParticle& part) |
115 |
> |
{ |
116 |
> |
stream << "Type=" << part.type_ << " Charge=" << part.charge_ << " (Et,eta,phi)=("<< part.Et() <<","<< part.Eta() <<","<< part.Phi() << ")" |
117 |
> |
<< " vertex(x,y,z)=("<< part.vx() <<","<< part.vy() <<","<< part.vz() << ")"; |
118 |
> |
return stream; |
119 |
> |
}; |
120 |
> |
|
121 |
> |
|
122 |
> |
|
123 |
|
protected: |
124 |
|
|
125 |
|
TVector3 vertex_; |
126 |
|
Int_t type_; |
127 |
|
Float_t charge_; |
128 |
< |
Int_t status_; |
129 |
< |
Int_t nDau_; |
72 |
< |
Int_t motherType_; |
73 |
< |
Int_t grannyType_; |
74 |
< |
Int_t dauOneId_; |
75 |
< |
Int_t dauTwoId_; |
76 |
< |
Int_t dauThreeId_; |
77 |
< |
Int_t dauFourId_; |
78 |
< |
Int_t indexInList_; |
128 |
> |
Int_t genParticleIndex_; |
129 |
> |
TRef genParticle_; |
130 |
|
|
131 |
|
ClassDef (TRootParticle,1); |
132 |
|
}; |