| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::SimTrigCommand Class Reference

Single SimTrigger command which should readout the detector. More...

#include <SimTrigCommand.h>

Collaboration diagram for DayaBay::SimTrigCommand:

[legend]
List of all members.

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::Detectordetector () 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_ttype () 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.

Detailed Description

Single SimTrigger command which should readout the detector.

Author:
bseilhan@iit.edu created Mon Apr 11 03:58:07 2011

Definition at line 40 of file SimTrigCommand.h.


Constructor & Destructor Documentation

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]

Default Destructor.

Definition at line 66 of file SimTrigCommand.h.

00066 {}


Member Function Documentation

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]

Update NHit.

Definition at line 217 of file SimTrigCommand.h.

00218 {
00219   m_nhit = value;
00220 }

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.

00137     {
00138       return ::operator new (size,pObj);
00139     }

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     }


Member Data Documentation

DayaBay::Detector DayaBay::SimTrigCommand::m_detector [private]

Detector which SimTrigger command belongs (detector to be read out).

Definition at line 160 of file SimTrigCommand.h.

DayaBay::Trigger::TriggerType_t DayaBay::SimTrigCommand::m_type [private]

The type of trigger command.

Definition at line 161 of file SimTrigCommand.h.

unsigned int DayaBay::SimTrigCommand::m_clockCycle [private]

The simulation clock cycle of the trigger command.

Definition at line 162 of file SimTrigCommand.h.

int DayaBay::SimTrigCommand::m_nhit [private]

NHit.

Definition at line 163 of file SimTrigCommand.h.

int DayaBay::SimTrigCommand::m_esumAdc [private]

ESum adc data.

Definition at line 164 of file SimTrigCommand.h.

int DayaBay::SimTrigCommand::m_esumComp [private]

ESum comp data.

Definition at line 165 of file SimTrigCommand.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:30:58 2011 for SimTrigEvent by doxygen 1.4.7