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

Comparing UserCode/MitAna/DataTree/interface/CaloTower.h (file contents):
Revision 1.7 by loizides, Thu Jan 22 14:21:32 2009 UTC vs.
Revision 1.8 by loizides, Wed Feb 18 15:38:54 2009 UTC

# Line 19 | Line 19 | namespace mithep
19    class CaloTower : public DataObject
20    {
21      public:
22 <      CaloTower() {}
23 <      ~CaloTower() {}
24 <    
22 >      CaloTower() : fEmEnergy(0), fHadEnergy(0), fOuterEnergy(0) {}
23  
24        Double_t            E()           const { return (fEmEnergy + fHadEnergy);                }
25        Double_t            EmEt()        const { return fEmEnergy*TMath::Sin(Theta());           }
# Line 39 | Line 37 | namespace mithep
37        Double_t            OuterEt()     const { return fOuterEnergy*TMath::Sin(Theta());        }
38        const ThreeVectorC  Position()    const { return fPosition;                               }
39        Double_t            Theta()       const { return fPosition.Theta();                       }
42
40        void                SetEmEnergy(Double_t EmEnergy)       { fEmEnergy    = EmEnergy;       }
41        void                SetHadEnergy(Double_t HadEnergy)     { fHadEnergy   = HadEnergy;      }
42        void                SetOuterEnergy(Double_t OuterEnergy) { fOuterEnergy = OuterEnergy;    }
# Line 61 | Line 58 | inline const mithep::FourVectorM mithep:
58   {
59    // Compute and return four momentum.
60  
61 <  if ( E() > 0 )
61 >  if (E() > 0)
62      return mithep::FourVectorM(Et(),Eta(),Phi(),0.0);
63    else
64      return mithep::FourVectorM();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines