12 #include "StPicoMessMgr.h"
13 #include "StPicoBTowHit.h"
26 mAdc = (adc > std::numeric_limits<unsigned short>::max()) ?
27 std::numeric_limits<unsigned short>::max() : (UShort_t)adc;
29 mE = ( fabs(e * 1000.) > std::numeric_limits<short>::max() ?
30 ( (e > 0.) ? std::numeric_limits<short>::max() :
31 std::numeric_limits<short>::min() ) :
32 (Short_t)( TMath::Nint(e * 1000.) ) );
48 LOG_INFO <<
" Adc = " <<
adc() <<
" Energy = " <<
energy() << endm;
63 mE = ( fabs(energy * 1000) > std::numeric_limits<short>::max() ?
64 ( (energy > 0) ? std::numeric_limits<short>::max() :
65 std::numeric_limits<short>::min() ) :
66 (Short_t)( TMath::Nint(energy * 1000) ) );
75 mAdc = (adc > std::numeric_limits<unsigned short>::max()) ?
76 std::numeric_limits<unsigned short>::max() : (UShort_t)adc;
StPicoBTowHit()
Default constructor.
Holds information about BEMC tower.
void setAdc(Int_t adc)
Set tower ADC.
Int_t adc() const
Return ADC of the tower.
virtual ~StPicoBTowHit()
Destructor.
virtual void Print(const Char_t *option="") const
Print tower information.
Float_t energy() const
Return energy of the tower.
Bool_t isBad() const
Return if the tower is bad.
void setEnergy(Float_t energy)
Set tower energy.