#include <ChannelHit.hh>
Collaboration diagram for ChannelHit:
Public Member Functions | |
ChannelHit (const Channel &) | |
ChannelHit (const Channel &, const i16 aDigitalValue, const i16 aAnalogValue) | |
virtual | ~ChannelHit () |
i16 | getDigitalValue (void) const |
i16 | getAnalogValue (void) const |
bool | setDigitalValue (i16 aValue) |
bool | setAnalogValue (i16 aValue) |
const Channel & | getChannel (void) const |
const ui64 | getTimestamp (void) const |
const ui32 | getBcId_Abs (void) const |
const ui32 | getBcId_Dif (void) const |
const ui32 | getBcId_Hit (void) const |
const ui32 | getBcId_Hit_Fine (void) const |
void | setHardrocTime (const ui64 ts, const ui32 aBcId_Abs, const ui32 aBcId_Dif, const ui32 aBcId_Hit, const ui32 aBcId_Hit_Fine) |
void | setTimestamp (const ui64 ts) |
void | setMemoryOrder (const ui16 order) |
ui16 | getMemoryOrder (void) const |
void | print (void) const |
Private Attributes | |
i16 | analogValue |
i16 | digitalValue |
const Channel & | channel |
ui64 | timestamp |
ui32 | bcId_Abs |
ui32 | bcId_Dif |
ui32 | bcId_Hit |
ui32 | bcId_Hit_Fine |
ui16 | memoryOrder |
Definition at line 21 of file ChannelHit.hh.
ChannelHit::ChannelHit | ( | const Channel & | ) |
Definition at line 14 of file ChannelHit.cpp.
00014 :channel(aChannel) 00015 { 00016 timestamp = 0; 00017 bcId_Abs = bcId_Dif = bcId_Hit = bcId_Hit_Fine = memoryOrder = 0; 00018 // FILE_LOG(logDEBUG) << "-----ChannelHit constructor"<< endl; 00019 }
ChannelHit::ChannelHit | ( | const Channel & | , | |
const i16 | aDigitalValue, | |||
const i16 | aAnalogValue | |||
) |
Definition at line 22 of file ChannelHit.cpp.
00022 : channel(aChannel), digitalValue(aDigitalValue), analogValue(aAnalogValue) 00023 { 00024 timestamp = 0; 00025 bcId_Abs = bcId_Dif = bcId_Hit = bcId_Hit_Fine = 0; 00026 //threshold_0 = 0; 00027 //threshold_1 = 0; 00028 // threshold_2 = 0; 00029 //FILE_LOG(logDEBUG) << "-----ChannelHit constructor"<< endl; 00030 }
ChannelHit::~ChannelHit | ( | ) | [virtual] |
i16 ChannelHit::getDigitalValue | ( | void | ) | const [inline] |
Definition at line 30 of file ChannelHit.hh.
Referenced by MTChannel::MTChannel().
00030 { return digitalValue; }
i16 ChannelHit::getAnalogValue | ( | void | ) | const [inline] |
Definition at line 31 of file ChannelHit.hh.
Referenced by MTChannel::MTChannel(), and sorter::operator()().
00031 { return analogValue; }
bool ChannelHit::setDigitalValue | ( | i16 | aValue | ) | [inline] |
bool ChannelHit::setAnalogValue | ( | i16 | aValue | ) | [inline] |
const Channel& ChannelHit::getChannel | ( | void | ) | const [inline] |
Definition at line 34 of file ChannelHit.hh.
Referenced by MTChannel::MTChannel().
00034 { return channel; }
const ui64 ChannelHit::getTimestamp | ( | void | ) | const [inline] |
Definition at line 35 of file ChannelHit.hh.
Referenced by MTChannel::MTChannel().
00035 { return(timestamp); };
const ui32 ChannelHit::getBcId_Abs | ( | void | ) | const [inline] |
Definition at line 36 of file ChannelHit.hh.
Referenced by MTChannel::MTChannel().
00036 { return(bcId_Abs); };
const ui32 ChannelHit::getBcId_Dif | ( | void | ) | const [inline] |
Definition at line 37 of file ChannelHit.hh.
Referenced by MTChannel::MTChannel().
00037 { return(bcId_Dif); };
const ui32 ChannelHit::getBcId_Hit | ( | void | ) | const [inline] |
Definition at line 38 of file ChannelHit.hh.
Referenced by MTChannel::MTChannel().
00038 { return(bcId_Hit); };
const ui32 ChannelHit::getBcId_Hit_Fine | ( | void | ) | const [inline] |
Definition at line 39 of file ChannelHit.hh.
Referenced by MTChannel::MTChannel().
00039 { return(bcId_Hit_Fine); };
void ChannelHit::setHardrocTime | ( | const ui64 | ts, | |
const ui32 | aBcId_Abs, | |||
const ui32 | aBcId_Dif, | |||
const ui32 | aBcId_Hit, | |||
const ui32 | aBcId_Hit_Fine | |||
) | [inline] |
Definition at line 40 of file ChannelHit.hh.
Referenced by MicrorocReader::newHit(), Hardroc2Reader::newHit(), Hardroc1Reader::newHit(), and DiracReader::newHit().
00041 { timestamp = ts, bcId_Abs = aBcId_Abs, bcId_Dif = aBcId_Dif, bcId_Hit = aBcId_Hit; bcId_Hit_Fine= aBcId_Hit_Fine; };
void ChannelHit::setTimestamp | ( | const ui64 | ts | ) | [inline] |
void ChannelHit::setMemoryOrder | ( | const ui16 | order | ) | [inline] |
Definition at line 43 of file ChannelHit.hh.
Referenced by MicrorocReader::newHit().
00043 { memoryOrder = order; };
ui16 ChannelHit::getMemoryOrder | ( | void | ) | const [inline] |
Definition at line 44 of file ChannelHit.hh.
Referenced by MTChannel::MTChannel().
00044 { return memoryOrder ;} ;
void ChannelHit::print | ( | void | ) | const |
Definition at line 38 of file ChannelHit.cpp.
00039 { 00040 //FILE_LOG(logDEBUG) << "---ChannelHit.print():" << endl; 00041 channel.print(); 00042 FILE_LOG(logINFO) << "Digital value: " << digitalValue << endl; 00043 FILE_LOG(logINFO) << "Analog value: " << analogValue << endl; 00044 }
i16 ChannelHit::analogValue [private] |
Definition at line 53 of file ChannelHit.hh.
Referenced by getAnalogValue(), print(), and setAnalogValue().
i16 ChannelHit::digitalValue [private] |
Definition at line 54 of file ChannelHit.hh.
Referenced by getDigitalValue(), print(), and setDigitalValue().
const Channel& ChannelHit::channel [private] |
ui64 ChannelHit::timestamp [private] |
Definition at line 57 of file ChannelHit.hh.
Referenced by ChannelHit(), getTimestamp(), setHardrocTime(), and setTimestamp().
ui32 ChannelHit::bcId_Abs [private] |
Definition at line 58 of file ChannelHit.hh.
Referenced by ChannelHit(), getBcId_Abs(), and setHardrocTime().
ui32 ChannelHit::bcId_Dif [private] |
Definition at line 59 of file ChannelHit.hh.
Referenced by ChannelHit(), getBcId_Dif(), and setHardrocTime().
ui32 ChannelHit::bcId_Hit [private] |
Definition at line 60 of file ChannelHit.hh.
Referenced by ChannelHit(), getBcId_Hit(), and setHardrocTime().
ui32 ChannelHit::bcId_Hit_Fine [private] |
Definition at line 61 of file ChannelHit.hh.
Referenced by ChannelHit(), getBcId_Hit_Fine(), and setHardrocTime().
ui16 ChannelHit::memoryOrder [private] |
Definition at line 62 of file ChannelHit.hh.
Referenced by ChannelHit(), getMemoryOrder(), and setMemoryOrder().