Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:38

0001 #ifndef DATAFORMATS_HCALRECHIT_HcalCalibRECHIT_H
0002 #define DATAFORMATS_HCALRECHIT_HcalCalibRECHIT_H 1
0003 
0004 #include "DataFormats/HcalDetId/interface/HcalCalibDetId.h"
0005 
0006 /** \class HcalCalibRecHit
0007  *  
0008  *\author J. Mans - Minnesota
0009  */
0010 class HcalCalibRecHit {
0011 public:
0012   typedef HcalCalibDetId key_type;
0013 
0014   HcalCalibRecHit();
0015   HcalCalibRecHit(const HcalCalibDetId& id, float amplitude, float time);
0016   /// get the amplitude (generally fC, but can vary)
0017   float amplitude() const { return amplitude_; }
0018   /// get the hit time (if available)
0019   float time() const { return time_; }
0020   /// get the id
0021   HcalCalibDetId id() const { return id_; }
0022 
0023 private:
0024   HcalCalibDetId id_;
0025   float amplitude_, time_;
0026 };
0027 
0028 std::ostream& operator<<(std::ostream& s, const HcalCalibRecHit& hit);
0029 
0030 #endif