ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/GenericParticle.h
(Generate patch)

Comparing UserCode/MitAna/DataTree/interface/GenericParticle.h (file contents):
Revision 1.2 by ceballos, Thu Apr 9 10:28:51 2009 UTC vs.
Revision 1.3 by loizides, Thu Apr 9 11:24:45 2009 UTC

# Line 3 | Line 3
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
# Line 26 | Line 26 | namespace mithep
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;              }
# Line 44 | Line 43 | namespace mithep
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  
# Line 59 | Line 58 | inline void mithep::GenericParticle::Set
58   //--------------------------------------------------------------------------------------------------
59   inline void mithep::GenericParticle::GetMom() const
60   {
61 <  // Get momentum values
61 >  // Get momentum values.
62  
63    fCachedMom = fMom;
64   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines