3 |
|
// |
4 |
|
// GenericParticle |
5 |
|
// |
6 |
< |
// General GenericParticle class. It provides an abstract interface to kinematical quantities |
7 |
< |
// computed by derived classes. |
6 |
> |
// General particle class to be filled and used at analysis time. |
7 |
> |
// It provides an abstract interface to kinematical quantities computed by derived classes. |
8 |
|
// |
9 |
< |
// Authors: C.Loizides |
9 |
> |
// Authors: G.Ceballos, C.Loizides |
10 |
|
//-------------------------------------------------------------------------------------------------- |
11 |
|
|
12 |
|
#ifndef MITANA_DATATREE_GENERICPARTICLE_H |
26 |
|
GenericParticle(Double_t px, Double_t py, Double_t pz, Double_t e) : |
27 |
|
fMom(FourVector(px,py,pz,e)), fQ(0), fObjType(kGenericParticle) {} |
28 |
|
GenericParticle(FourVector &m, Double_t c) : fMom(m), fQ(c), fObjType(kGenericParticle) {} |
29 |
< |
GenericParticle(FourVector &m) : fMom(m), fQ(0), fObjType(kGenericParticle) {} |
29 |
> |
GenericParticle(FourVectorM &m, Double_t c) : fMom(m), fQ(c), fObjType(kGenericParticle) {} |
30 |
|
|
31 |
– |
EObjType ObjType() const { return fObjType; } |
31 |
|
void Print(Option_t *opt="") const; |
32 |
< |
|
34 |
< |
void SetMom(Double_t px, Double_t py, Double_t pz, Double_t e); |
32 |
> |
EObjType RecoObjType() const { return fObjType; } |
33 |
|
void SetCharge(Double_t c) { fQ = c; } |
34 |
< |
void SetObjType(EObjType t) { fObjType = t; } |
34 |
> |
void SetMom(Double_t px, Double_t py, Double_t pz, Double_t e); |
35 |
> |
void SetRecoObjType(EObjType t) { fObjType = t; } |
36 |
|
|
37 |
|
protected: |
38 |
|
Double_t GetCharge() const { return fQ; } |
43 |
|
Double_t fQ; //charge value |
44 |
|
EObjType fObjType; //object type |
45 |
|
|
46 |
< |
ClassDef(GenericParticle, 1) // Generic GenericParticle class |
46 |
> |
ClassDef(GenericParticle, 1) // Generic particle class |
47 |
|
}; |
48 |
|
} |
49 |
|
|
58 |
|
//-------------------------------------------------------------------------------------------------- |
59 |
|
inline void mithep::GenericParticle::GetMom() const |
60 |
|
{ |
61 |
< |
// Get momentum values |
61 |
> |
// Get momentum values. |
62 |
|
|
63 |
|
fCachedMom = fMom; |
64 |
|
} |