+ void SetPrimary(Int_t index) {
+ // sets the primary particle index
+ fPrimary = index ;
+ }
+ void SetType(Int_t type) {
+ // sets the particle type
+ fType = type ;
+ }
+ void SetIndexInList(Int_t val) {
+ // sets the value of the index in the list
+ fIndexInList = val ;
+ }
+
+ enum EParticleType { kUNDEFINED=-1, kNEUTRALEM, kNEUTRALHA, kGAMMA , kGAMMAHA ,
+ kABSURDEM, kABSURDHA , kELECTRON, kCHARGEDHA } ;
+
+ protected:
+
+ Int_t fIndexInList ; // the index of this RecParticle in the list stored in TreeR (to be set by analysis)
+ Int_t fPrimary ; // (unique) primary particle index
+ Int_t fType ; // particle type obtained by "virtual" reconstruction