9 #include "StPicoMessMgr.h"
10 #include "StPicoMtdHit.h"
16 mLeadingEdgeTime{ -999., -999.}, mTrailingEdgeTime{ -999., -999} {
35 LOG_INFO <<
" Backleg = " <<
backleg()
36 <<
" Module = " <<
module()
37 <<
" Cell = " <<
cell() << endm;
43 Int_t gchan = (backleg - 1) * 60 + (module - 1) * 12 +
cell;
46 if( gchan < std::numeric_limits<short>::max() ) {
51 LOG_INFO <<
"Weird cell: backleg = " << backleg
52 <<
", module = " << module
53 <<
", cell = " << cell
std::pair< Float_t, Float_t > leadingEdgeTime() const
Return leading edge time.
std::pair< Float_t, Float_t > mTrailingEdgeTime
Trailing-edge time for the hit.
std::pair< Float_t, Float_t > trailingEdgeTime() const
Return trailing edge time.
Short_t mgChannel
Encoding: mgChannel = (backleg-1) * 60 + (module-1) * 12 + cell.
void setHitChannel(Int_t backleg, Int_t module, Int_t cell)
Encode global channel number as: (backleg-1) * 60 + (module-1) * 12 + cell.
UChar_t mTriggerFlag
Number of hits in the corresponding trigger unit that fired the trigger.
std::pair< Float_t, Float_t > mLeadingEdgeTime
Leading-edge time for the hit.
void setLeadingEdgeTime(std::pair< Float_t, Float_t > leadingEdgeTime)
Set leading edge time.
void setTrailingEdgeTime(std::pair< Float_t, Float_t > trailingEdgeTime)
Set trailing edge time.
Int_t backleg() const
Return backleg number (1-30) of the MTD hit.
Int_t module() const
Return module number (1-5) of the MTD hit.
virtual ~StPicoMtdHit()
Destructor.
Holds information about the hit from MTD.
virtual void Print(const Char_t *option="") const
Print the stored information.
Int_t cell() const
Return cell number (0-11) of the MTD hit.
StPicoMtdHit()
Default constructor.