Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DataFormats_Scouting_Run3ScoutingEBRecHit_h
0002 #define DataFormats_Scouting_Run3ScoutingEBRecHit_h
0003 
0004 #include <vector>
0005 #include <stdint.h>
0006 
0007 // Updated Run 3 HLT-Scouting data format to include calo recHits information:
0008 // - EBRecHits collection (ECAL Barrel)
0009 // Saved information is specific to each hit type: energy, time, flags, and detId are available for EB recHits
0010 //
0011 // IMPORTANT: any changes to Run3ScoutingEBRecHit must be backward-compatible!
0012 
0013 class Run3ScoutingEBRecHit {
0014 public:
0015   Run3ScoutingEBRecHit(float energy, float time, unsigned int detId, uint32_t flags)
0016       : energy_{energy}, time_{time}, detId_{detId}, flags_{flags} {}
0017 
0018   Run3ScoutingEBRecHit() : energy_{0}, time_{0}, detId_{0}, flags_{0} {}
0019 
0020   float energy() const { return energy_; }
0021   float time() const { return time_; }
0022   unsigned int detId() const { return detId_; }
0023   uint32_t flags() const { return flags_; }
0024 
0025 private:
0026   float energy_;
0027   float time_;
0028   unsigned int detId_;
0029   uint32_t flags_;
0030   // NOTE: types are kept the same as in the origin of the data in reco::PFRecHit
0031 };
0032 
0033 using Run3ScoutingEBRecHitCollection = std::vector<Run3ScoutingEBRecHit>;
0034 
0035 #endif