Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:19

0001 #ifndef DATAFORMATS_HCALRECHIT_HORECHIT_H
0002 #define DATAFORMATS_HCALRECHIT_HORECHIT_H 1
0003 
0004 #include "DataFormats/HcalDetId/interface/HcalDetId.h"
0005 #include "DataFormats/CaloRecHit/interface/CaloRecHit.h"
0006 
0007 /** \class HORecHit
0008  *    
0009  * \author J. Mans - Minnesota
0010  */
0011 class HORecHit : public CaloRecHit {
0012 public:
0013   typedef HcalDetId key_type;
0014 
0015   constexpr HORecHit() : CaloRecHit() {}
0016 
0017   constexpr HORecHit(const HcalDetId& id, float energy, float time) : CaloRecHit(id, energy, time) {}
0018   /// get the id
0019   constexpr HcalDetId id() const { return HcalDetId(detid()); }
0020 };
0021 
0022 std::ostream& operator<<(std::ostream& s, const HORecHit& hit);
0023 
0024 #endif