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

In This Package:

Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
DayaBay::SimRpcTrigCommand Class Reference

Specific RPC trigger command, inheriting from base SimTrigCommand. More...

#include <SimRpcTrigCommand.h>

Inheritance diagram for DayaBay::SimRpcTrigCommand:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::SimRpcTrigCommand:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map
< DayaBay::FecChannelId,
DayaBay::Trigger::TriggerType_t
TrigChannels
 Container of board Ids.

Public Member Functions

 SimRpcTrigCommand (const DayaBay::Detector &in_det, const DayaBay::Trigger::TriggerType_t &in_type, unsigned int in_cycle)
 fully construct
 SimRpcTrigCommand ()
 Default Constructor.
virtual ~SimRpcTrigCommand ()
 Default Destructor.
void addInChannel (const DayaBay::FecChannelId &channelId, const DayaBay::Trigger::TriggerType_t &trigType)
 Add channel to input trigger map.
void addOutChannel (const DayaBay::FecChannelId &channelId, const DayaBay::Trigger::TriggerType_t &trigType)
 Add channel to output trigger map. Checks if the channel is already there and what trigger type it has assigned.
std::ostream & fillStream (std::ostream &s) const
 Print the trig command.
const TrigChannelsinTriggers () const
 Retrieve const Map of trigger type to ChannelId of board, from which the trigger came.
void setInTriggers (const TrigChannels &value)
 Update Map of trigger type to ChannelId of board, from which the trigger came.
const TrigChannelsoutTriggers () const
 Retrieve const Map of trigger type to board ChannelId.
void setOutTriggers (const TrigChannels &value)
 Update Map of trigger type to board ChannelId.
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 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
static bool LessThan (DayaBay::SimTrigCommand *d1, DayaBay::SimTrigCommand *d2)
 compter two trigger event objects.

Private Attributes

TrigChannels m_inTriggers
 Map of trigger type to ChannelId of board, from which the trigger came. Local trigger.
TrigChannels m_outTriggers
 Map of trigger type to board ChannelId. Readout trigger.

Detailed Description

Specific RPC trigger command, inheriting from base SimTrigCommand.

Author:
viktor created Thu Dec 5 18:04:33 2013

Definition at line 41 of file SimRpcTrigCommand.h.


Member Typedef Documentation

Container of board Ids.

Definition at line 46 of file SimRpcTrigCommand.h.


Constructor & Destructor Documentation

DayaBay::SimRpcTrigCommand::SimRpcTrigCommand ( const DayaBay::Detector in_det,
const DayaBay::Trigger::TriggerType_t in_type,
unsigned int  in_cycle 
) [inline]

fully construct

Definition at line 49 of file SimRpcTrigCommand.h.

                                             : SimTrigCommand(in_det,
                                                                        in_type,
                                                                        in_cycle),
                                                                        m_inTriggers(),
                                                                        m_outTriggers() {}
DayaBay::SimRpcTrigCommand::SimRpcTrigCommand ( ) [inline]

Default Constructor.

Definition at line 58 of file SimRpcTrigCommand.h.

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

Default Destructor.

Definition at line 62 of file SimRpcTrigCommand.h.

{}

Member Function Documentation

void DayaBay::SimRpcTrigCommand::addInChannel ( const DayaBay::FecChannelId channelId,
const DayaBay::Trigger::TriggerType_t trigType 
) [inline]

Add channel to input trigger map.

Definition at line 166 of file SimRpcTrigCommand.h.

{

            m_inTriggers[channelId] = trigType;
        
}
void DayaBay::SimRpcTrigCommand::addOutChannel ( const DayaBay::FecChannelId channelId,
const DayaBay::Trigger::TriggerType_t trigType 
)

Add channel to output trigger map. Checks if the channel is already there and what trigger type it has assigned.

Definition at line 3 of file SimRpcTrigCommand.cc.

{
    TrigChannels::iterator it = m_outTriggers.find(channelId);
    if (it == m_outTriggers.end()) {
        m_outTriggers[channelId] = trigType;
    } else {
        if (trigType == DayaBay::Trigger::kRPC3of4)
            it->second = trigType;
    }
}
std::ostream & DayaBay::SimRpcTrigCommand::fillStream ( std::ostream &  s) const

