Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DATAFORMATS_HCALRECHIT_ZDCRECHIT_H
0002 #define DATAFORMATS_HCALRECHIT_ZDCRECHIT_H 1
0003 
0004 #include "DataFormats/HcalDetId/interface/HcalZDCDetId.h"
0005 #include "DataFormats/CaloRecHit/interface/CaloRecHit.h"
0006 
0007 /** \class ZDCRecHit
0008  *  
0009  *\author J. Mans - Minnesota
0010  */
0011 class ZDCRecHit : public CaloRecHit {
0012 public:
0013   typedef HcalZDCDetId key_type;
0014 
0015   ZDCRecHit();
0016   ZDCRecHit(const HcalZDCDetId& id, float energy, float time, float lowGainEnergy);
0017   /// get the id
0018   HcalZDCDetId id() const { return HcalZDCDetId(detid()); }
0019   // follow EcalRecHit method of adding variable flagBits_ to CaloRecHit
0020   float lowGainEnergy() const { return lowGainEnergy_; };
0021 
0022 private:
0023   float lowGainEnergy_;
0024 };
0025 
0026 std::ostream& operator<<(std::ostream& s, const ZDCRecHit& hit);
0027 
0028 #endif