- Timestamp:
- Mar 7, 2022, 8:51:45 PM (3 years ago)
- Branches:
- master
- Children:
- 7dbc149
- Parents:
- 4e8e72b
- git-author:
- Christinaw97 <cwang5@…> (03/07/22 20:51:45)
- git-committer:
- GitHub <noreply@…> (03/07/22 20:51:45)
- Location:
- classes
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/ClassesLinkDef.h
r4e8e72b rcc8716b 57 57 #pragma link C++ class Electron+; 58 58 #pragma link C++ class Muon+; 59 #pragma link C++ class CscCluster+; 60 59 61 #pragma link C++ class Jet+; 60 62 #pragma link C++ class Track+; … … 66 68 67 69 #endif 68 -
classes/DelphesClasses.cc
r4e8e72b rcc8716b 35 35 CompBase *Electron::fgCompare = CompPT<Electron>::Instance(); 36 36 CompBase *Muon::fgCompare = CompPT<Muon>::Instance(); 37 37 38 CompBase *Jet::fgCompare = CompPT<Jet>::Instance(); 38 39 CompBase *Track::fgCompare = CompPT<Track>::Instance(); … … 42 43 CompBase *Vertex::fgCompare = CompSumPT2<Vertex>::Instance(); 43 44 CompBase *Candidate::fgCompare = CompMomentumPt<Candidate>::Instance(); 45 CompBase *CscCluster::fgCompare = CompE<CscCluster>::Instance(); 44 46 45 47 //------------------------------------------------------------------------------ … … 218 220 Position(0.0, 0.0, 0.0, 0.0), 219 221 InitialPosition(0.0, 0.0, 0.0, 0.0), 222 DecayPosition(0.0, 0.0, 0.0, 0.0), 220 223 PositionError(0.0, 0.0, 0.0, 0.0), 221 224 Area(0.0, 0.0, 0.0, 0.0), … … 389 392 object.Position = Position; 390 393 object.InitialPosition = InitialPosition; 394 object.DecayPosition = DecayPosition; 391 395 object.PositionError = PositionError; 392 396 object.Area = Area; … … 527 531 Position.SetXYZT(0.0, 0.0, 0.0, 0.0); 528 532 InitialPosition.SetXYZT(0.0, 0.0, 0.0, 0.0); 533 DecayPosition.SetXYZT(0.0, 0.0, 0.0, 0.0); 529 534 Area.SetXYZT(0.0, 0.0, 0.0, 0.0); 530 535 TrackCovariance.Zero(); -
classes/DelphesClasses.h
r4e8e72b rcc8716b 158 158 Float_t Z; // particle vertex position (z component) | hepevt.vhep[number][2] 159 159 160 Float_t decayX; 161 Float_t decayY; 162 Float_t decayZ; 163 Float_t decayT; 164 160 165 static CompBase *fgCompare; //! 161 166 const CompBase *GetCompare() const { return fgCompare; } … … 646 651 ClassDef(HectorHit, 1) 647 652 }; 653 //--------------------------------------------------------------------------- 654 655 class CscCluster: public SortableObject 656 { 657 public: 658 Float_t Eta; // eta of LLP 659 Float_t Phi; // phi of LLP 660 Float_t PT; // pt of LLP 661 Float_t Px;// px of LLP 662 Float_t Py;// py of LLP 663 Float_t Pz;// pz of LLP 664 Float_t E; // E of LLP 665 Float_t Ehad; // had energy of LLP 666 Float_t Eem; // em energy of LLP 667 Float_t pid; // LLP pid 668 Float_t T; // LLP decay time-photon travel time 669 Float_t X; // LLP decay x 670 Float_t Y; // LLP decay y 671 Float_t Z; // LLP decay z 672 Float_t R; // LLP decay z 673 Float_t beta; // LLP beta 674 Float_t ctau; //LLP ctau 675 676 677 static CompBase *fgCompare; //! 678 const CompBase *GetCompare() const { return fgCompare; } 679 680 ClassDef(CscCluster, 5) 681 }; 648 682 649 683 //--------------------------------------------------------------------------- … … 690 724 Float_t DeltaPhi; 691 725 692 TLorentzVector Momentum, Position, InitialPosition, PositionError, Area;726 TLorentzVector Momentum, Position, InitialPosition, PositionError, DecayPosition, Area; 693 727 694 728 Float_t L; // path length -
classes/DelphesHepMC2Reader.cc
r4e8e72b rcc8716b 438 438 { 439 439 Candidate *candidate; 440 Candidate *candidateDaughter; 440 441 map<int, pair<int, int> >::iterator itMotherMap; 441 442 map<int, pair<int, int> >::iterator itDaughterMap; … … 446 447 candidate = static_cast<Candidate *>(allParticleOutputArray->At(i)); 447 448 449 448 450 if(candidate->M1 > 0) 449 451 { … … 477 479 candidate->D1 = -1; 478 480 candidate->D2 = -1; 479 } 481 const TLorentzVector &decayPosition = candidate->Position; 482 candidate->DecayPosition.SetXYZT(decayPosition.X(), decayPosition.Y(), decayPosition.Z(), decayPosition.T());// decay position 483 } 480 484 else 481 485 { 482 486 candidate->D1 = itDaughterMap->second.first; 483 487 candidate->D2 = itDaughterMap->second.second; 484 } 485 } 486 } 487 } 488 489 //--------------------------------------------------------------------------- 488 candidateDaughter = static_cast<Candidate *>(allParticleOutputArray->At(candidate->D1)); 489 const TLorentzVector &decayPosition = candidateDaughter->Position; 490 candidate->DecayPosition.SetXYZT(decayPosition.X(), decayPosition.Y(), decayPosition.Z(), decayPosition.T());// decay position 491 492 493 } 494 } 495 } 496 } 497 498 //--------------------------------------------------------------------------- -
classes/DelphesHepMC3Reader.cc
r4e8e72b rcc8716b 458 458 TObjArray *array; 459 459 Candidate *candidate; 460 Candidate *candidateDaughter; 460 461 TParticlePDG *pdgParticle; 461 462 int pdgCode; … … 573 574 candidate->D1 = -1; 574 575 candidate->D2 = -1; 576 const TLorentzVector &decayPosition = candidate->Position; 577 candidate->DecayPosition.SetXYZT(decayPosition.X(), decayPosition.Y(), decayPosition.Z(), decayPosition.T());// decay position 575 578 } 576 579 else … … 578 581 candidate->D1 = itDaughterMap->second.first; 579 582 candidate->D2 = itDaughterMap->second.second; 580 } 581 } 582 } 583 } 584 585 //--------------------------------------------------------------------------- 583 candidateDaughter = static_cast<Candidate *>(allParticleOutputArray->At(candidate->D1)); 584 const TLorentzVector &decayPosition = candidateDaughter->Position; 585 candidate->DecayPosition.SetXYZT(decayPosition.X(), decayPosition.Y(), decayPosition.Z(), decayPosition.T());// decay position 586 } 587 } 588 } 589 } 590 591 //---------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.