Changeset 270 in svn for trunk/Utilities/ExRootAnalysis/interface
- Timestamp:
- Feb 14, 2009, 2:06:20 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/ExRootAnalysis/interface/BlockClasses.h
r268 r270 164 164 float Phi; // particle azimuthal angle in rad 165 165 166 float EtaCalo; // particle pseudorapidity when entering the calo,167 float PhiCalo; // particle azimuthal angle in rad when entering the calo168 169 166 void Set(const TLorentzVector& momentum); 170 167 void Set(const float px, const float py, const float pz, const float e); 171 168 void SetEtaPhi(const float eta, const float phi) {Eta=eta; Phi=phi;}; 172 void SetEtaPhiCalo(const float eta, const float phi) {EtaCalo=eta; PhiCalo=phi;};173 169 void SetEtaPhiEET(const float eta, const float phi, const float e, const float et); 174 170 static TCompare *fgCompare; //! … … 179 175 }; 180 176 181 182 //--------------------------------------------------------------------------- 183 184 class TRootGenParticle: public TRootParticle { 185 186 public: 187 TRootGenParticle() {_initialised=false;} 177 //-------------------------------------------------------------------------- 178 179 class GenParticle: public TRootParticle { 180 181 public: 182 GenParticle() {}; 188 183 int PID; // particle HEP ID number [RawHepEventParticle::pid()] 189 184 int Status; // particle status [RawHepEventParticle::status()] … … 193 188 int D2; // particle 2nd daughter [RawHepEventParticle::daughter2() - 1] 194 189 190 float Charge; 191 192 float T; // particle vertex position (t component) [RawHepEventParticle::t()] 193 float X; // particle vertex position (x component) [RawHepEventParticle::x()] 194 float Y; // particle vertex position (y component) [RawHepEventParticle::y()] 195 float Z; // particle vertex position (z component) [RawHepEventParticle::z()] 196 float M; 197 198 199 static TCompare *fgCompare; //! 200 201 ClassDef(GenParticle, 1) 202 }; 203 204 //--------------------------------------------------------------------------- 205 206 class TRootGenParticle: public TRootParticle { 207 208 public: 209 TRootGenParticle() {_initialised=false;} 210 TRootGenParticle(GenParticle* part); 211 212 int PID; // particle HEP ID number [RawHepEventParticle::pid()] 213 int Status; // particle status [RawHepEventParticle::status()] 214 int M1; // particle 1st mother [RawHepEventParticle::mother1() - 1] 215 int M2; // particle 2nd mother [RawHepEventParticle::mother2() - 1] 216 int D1; // particle 1st daughter [RawHepEventParticle::daughter1() - 1] 217 int D2; // particle 2nd daughter [RawHepEventParticle::daughter2() - 1] 218 195 219 float T; // particle vertex position (t component) [RawHepEventParticle::t()] 196 220 float X; // particle vertex position (x component) [RawHepEventParticle::x()] … … 199 223 float M; 200 224 void setFractions(); 201 const float getCharge() const {return Charge;};202 225 const float getFem() {if(!_initialised) setFractions(); return _Fem;} 203 226 const float getFhad() {if(!_initialised) setFractions(); return _Fhad;} 204 227 228 float EtaCalo; // particle pseudorapidity when entering the calo, 229 float PhiCalo; // particle azimuthal angle in rad when entering the calo 230 void SetEtaPhiCalo(const float eta, const float phi) {EtaCalo=eta; PhiCalo=phi;}; 231 232 static TCompare *fgCompare; //! 233 205 234 float Charge; // electrical charge 206 207 static TCompare *fgCompare; //!208 235 protected: 209 236 float _Fem, _Fhad; // fractions of energy deposit … … 222 249 static TCompare *fgCompare; //! 223 250 251 float EtaCalo; // particle pseudorapidity when entering the calo, 252 float PhiCalo; // particle azimuthal angle in rad when entering the calo 253 void SetEtaPhiCalo(const float eta, const float phi) {EtaCalo=eta; PhiCalo=phi;}; 254 224 255 bool IsolFlag; 225 256 … … 247 278 int Charge; // particle Charge [RawHepEventParticle::pid()] 248 279 bool IsolFlag; 280 float EtaCalo; // particle pseudorapidity when entering the calo, 281 float PhiCalo; // particle azimuthal angle in rad when entering the calo 282 void SetEtaPhiCalo(const float eta, const float phi) {EtaCalo=eta; PhiCalo=phi;}; 283 249 284 static TCompare *fgCompare; //! 250 285
Note:
See TracChangeset
for help on using the changeset viewer.