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

Comparing UserCode/MitAna/DataTree/interface/SuperCluster.h (file contents):
Revision 1.17 by sixie, Fri Mar 26 15:09:11 2010 UTC vs.
Revision 1.20 by bendavid, Sun Sep 19 18:26:41 2010 UTC

# Line 15 | Line 15
15   #include "MitCommon/DataFormats/interface/Vect3C.h"
16   #include "MitAna/DataTree/interface/DataObject.h"
17   #include "MitAna/DataTree/interface/BasicCluster.h"
18 + #include "MitAna/DataTree/interface/CaloTower.h"
19   #include "MitAna/DataCont/interface/RefArray.h"
20   #include "MitAna/DataCont/interface/Ref.h"
21  
# Line 27 | Line 28 | namespace mithep
28                         fPhiWidth(0), fRawEnergy(0) {}    
29  
30        void                   AddCluster(const BasicCluster *c)          { fClusters.Add(c);        }
31 +      void                   AddTower(const CaloTower *t)               { fCaloTowers.Add(t);      }
32        const BasicCluster    *Cluster(UInt_t i)       const { return fClusters.At(i);               }
33        UInt_t                 ClusterSize()           const { return fClusters.Entries();           }
34        Int_t                  Compare(const TObject *o) const;  
35        Double_t               Energy()                const { return fEnergy;                       }
36        Double_t               Et()                    const;
37        Double_t               Eta()                   const { return fPoint.Eta();                  }
38 +      Double_t               AbsEta()                const { return TMath::Abs(Eta());             }
39        Double_t               EtaWidth()              const { return fEtaWidth;                     }
40 +      Bool_t                 HasTower(const CaloTower *t) const { return fCaloTowers.HasObject(t); }
41        Double_t               HcalDepth1Energy()      const { return fHcalDepth1Energy;             }
42        Double_t               HcalDepth2Energy()      const { return fHcalDepth2Energy;             }
43        Double_t               HadDepth1OverEm()       const { return fHcalDepth1Energy/fEnergy;     }
# Line 42 | Line 46 | namespace mithep
46                                                                       fHcalDepth2Energy)/fEnergy;   }
47        Bool_t                 IsSortable()            const { return kTRUE;                         }
48        EObjType               ObjType()               const { return kSuperCluster;                 }
49 +      UInt_t                 NTowers()               const { return fCaloTowers.Entries();         }
50        Double_t               Phi()                   const { return fPoint.Phi();                  }
51        Double_t               PhiWidth()              const { return fPhiWidth;                     }
52        ThreeVectorC           Point()                 const { return fPoint.V();                    }
# Line 50 | Line 55 | namespace mithep
55        Double_t               RawEnergy()             const { return fRawEnergy;                    }
56        Double_t               Rho()                   const { return fPoint.Rho();                  }
57        const BasicCluster    *Seed()                  const { return fSeedRef.Obj();                }
58 +      const CaloTower       *Tower(UInt_t i)         const { return fCaloTowers.At(i);             }
59        void                   SetEnergy(Double_t energy)                 { fEnergy = energy;        }
60        void                   SetEtaWidth(Double_t etaWidth)             { fEtaWidth = etaWidth;    }
61        void                   SetPhiWidth(Double_t phiWidth)             { fPhiWidth = phiWidth;    }
# Line 71 | Line 77 | namespace mithep
77        Double32_t              fHcalDepth2Energy;    //[0,0,14] hcal depth2 over ECAL energy
78        RefArray<BasicCluster>  fClusters;            //assigned basic clusters
79        Ref<BasicCluster>       fSeedRef;             //seed cluster
80 +      RefArray<CaloTower>     fCaloTowers;          //calo towers (matched by detid)
81  
82 <    ClassDef(SuperCluster, 2) // Super cluster class
82 >    ClassDef(SuperCluster, 3) // Super cluster class
83    };
84   }
85  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines