CMS 3D CMS Logo

CaloRecHit.h

Go to the documentation of this file.
00001 #ifndef DATAFORMATS_CALORECHIT_CALORECHIT_H
00002 #define DATAFORMATS_CALORECHIT_CALORECHIT_H 1
00003 
00004 #include "DataFormats/DetId/interface/DetId.h"
00005 #include <ostream>
00006 
00007 
00014 class CaloRecHit {
00015 public:
00016   CaloRecHit(); // for persistence
00017   explicit CaloRecHit(const DetId& id, float energy, float time);
00018   virtual ~CaloRecHit();
00019   float energy() const { return energy_; }
00020   float time() const { return time_; }
00021   const DetId& detid() const { return id_; }
00022 private:
00023   DetId id_;
00024   float energy_;
00025   float time_;
00026 };
00027 
00028 std::ostream& operator<<(std::ostream& s, const CaloRecHit& hit);
00029   
00030 #endif

Generated on Tue Jun 9 17:27:14 2009 for CMSSW by  doxygen 1.5.4