Fork me on GitHub

Changeset cc8716b in git for classes


Ignore:
Timestamp:
Mar 7, 2022, 8:51:45 PM (3 years ago)
Author:
GitHub <noreply@…>
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)
Message:

Update to handle CMS endcap muon detector showers for long-lived particles (#103)

Co-authored-by: christinaw97 <christina.wang@…>

Location:
classes
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • classes/ClassesLinkDef.h

    r4e8e72b rcc8716b  
    5757#pragma link C++ class Electron+;
    5858#pragma link C++ class Muon+;
     59#pragma link C++ class CscCluster+;
     60
    5961#pragma link C++ class Jet+;
    6062#pragma link C++ class Track+;
     
    6668
    6769#endif
    68 
  • classes/DelphesClasses.cc

    r4e8e72b rcc8716b  
    3535CompBase *Electron::fgCompare = CompPT<Electron>::Instance();
    3636CompBase *Muon::fgCompare = CompPT<Muon>::Instance();
     37
    3738CompBase *Jet::fgCompare = CompPT<Jet>::Instance();
    3839CompBase *Track::fgCompare = CompPT<Track>::Instance();
     
    4243CompBase *Vertex::fgCompare = CompSumPT2<Vertex>::Instance();
    4344CompBase *Candidate::fgCompare = CompMomentumPt<Candidate>::Instance();
     45CompBase *CscCluster::fgCompare = CompE<CscCluster>::Instance();
    4446
    4547//------------------------------------------------------------------------------
     
    218220  Position(0.0, 0.0, 0.0, 0.0),
    219221  InitialPosition(0.0, 0.0, 0.0, 0.0),
     222  DecayPosition(0.0, 0.0, 0.0, 0.0),
    220223  PositionError(0.0, 0.0, 0.0, 0.0),
    221224  Area(0.0, 0.0, 0.0, 0.0),
     
    389392  object.Position = Position;
    390393  object.InitialPosition = InitialPosition;
     394  object.DecayPosition = DecayPosition;
    391395  object.PositionError = PositionError;
    392396  object.Area = Area;
     
    527531  Position.SetXYZT(0.0, 0.0, 0.0, 0.0);
    528532  InitialPosition.SetXYZT(0.0, 0.0, 0.0, 0.0);
     533  DecayPosition.SetXYZT(0.0, 0.0, 0.0, 0.0);
    529534  Area.SetXYZT(0.0, 0.0, 0.0, 0.0);
    530535  TrackCovariance.Zero();
  • classes/DelphesClasses.h

    r4e8e72b rcc8716b  
    158158  Float_t Z; // particle vertex position (z component) | hepevt.vhep[number][2]
    159159
     160  Float_t decayX;
     161  Float_t decayY;
     162  Float_t decayZ;
     163  Float_t decayT;
     164
    160165  static CompBase *fgCompare; //!
    161166  const CompBase *GetCompare() const { return fgCompare; }
     
    646651  ClassDef(HectorHit, 1)
    647652};
     653//---------------------------------------------------------------------------
     654
     655class CscCluster: public SortableObject
     656{
     657public:
     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};
    648682
    649683//---------------------------------------------------------------------------
     
    690724  Float_t DeltaPhi;
    691725
    692   TLorentzVector Momentum, Position, InitialPosition, PositionError, Area;
     726  TLorentzVector Momentum, Position, InitialPosition, PositionError, DecayPosition, Area;
    693727
    694728  Float_t L; // path length
  • classes/DelphesHepMC2Reader.cc

    r4e8e72b rcc8716b  
    438438{
    439439  Candidate *candidate;
     440  Candidate *candidateDaughter;
    440441  map<int, pair<int, int> >::iterator itMotherMap;
    441442  map<int, pair<int, int> >::iterator itDaughterMap;
     
    446447    candidate = static_cast<Candidate *>(allParticleOutputArray->At(i));
    447448
     449
    448450    if(candidate->M1 > 0)
    449451    {
     
    477479        candidate->D1 = -1;
    478480        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     }
    480484      else
    481485      {
    482486        candidate->D1 = itDaughterMap->second.first;
    483487        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  
    458458  TObjArray *array;
    459459  Candidate *candidate;
     460  Candidate *candidateDaughter;
    460461  TParticlePDG *pdgParticle;
    461462  int pdgCode;
     
    573574        candidate->D1 = -1;
    574575        candidate->D2 = -1;
     576        const TLorentzVector &decayPosition = candidate->Position;
     577        candidate->DecayPosition.SetXYZT(decayPosition.X(), decayPosition.Y(), decayPosition.Z(), decayPosition.T());// decay position
    575578      }
    576579      else
     
    578581        candidate->D1 = itDaughterMap->second.first;
    579582        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.