Print the trig command.

Reimplemented from DayaBay::SimTrigCommand.

Definition at line 16 of file SimRpcTrigCommand.cc.

{
  SimTrigCommand::fillStream(s);
  s << "{ " << "inTriggers [ChannelId, TriggerType] size: "
            << m_inTriggers.size() << std::endl
            << "outTriggers [ChannelId, TriggerType] size: "
            << m_outTriggers.size()  << std::endl
            << " }";
  // FIXME: Add more information to the output stream
  return s;
}
const DayaBay::SimRpcTrigCommand::TrigChannels & DayaBay::SimRpcTrigCommand::inTriggers ( ) const [inline]

Retrieve const Map of trigger type to ChannelId of board, from which the trigger came.

Local trigger.

Definition at line 146 of file SimRpcTrigCommand.h.

{
  return m_inTriggers;
}
void DayaBay::SimRpcTrigCommand::setInTriggers ( const TrigChannels value) [inline]

Update Map of trigger type to ChannelId of board, from which the trigger came.

Local trigger.

Definition at line 151 of file SimRpcTrigCommand.h.

{
  m_inTriggers = value;
}
const DayaBay::SimRpcTrigCommand::TrigChannels & DayaBay::SimRpcTrigCommand::outTriggers ( ) const [inline]

Retrieve const Map of trigger type to board ChannelId.

Readout trigger.

Definition at line 156 of file SimRpcTrigCommand.h.

{
  return m_outTriggers;
}
void DayaBay::SimRpcTrigCommand::setOutTriggers ( const TrigChannels value) [inline]

Update Map of trigger type to board ChannelId.

Readout trigger.

Definition at line 161 of file SimRpcTrigCommand.h.

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

operator new

Reimplemented from DayaBay::SimTrigCommand.

Definition at line 94 of file SimRpcTrigCommand.h.

    {
      return ( sizeof(SimRpcTrigCommand) == size ? 
               boost::singleton_pool<SimRpcTrigCommand, sizeof(SimRpcTrigCommand)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::SimRpcTrigCommand::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 from DayaBay::SimTrigCommand.

Definition at line 104 of file SimRpcTrigCommand.h.

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

operator delete

Reimplemented from DayaBay::SimTrigCommand.

Definition at line 110 of file SimRpcTrigCommand.h.

    {
      boost::singleton_pool<SimRpcTrigCommand, sizeof(SimRpcTrigCommand)>::is_from(p) ?
      boost::singleton_pool<SimRpcTrigCommand, sizeof(SimRpcTrigCommand)>::free(p) :
      ::operator delete(p);
    }
static void DayaBay::SimRpcTrigCommand::operator delete ( void *  p,
void *  pObj 
) [inline, static]

placement operator delete not sure if really needed, but it does not harm

Reimplemented from DayaBay::SimTrigCommand.

Definition at line 119 of file SimRpcTrigCommand.h.

    {
      ::operator delete (p, pObj);
    }
bool DayaBay::SimTrigCommand::LessThan ( DayaBay::SimTrigCommand d1,
DayaBay::SimTrigCommand d2 
) [static, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

Update The type of trigger command.

Definition at line 197 of file SimTrigCommand.h.

{
  m_type = value;
}
unsigned int DayaBay::SimTrigCommand::clockCycle ( ) const [inline, inherited]

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, inherited]

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, inherited]

Retrieve const NHit.

Definition at line 212 of file SimTrigCommand.h.

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

Update NHit.

Definition at line 217 of file SimTrigCommand.h.

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

Retrieve const ESum adc data.

Definition at line 222 of file SimTrigCommand.h.

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

Update ESum adc data.

Definition at line 227 of file SimTrigCommand.h.

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

Retrieve const ESum comp data.

Definition at line 232 of file SimTrigCommand.h.

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

Update ESum comp data.

Definition at line 237 of file SimTrigCommand.h.

{
  m_esumComp = value;
}

Member Data Documentation

Map of trigger type to ChannelId of board, from which the trigger came. Local trigger.

Definition at line 128 of file SimRpcTrigCommand.h.

Map of trigger type to board ChannelId. Readout trigger.

Definition at line 129 of file SimRpcTrigCommand.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