Changeset 408 in svn
- Timestamp:
- May 20, 2009, 10:47:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/ExRootAnalysis/interface/BlockClasses.h
r387 r408 346 346 347 347 //--------------------------------------------------------------------------- 348 348 /* 349 349 class TRootZdcHits: public TRootParticle 350 350 { … … 358 358 ClassDef(TRootZdcHits, 1) 359 359 }; 360 361 362 /*class TRootZdcHits: public TSortableObject 360 */ 361 362 // gen-level info stored for forward detectors 363 // this class is similar to TRootParticle, but for the member names 364 class TRootGenFwdParticle: public TSortableObject { 365 366 public: 367 368 TRootGenFwdParticle() {}; 369 TRootGenFwdParticle(const TRootGenFwdParticle& p); 370 TRootGenFwdParticle& operator=(const TRootGenFwdParticle& p); 371 float genE; // particle energy in GeV 372 float genPx; // particle momentum vector (x component) in GeV 373 float genPy; // particle momentum vector (y component) in GeV 374 float genPz; // particle momentum vector (z component) in GeV 375 float genPT; // particle transverse momentum in GeV 376 377 float genEta; // particle pseudorapidity 378 float genPhi; // particle azimuthal angle in rad 379 int pid; 380 381 void Set(const TLorentzVector& momentum); // initialises the gen-level data 382 void Set(const float px, const float py, const float pz, const float e); 383 void SetEtaPhi(const float eta, const float phi) {genEta=eta; genPhi=phi;}; 384 void SetEtaPhiEET(const float eta, const float phi, const float e, const float et); 385 static TCompare *fgCompare; //! 386 const TCompare *GetCompare() const { return fgCompare; } 387 388 ClassDef(TRootGenFwdParticle, 1) 389 }; 390 391 392 393 //class TRootZdcHits: public TSortableObject 394 class TRootZdcHits: public TRootGenFwdParticle 363 395 { 364 396 public: … … 368 400 TRootZdcHits(const TRootZdcHits& zdc); 369 401 TRootZdcHits& operator=(const TRootZdcHits& zdc); 370 const TCompare *GetCompare() const { return fgCompare; }371 402 float E; 372 403 float T; // time of flight [s] … … 377 408 ClassDef(TRootZdcHits, 2) 378 409 }; 379 */ 410 380 411 381 412 //--------------------------------------------------------------------------- … … 455 486 //--------------------------------------------------------------------------- 456 487 457 class TRootRomanPotHits: public TSortableObject 488 //class TRootRomanPotHits: public TSortableObject 489 class TRootRomanPotHits: public TRootGenFwdParticle 458 490 { 459 491 public: … … 473 505 int side; // -1 or 1 474 506 475 int pid; 476 477 static TCompare *fgCompare; //! 478 const TCompare *GetCompare() const { return fgCompare; } 479 480 ClassDef(TRootRomanPotHits, 1) 507 static TCompare *fgCompare; //! 508 //const TCompare *GetCompare() const { return fgCompare; } 509 510 ClassDef(TRootRomanPotHits, 2) 481 511 }; 482 512
Note:
See TracChangeset
for help on using the changeset viewer.