CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/DataFormats/HcalRecHit/interface/ZDCRecHit.h

Go to the documentation of this file.
00001 #ifndef DATAFORMATS_HCALRECHIT_ZDCRECHIT_H
00002 #define DATAFORMATS_HCALRECHIT_ZDCRECHIT_H 1
00003 
00004 #include "DataFormats/HcalDetId/interface/HcalZDCDetId.h"
00005 #include "DataFormats/CaloRecHit/interface/CaloRecHit.h"
00006 
00007 
00014 class ZDCRecHit : public CaloRecHit {
00015 public:
00016   typedef HcalZDCDetId key_type;
00017 
00018   ZDCRecHit();
00019   ZDCRecHit(const HcalZDCDetId& id, float energy, float time, float lowGainEnergy);
00021   HcalZDCDetId id() const { return HcalZDCDetId(detid()); }
00022   // follow EcalRecHit method of adding variable flagBits_ to CaloRecHit
00023   float lowGainEnergy() const { return lowGainEnergy_;};
00024 private:
00025   float lowGainEnergy_;
00026 };
00027 
00028 std::ostream& operator<<(std::ostream& s, const ZDCRecHit& hit);
00029 
00030 #endif