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.23 by bendavid, Wed Jul 27 15:15:07 2011 UTC vs.
Revision 1.24 by bendavid, Sun Oct 9 23:28:47 2011 UTC

# Line 25 | Line 25 | namespace mithep
25    {
26      public:
27        SuperCluster() : fEnergy(0), fEtaWidth(0), fPreshowerEnergy(0),
28 <                       fPhiWidth(0), fRawEnergy(0) {}    
28 >                       fPhiWidth(0), fRawEnergy(0),
29 >                       fEtaC(-99.), fEtaS(-99.), fEtaM(-99.),
30 >                       fPhiC(-99.), fPhiS(-99.), fPhiM(-99.),
31 >                       fXC(-99.), fXS(-99.), fXM(-99.), fXZ(-99.),
32 >                       fYC(-99.), fYS(-99.), fYM(-99.), fYZ(-99.) {}    
33  
34        void                   AddCluster(const BasicCluster *c)          { fClusters.Add(c);        }
35        void                   AddTower(const CaloTower *t)               { fCaloTowers.Add(t);      }
# Line 59 | Line 63 | namespace mithep
63        Double_t               R9()                    const { return fSeedRef.Obj()->E3x3()/fRawEnergy; }
64        const BasicCluster    *Seed()                  const { return fSeedRef.Obj();                }
65        const CaloTower       *Tower(UInt_t i)         const { return fCaloTowers.At(i);             }
66 +      Double_t               EtaC()                  const { return fEtaC;                         }
67 +      Double_t               EtaS()                  const { return fEtaS;                         }
68 +      Double_t               EtaM()                  const { return fEtaM;                         }
69 +      Double_t               PhiC()                  const { return fPhiC;                         }
70 +      Double_t               PhiS()                  const { return fPhiS;                         }
71 +      Double_t               PhiM()                  const { return fPhiM;                         }      
72 +      Double_t               XC()                    const { return fXC;                           }
73 +      Double_t               XS()                    const { return fXS;                           }
74 +      Double_t               XM()                    const { return fXM;                           }      
75 +      Double_t               XZ()                    const { return fXZ;                           }      
76 +      Double_t               YC()                    const { return fYC;                           }
77 +      Double_t               YS()                    const { return fYS;                           }
78 +      Double_t               YM()                    const { return fYM;                           }      
79 +      Double_t               YZ()                    const { return fYZ;                           }
80        void                   SetEnergy(Double_t energy)                 { fEnergy = energy;        }
81        void                   SetEtaWidth(Double_t etaWidth)             { fEtaWidth = etaWidth;    }
82        void                   SetPhiWidth(Double_t phiWidth)             { fPhiWidth = phiWidth;    }
# Line 68 | Line 86 | namespace mithep
86        void                   SetHcalDepth2Energy(Double_t x)            { fHcalDepth2Energy = x;   }
87        void                   SetSeed(const BasicCluster *s)             { fSeedRef = s;            }
88        void                   SetXYZ(Double_t x, Double_t y, Double_t z) { fPoint.SetXYZ(x,y,z);    }
89 +      void                   SetEtaC(Double_t x)                        { fEtaC = x;               }
90 +      void                   SetEtaS(Double_t x)                        { fEtaS = x;               }
91 +      void                   SetEtaM(Double_t x)                        { fEtaM = x;               }
92 +      void                   SetPhiC(Double_t x)                        { fPhiC = x;               }
93 +      void                   SetPhiS(Double_t x)                        { fPhiS = x;               }
94 +      void                   SetPhiM(Double_t x)                        { fPhiM = x;               }      
95 +      void                   SetXC(Double_t x)                          { fXC = x;                 }
96 +      void                   SetXS(Double_t x)                          { fXS = x;                 }
97 +      void                   SetXM(Double_t x)                          { fXM = x;                 }      
98 +      void                   SetXZ(Double_t x)                          { fXZ = x;                 }        
99 +      void                   SetYC(Double_t x)                          { fYC = x;                 }
100 +      void                   SetYS(Double_t x)                          { fYS = x;                 }
101 +      void                   SetYM(Double_t x)                          { fYM = x;                 }      
102 +      void                   SetYZ(Double_t x)                          { fYZ = x;                 }      
103        
104      protected:
105        Vect3C                  fPoint;               //centroid Position
# Line 81 | Line 113 | namespace mithep
113        RefArray<BasicCluster>  fClusters;            //assigned basic clusters
114        Ref<BasicCluster>       fSeedRef;             //seed cluster
115        RefArray<CaloTower>     fCaloTowers;          //calo towers (matched by detid)
116 +      Double32_t              fEtaC;                //local coordinates
117 +      Double32_t              fEtaS;                //local coordinates
118 +      Double32_t              fEtaM;                //local coordinates
119 +      Double32_t              fPhiC;                //local coordinates
120 +      Double32_t              fPhiS;                //local coordinates
121 +      Double32_t              fPhiM;                //local coordinates      
122 +      Double32_t              fXC;                  //local coordinates
123 +      Double32_t              fXS;                  //local coordinates
124 +      Double32_t              fXM;                  //local coordinates
125 +      Double32_t              fXZ;                  //local coordinates
126 +      Double32_t              fYC;                  //local coordinates
127 +      Double32_t              fYS;                  //local coordinates
128 +      Double32_t              fYM;                  //local coordinates
129 +      Double32_t              fYZ;                  //local coordinates
130  
131 <    ClassDef(SuperCluster, 3) // Super cluster class
131 >    ClassDef(SuperCluster, 4) // Super cluster class
132    };
133   }
134  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines