10 #include "StPicoMessMgr.h"
11 #include "StPicoFmsHit.h"
22 mChannelDetectorId = 32*channelId +
detectorId;
28 mChannelDetectorId = hit.mChannelDetectorId;
39 LOG_INFO <<
" FMS hit -"
42 <<
" ADC: " <<
adc() << endm;
47 mAdc = ( (adc > std::numeric_limits<unsigned short>::max()) ?
48 std::numeric_limits<unsigned short>::max() : (UShort_t)adc );
53 mAdc = ( (adc > std::numeric_limits<unsigned short>::max()) ?
54 std::numeric_limits<unsigned short>::max() : (UShort_t)adc );
59 mChannelDetectorId = ( ( (32*channelId +
detectorId) > std::numeric_limits<unsigned short>::max() ) ?
60 std::numeric_limits<unsigned short>::max() : (UShort_t)(32*channelId + detectorId) );
void setChannelDetectorId(Int_t channelId, Int_t detectorId)
Set channel and detector ID.
virtual ~StPicoFmsHit()
Destructor.
Int_t channel() const
Return channel [0,2047].
Holds information about FMS hit.
virtual void Print(const Char_t *option="") const
Prints FMS hit information.
void setAdc(Float_t adc)
Set ADC.
Int_t detectorId() const
Return detector ID [0,31].
StPicoFmsHit()
Default constructor.
Int_t adc() const
Return ADC.