CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/DataFormats/HcalRecHit/interface/HFRecHit.h

Go to the documentation of this file.
00001 #ifndef DATAFORMATS_HCALRECHIT_HFRECHIT_H
00002 #define DATAFORMATS_HCALRECHIT_HFRECHIT_H 1
00003 
00004 #include "DataFormats/HcalDetId/interface/HcalDetId.h"
00005 #include "DataFormats/CaloRecHit/interface/CaloRecHit.h"
00006 
00007 
00014 class HFRecHit : public CaloRecHit {
00015 public:
00016   typedef HcalDetId key_type;
00017 
00018   HFRecHit();
00019   //HFRecHit(const HcalDetId& id, float energy, float time);
00021   HFRecHit(const HcalDetId& id, float amplitude, float timeRising, float timeFalling=0);
00024   float timeFalling() const { return timeFalling_; }
00025   HcalDetId id() const { return HcalDetId(detid()); }
00026 
00027 private:
00028 
00029   float timeFalling_;
00030 
00031 };
00032 
00033 std::ostream& operator<<(std::ostream& s, const HFRecHit& hit);
00034 
00035 #endif