#include <SimTrigCommand.h>
Collaboration diagram for DayaBay::SimTrigCommand:
Public Member Functions | |
SimTrigCommand (const DayaBay::Detector &in_det, const DayaBay::Trigger::TriggerType_t &in_type, unsigned int in_cycle, int in_nhit=0, int in_esum=0, int in_esumComp=0) | |
fully construct | |
SimTrigCommand () | |
Default Constructor. | |
virtual | ~SimTrigCommand () |
Default Destructor. | |
std::ostream & | fillStream (std::ostream &s) const |
Print the trig command. | |
const DayaBay::Detector & | detector () const |
Retrieve const Detector which SimTrigger command belongs (detector to be read out). | |
void | setDetector (const DayaBay::Detector &value) |
Update Detector which SimTrigger command belongs (detector to be read out). | |
const DayaBay::Trigger::TriggerType_t & | type () const |
Retrieve const The type of trigger command. | |
void | setType (const DayaBay::Trigger::TriggerType_t &value) |
Update The type of trigger command. | |
unsigned int | clockCycle () const |
Retrieve const The simulation clock cycle of the trigger command. | |
void | setClockCycle (unsigned int value) |
Update The simulation clock cycle of the trigger command. | |
int | nhit () const |
Retrieve const NHit. | |
void | setNhit (int value) |
Update NHit. | |
int | esumAdc () const |
Retrieve const ESum adc data. | |
void | setEsumAdc (int value) |
Update ESum adc data. | |
int | esumComp () const |
Retrieve const ESum comp data. | |
void | setEsumComp (int value) |
Update ESum comp data. | |
Static Public Member Functions | |
static bool | LessThan (DayaBay::SimTrigCommand *d1, DayaBay::SimTrigCommand *d2) |
compter two trigger event objects. | |
static void * | operator new (size_t size) |
operator new | |
static void * | operator new (size_t size, void *pObj) |
placement operator new it is needed by libstdc++ 3.2.3 (e.g. | |
static void | operator delete (void *p) |
operator delete | |
static void | operator delete (void *p, void *pObj) |
placement operator delete not sure if really needed, but it does not harm | |
Private Attributes | |
DayaBay::Detector | m_detector |
Detector which SimTrigger command belongs (detector to be read out). | |
DayaBay::Trigger::TriggerType_t | m_type |
The type of trigger command. | |
unsigned int | m_clockCycle |
The simulation clock cycle of the trigger command. | |
int | m_nhit |
NHit. | |
int | m_esumAdc |
ESum adc data. | |
int | m_esumComp |
ESum comp data. |
Definition at line 40 of file SimTrigCommand.h.
DayaBay::SimTrigCommand::SimTrigCommand | ( | const DayaBay::Detector & | in_det, | |
const DayaBay::Trigger::TriggerType_t & | in_type, | |||
unsigned int | in_cycle, | |||
int | in_nhit = 0 , |
|||
int | in_esum = 0 , |
|||
int | in_esumComp = 0 | |||
) | [inline] |
fully construct
Definition at line 45 of file SimTrigCommand.h.
00050 : m_detector(in_det), 00051 m_type(in_type), 00052 m_clockCycle(in_cycle), 00053 m_nhit(in_nhit), 00054 m_esumAdc(in_esum), 00055 m_esumComp(in_esumComp) {}
DayaBay::SimTrigCommand::SimTrigCommand | ( | ) | [inline] |
Default Constructor.
Definition at line 58 of file SimTrigCommand.h.
00058 : m_detector(), 00059 m_type(), 00060 m_clockCycle(0), 00061 m_nhit(0), 00062 m_esumAdc(0), 00063 m_esumComp(0) {}
virtual DayaBay::SimTrigCommand::~SimTrigCommand | ( | ) | [inline, virtual] |
std::ostream & DayaBay::SimTrigCommand::fillStream | ( | std::ostream & | s | ) | const |
Print the trig command.
Definition at line 10 of file SimTrigCommand.cc.
00011 { 00012 s << std::endl << "{ "; 00013 s << "trigCommand : " << std::endl; 00014 s << "Detector: " << m_detector.detName() << std::endl; 00015 s << "Type: " << DayaBay::Trigger::AsString(m_type) << std::endl; 00016 s << "ClockCycle: " << m_clockCycle << std::endl; 00017 s << "nhit: " << m_nhit << std::endl; 00018 s << "esum: " << m_esumAdc << std::endl; 00019 s << "esumComp: " << m_esumComp << std::endl; 00020 s << std::endl; 00021 s << " }"; 00022 return s; 00023 }
bool DayaBay::SimTrigCommand::LessThan | ( | DayaBay::SimTrigCommand * | d1, | |
DayaBay::SimTrigCommand * | d2 | |||
) | [static] |
compter two trigger event objects.
Definition at line 4 of file SimTrigCommand.cc.
00006 { 00007 return d1->m_clockCycle < d2->m_clockCycle; 00008 }
const DayaBay::Detector & DayaBay::SimTrigCommand::detector | ( | ) | const [inline] |
Retrieve const Detector which SimTrigger command belongs (detector to be read out).
Definition at line 182 of file SimTrigCommand.h.
00183 { 00184 return m_detector; 00185 }
void DayaBay::SimTrigCommand::setDetector | ( | const DayaBay::Detector & | value | ) | [inline] |
Update Detector which SimTrigger command belongs (detector to be read out).
Definition at line 187 of file SimTrigCommand.h.
00188 { 00189 m_detector = value; 00190 }
const DayaBay::Trigger::TriggerType_t & DayaBay::SimTrigCommand::type | ( | ) | const [inline] |
Retrieve const The type of trigger command.
Definition at line 192 of file SimTrigCommand.h.
00193 { 00194 return m_type; 00195 }
void DayaBay::SimTrigCommand::setType | ( | const DayaBay::Trigger::TriggerType_t & | value | ) | [inline] |
Update The type of trigger command.
Definition at line 197 of file SimTrigCommand.h.
00198 { 00199 m_type = value; 00200 }
unsigned int DayaBay::SimTrigCommand::clockCycle | ( | ) | const [inline] |
Retrieve const The simulation clock cycle of the trigger command.
Definition at line 202 of file SimTrigCommand.h.
00203 { 00204 return m_clockCycle; 00205 }
void DayaBay::SimTrigCommand::setClockCycle | ( | unsigned int | value | ) | [inline] |
Update The simulation clock cycle of the trigger command.
Definition at line 207 of file SimTrigCommand.h.
00208 { 00209 m_clockCycle = value; 00210 }
int DayaBay::SimTrigCommand::nhit | ( | ) | const [inline] |
Retrieve const NHit.
Definition at line 212 of file SimTrigCommand.h.
00213 { 00214 return m_nhit; 00215 }
void DayaBay::SimTrigCommand::setNhit | ( | int | value | ) | [inline] |
int DayaBay::SimTrigCommand::esumAdc | ( | ) | const [inline] |
Retrieve const ESum adc data.
Definition at line 222 of file SimTrigCommand.h.
00223 { 00224 return m_esumAdc; 00225 }
void DayaBay::SimTrigCommand::setEsumAdc | ( | int | value | ) | [inline] |
Update ESum adc data.
Definition at line 227 of file SimTrigCommand.h.
00228 { 00229 m_esumAdc = value; 00230 }
int DayaBay::SimTrigCommand::esumComp | ( | ) | const [inline] |
Retrieve const ESum comp data.
Definition at line 232 of file SimTrigCommand.h.
00233 { 00234 return m_esumComp; 00235 }
void DayaBay::SimTrigCommand::setEsumComp | ( | int | value | ) | [inline] |
Update ESum comp data.
Definition at line 237 of file SimTrigCommand.h.
00238 { 00239 m_esumComp = value; 00240 }
static void* DayaBay::SimTrigCommand::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Definition at line 126 of file SimTrigCommand.h.
00127 { 00128 return ( sizeof(SimTrigCommand) == size ? 00129 boost::singleton_pool<SimTrigCommand, sizeof(SimTrigCommand)>::malloc() : 00130 ::operator new(size) ); 00131 }
static void* DayaBay::SimTrigCommand::operator new | ( | size_t | size, | |
void * | pObj | |||
) | [inline, static] |
placement operator new it is needed by libstdc++ 3.2.3 (e.g.
in std::vector) it is not needed in libstdc++ >= 3.4
Definition at line 136 of file SimTrigCommand.h.
static void DayaBay::SimTrigCommand::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Definition at line 142 of file SimTrigCommand.h.
00143 { 00144 boost::singleton_pool<SimTrigCommand, sizeof(SimTrigCommand)>::is_from(p) ? 00145 boost::singleton_pool<SimTrigCommand, sizeof(SimTrigCommand)>::free(p) : 00146 ::operator delete(p); 00147 }
static void DayaBay::SimTrigCommand::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Definition at line 151 of file SimTrigCommand.h.
00152 { 00153 ::operator delete (p, pObj); 00154 }
Detector which SimTrigger command belongs (detector to be read out).
Definition at line 160 of file SimTrigCommand.h.
unsigned int DayaBay::SimTrigCommand::m_clockCycle [private] |
int DayaBay::SimTrigCommand::m_nhit [private] |
int DayaBay::SimTrigCommand::m_esumAdc [private] |
int DayaBay::SimTrigCommand::m_esumComp [private] |