Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-07-24 02:01:22

0001 #ifndef DataFormats_Scouting_Run3ScoutingEERecHit_h
0002 #define DataFormats_Scouting_Run3ScoutingEERecHit_h
0003 
0004 #include <vector>
0005 
0006 // Updated Run 3 HLT-Scouting data format to include calo recHits information:
0007 // - EERecHits collection (ECAL Endcap)
0008 // Saved information is specific to each hit type: energy, time, and detId are available for EE recHits
0009 //
0010 // IMPORTANT: any changes to Run3ScoutingEERecHit must be backward-compatible !
0011 
0012 class Run3ScoutingEERecHit {
0013 public:
0014   Run3ScoutingEERecHit(float energy, float time, unsigned int detId) : energy_{energy}, time_{time}, detId_{detId} {}
0015 
0016   Run3ScoutingEERecHit() : energy_{0}, time_{0}, detId_{0} {}
0017 
0018   float energy() const { return energy_; }
0019   float time() const { return time_; }
0020   unsigned int detId() const { return detId_; }
0021 
0022 private:
0023   float energy_;
0024   float time_;
0025   unsigned int detId_;
0026 };
0027 
0028 using Run3ScoutingEERecHitCollection = std::vector<Run3ScoutingEERecHit>;
0029 
0030 #endif