Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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