/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/lcio/src/cpp/src/IMPL/CalorimeterHitImpl.cc

Go to the documentation of this file.
00001 #include "IMPL/CalorimeterHitImpl.h"
00002 
00003 namespace IMPL{
00004   
00005   CalorimeterHitImpl::CalorimeterHitImpl() :
00006     _cellID0(0),
00007     _cellID1(0),
00008     _energy(0.),
00009     _energyError(0.),
00010     _time(0.),
00011     _type(0),
00012     _rawHit(0) {
00013     _position[0] = 0. ;
00014     _position[1] = 0. ;
00015     _position[2] = 0. ; 
00016   }
00017   
00018   
00019   CalorimeterHitImpl::~CalorimeterHitImpl(){
00020   }
00021   
00022   int CalorimeterHitImpl::getCellID0() const {
00023     return _cellID0 ;
00024   }
00025   
00026   int CalorimeterHitImpl::getCellID1() const {
00027     return _cellID1 ;
00028   }
00029   
00030   float CalorimeterHitImpl::getEnergy() const {
00031     return _energy ;
00032   }
00033 
00034   float CalorimeterHitImpl::getEnergyError() const {
00035     return _energyError ;
00036   }
00037   
00038   float CalorimeterHitImpl::getTime() const {
00039     return _time ;
00040   }
00041   
00042   const float* CalorimeterHitImpl::getPosition() const {
00043     return _position ;
00044   }
00045   
00046   int CalorimeterHitImpl::getType() const {
00047     return _type ;
00048   }
00049   EVENT::LCObject * CalorimeterHitImpl::getRawHit() const {
00050     return _rawHit ;
00051   }
00052   
00053   void CalorimeterHitImpl::setCellID0(int id0){
00054     checkAccess("CalorimeterHitImpl::setCellID0") ;
00055     _cellID0 = id0 ;
00056   }
00057   
00058   void CalorimeterHitImpl::setCellID1(int id1){
00059     checkAccess("CalorimeterHitImpl::setCellID1") ;
00060     _cellID1 = id1 ;
00061   }
00062   
00063   void CalorimeterHitImpl::setEnergy(float en){
00064     checkAccess("CalorimeterHitImpl::setEnergy") ;
00065     _energy = en ;
00066   }
00067   
00068   void CalorimeterHitImpl::setEnergyError(float enerr){
00069     checkAccess("CalorimeterHitImpl::setEnergyError") ;
00070     _energyError = enerr ;
00071   }
00072  
00073   void CalorimeterHitImpl::setTime(float t){
00074     checkAccess("CalorimeterHitImpl::setTime") ;
00075     _time = t ;
00076   }
00077   
00078   void CalorimeterHitImpl::setPosition(const float pos[3]){
00079     checkAccess("CalorimeterHitImpl::setPosition") ;
00080     _position[0] = pos[0] ;
00081     _position[1] = pos[1] ;
00082     _position[2] = pos[2] ;
00083   }
00084   
00085  
00086   void CalorimeterHitImpl::setType(int type) {
00087     checkAccess("CalorimeterHitImpl::setType") ;
00088     _type = type ;
00089   }
00090   
00091   void CalorimeterHitImpl::setRawHit(EVENT::LCObject* rawHit ){
00092     checkAccess("CalorimeterHitImpl::setRawHit") ;
00093     _rawHit = rawHit ;
00094   }
00095   
00096 } // namespace IMPL

Generated on Mon Jan 7 13:15:21 2013 for MicromegasFramework by  doxygen 1.4.7