/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Member Functions | Private Attributes
DayaBay::SimTrigCommand Class Reference

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

#include <SimTrigCommand.h>

Inheritance diagram for DayaBay::SimTrigCommand:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::SimTrigCommand:
Collaboration graph
[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_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.

Detailed Description

Single SimTrigger command which should readout the detector.

Author:
bseilhan@iit.edu created Thu Dec 5 18:04:33 2013

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.

                                      : m_detector(in_det),
                                                                               m_type(in_type),
                                                                               m_clockCycle(in_cycle),
                                                                               m_nhit(in_nhit),
                                                                               m_esumAdc(in_esum),
                                                                               m_esumComp(in_esumComp) {}
DayaBay::SimTrigCommand::SimTrigCommand ( ) [inline]

Default Constructor.

Definition at line 58 of file SimTrigCommand.h.

virtual DayaBay::SimTrigCommand::~SimTrigCommand ( ) [inline, virtual]

Default Destructor.

Definition at line 66 of file SimTrigCommand.h.

{}

Member Function Documentation

std::ostream & DayaBay::SimTrigCommand::fillStream ( std::ostream &  s) const

Print the trig command.

Reimplemented in DayaBay::SimRpcTrigCommand.

Definition at line 10 of file SimTrigCommand.cc.

{
    s << std::endl << "{ ";
    s << "trigCommand : " << std::endl;
    s << "Detector: " << m_detector.detName() << std::endl;
    s << "Type: " << DayaBay::Trigger::AsString(m_type) << std::endl;
    s << "ClockCycle: " << m_clockCycle << std::endl;
    s << "nhit: " << m_nhit << std::endl;
    s << "esum: " << m_esumAdc << std::endl;
    s << "esumComp: " << m_esumComp << std::endl;
    s << std::endl;
    s << " }";
    return s;
}
bool DayaBay::SimTrigCommand::LessThan ( DayaBay::SimTrigCommand d1,
DayaBay::SimTrigCommand d2 
) [static]

compter two trigger event objects.

Definition at line 4 of file SimTrigCommand.cc.

{
  return d1->m_clockCycle < d2->m_clockCycle;
}
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.

{
  return m_detector;
}
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.

{
  m_detector = value;
}
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.

{
  return m_type;
}
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.

{
  m_type = value;
}
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.

{
  return m_clockCycle;
}
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.

{
  m_clockCycle = value;
}
int DayaBay::SimTrigCommand::nhit ( ) const [inline]

Retrieve const NHit.

Definition at line 212 of file SimTrigCommand.h.

{
  return m_nhit;
}
void DayaBay::SimTrigCommand::setNhit ( int  value) [inline]

Update NHit.

Definition at line 217 of file SimTrigCommand.h.

{
  m_nhit = value;
}
int DayaBay::SimTrigCommand::esumAdc ( ) const [inline]

Retrieve const ESum adc data.

Definition at line 222 of file SimTrigCommand.h.

{
  return m_esumAdc;
}
void DayaBay::SimTrigCommand::setEsumAdc ( int  value) [inline]

Update ESum adc data.

Definition at line 227 of file SimTrigCommand.h.

{
  m_esumAdc = value;
}
int DayaBay::SimTrigCommand::esumComp ( ) const [inline]

Retrieve const ESum comp data.

Definition at line 232 of file SimTrigCommand.h.

{
  return m_esumComp;
}
void DayaBay::SimTrigCommand::setEsumComp ( int  value) [inline]

Update ESum comp data.

Definition at line 237 of file SimTrigCommand.h.

{
  m_esumComp = value;
}
static void* DayaBay::SimTrigCommand::operator new ( size_t  size) [inline, static]

operator new

Reimplemented in DayaBay::SimRpcTrigCommand.

Definition at line 126 of file SimTrigCommand.h.

    {
      return ( sizeof(SimTrigCommand) == size ? 
               boost::singleton_pool<SimTrigCommand, sizeof(SimTrigCommand)>::malloc() :
               ::operator new(size) );
    }
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

Reimplemented in DayaBay::SimRpcTrigCommand.

Definition at line 136 of file SimTrigCommand.h.

    {
      return ::operator new (size,pObj);
    }
static void DayaBay::SimTrigCommand::operator delete ( void *  p) [inline, static]

operator delete

Reimplemented in DayaBay::SimRpcTrigCommand.

Definition at line 142 of file SimTrigCommand.h.

    {
      boost::singleton_pool<SimTrigCommand, sizeof(SimTrigCommand)>::is_from(p) ?
      boost::singleton_pool<SimTrigCommand, sizeof(SimTrigCommand)>::free(p) :
      ::operator delete(p);
    }
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

Reimplemented in DayaBay::SimRpcTrigCommand.

Definition at line 151 of file SimTrigCommand.h.

    {
      ::operator delete (p, pObj);
    }

Member Data Documentation

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

Definition at line 160 of file SimTrigCommand.h.

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.

NHit.

Definition at line 163 of file SimTrigCommand.h.

ESum adc data.

Definition at line 164 of file SimTrigCommand.h.

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 Fri May 16 2014 10:05:16 for SimTrigEvent by doxygen 1.7.4