CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CastorMonitorSelector Class Reference

#include <CastorMonitorSelector.h>

Public Member Functions

 CastorMonitorSelector ()
 Constructor. More...
 
 CastorMonitorSelector (const edm::ParameterSet &ps)
 
unsigned int getEventMask () const
 
int getRunNumber () const
 
unsigned int getTriggerMask () const
 
void processEvent (const edm::Event &e)
 
 ~CastorMonitorSelector ()
 Destructor. More...
 

Private Attributes

unsigned int m_eventMask
 
int m_runNum
 
unsigned int m_triggerMask
 

Detailed Description

Definition at line 19 of file CastorMonitorSelector.h.

Constructor & Destructor Documentation

CastorMonitorSelector::CastorMonitorSelector ( )
inline

Constructor.

Definition at line 24 of file CastorMonitorSelector.h.

24 {};
CastorMonitorSelector::CastorMonitorSelector ( const edm::ParameterSet ps)

Definition at line 3 of file CastorMonitorSelector.cc.

References m_eventMask, m_runNum, and m_triggerMask.

3  {
4 
5  m_eventMask = 0;
6  m_triggerMask = 0;
7  m_runNum = -1;
8 }
CastorMonitorSelector::~CastorMonitorSelector ( )

Destructor.

Definition at line 10 of file CastorMonitorSelector.cc.

10  {
11 
12 }

Member Function Documentation

unsigned int CastorMonitorSelector::getEventMask ( ) const
inline

Definition at line 30 of file CastorMonitorSelector.h.

References m_eventMask.

30 { return m_eventMask; }
int CastorMonitorSelector::getRunNumber ( ) const
inline

Definition at line 32 of file CastorMonitorSelector.h.

References m_runNum.

unsigned int CastorMonitorSelector::getTriggerMask ( ) const
inline

Definition at line 31 of file CastorMonitorSelector.h.

References m_triggerMask.

31 { return m_triggerMask; }
void CastorMonitorSelector::processEvent ( const edm::Event e)

Definition at line 14 of file CastorMonitorSelector.cc.

References DO_CASTOR_PED_CALIBMON, DO_CASTOR_RECHITMON, edm::Event::getByType(), edm::HandleBase::isValid(), m_eventMask, m_runNum, m_triggerMask, HcalTBTriggerData::runNumber(), HcalTBTriggerData::wasInSpillPedestalTrigger(), and HcalTBTriggerData::wasOutSpillPedestalTrigger().

14  {
15 
16  m_eventMask = 0;
17  m_triggerMask = 0;
18 
22 
23  return;
24 
26  e.getByType(triggerD);
27  if (!triggerD.isValid()) {
28  m_runNum=-1;
30  //m_eventMask = m_eventMask|DO_CASTOR_PED_CALIBMON|DO_CASTOR_LED_CALIBMON|DO_CASTOR_LASER_CALIBMON;
32  return;
33  }
34  const HcalTBTriggerData trigger = *triggerD;
35 
36  m_runNum = trigger.runNumber();
37 
39  //if (trigger.wasBeamTrigger()) { m_triggerMask |= 0x01; m_eventMask = m_eventMask|CASTOR_BEAM_TRIGGER;}
42  // if (trigger.wasLEDTrigger()) { m_triggerMask |= 0x08; m_eventMask = m_eventMask|DO_CASTOR_LED_CALIBMON;}
43  // if (trigger.wasLaserTrigger()) { m_triggerMask |= 0x10; m_eventMask = m_eventMask|DO_CASTOR_LASER_CALIBMON;}
44 
46 
47  return;
48 
49 }
bool getByType(Handle< PROD > &result) const
Definition: Event.h:397
static const int DO_CASTOR_RECHITMON
bool wasOutSpillPedestalTrigger() const
returns true if this was an out-of-spill pedestal trigger
bool isValid() const
Definition: HandleBase.h:76
static const int DO_CASTOR_PED_CALIBMON
bool wasInSpillPedestalTrigger() const
returns true if this was an in-spill pedestal trigger
uint32_t runNumber() const
Returns the current run number.

Member Data Documentation

unsigned int CastorMonitorSelector::m_eventMask
private

Definition at line 39 of file CastorMonitorSelector.h.

Referenced by CastorMonitorSelector(), getEventMask(), and processEvent().

int CastorMonitorSelector::m_runNum
private

Definition at line 41 of file CastorMonitorSelector.h.

Referenced by CastorMonitorSelector(), getRunNumber(), and processEvent().

unsigned int CastorMonitorSelector::m_triggerMask
private

Definition at line 40 of file CastorMonitorSelector.h.

Referenced by CastorMonitorSelector(), getTriggerMask(), and processEvent().