#include <HcalMonitorSelector.h>
Public Member Functions | |
unsigned int | getEventMask () const |
int | getRunNumber () const |
unsigned int | getTriggerMask () const |
HcalMonitorSelector () | |
Constructor. | |
HcalMonitorSelector (const edm::ParameterSet &ps) | |
void | processEvent (const edm::Event &e) |
~HcalMonitorSelector () | |
Destructor. | |
Private Attributes | |
unsigned int | m_eventMask |
int | m_runNum |
unsigned int | m_triggerMask |
Definition at line 28 of file HcalMonitorSelector.h.
HcalMonitorSelector::HcalMonitorSelector | ( | ) | [inline] |
HcalMonitorSelector::HcalMonitorSelector | ( | const edm::ParameterSet & | ps | ) |
Definition at line 12 of file HcalMonitorSelector.cc.
References m_eventMask, m_runNum, and m_triggerMask.
{ m_eventMask = 0; m_triggerMask = 0; m_runNum = -1; }
HcalMonitorSelector::~HcalMonitorSelector | ( | ) |
unsigned int HcalMonitorSelector::getEventMask | ( | ) | const [inline] |
Definition at line 39 of file HcalMonitorSelector.h.
References m_eventMask.
{ return m_eventMask; }
int HcalMonitorSelector::getRunNumber | ( | ) | const [inline] |
unsigned int HcalMonitorSelector::getTriggerMask | ( | ) | const [inline] |
Definition at line 40 of file HcalMonitorSelector.h.
References m_triggerMask.
{ return m_triggerMask; }
void HcalMonitorSelector::processEvent | ( | const edm::Event & | e | ) |
Just pass these through for now...
Definition at line 23 of file HcalMonitorSelector.cc.
References DO_HCAL_DFMON, DO_HCAL_DIGIMON, DO_HCAL_LASER_CALIBMON, DO_HCAL_LED_CALIBMON, DO_HCAL_PED_CALIBMON, DO_HCAL_RECHITMON, edm::Event::getByType(), HCAL_BEAM_TRIGGER, edm::HandleBase::isValid(), m_eventMask, m_runNum, m_triggerMask, HcalTBTriggerData::runNumber(), HcalTBTriggerData::wasBeamTrigger(), HcalTBTriggerData::wasInSpillPedestalTrigger(), HcalTBTriggerData::wasLaserTrigger(), HcalTBTriggerData::wasLEDTrigger(), and HcalTBTriggerData::wasOutSpillPedestalTrigger().
{ m_eventMask = 0; m_triggerMask = 0; m_eventMask = DO_HCAL_DIGIMON|DO_HCAL_DFMON|DO_HCAL_RECHITMON; m_eventMask = m_eventMask|DO_HCAL_PED_CALIBMON|DO_HCAL_LED_CALIBMON|DO_HCAL_LASER_CALIBMON; return; edm::Handle<HcalTBTriggerData> triggerD; e.getByType(triggerD); if (!triggerD.isValid()) { m_runNum=-1; //If we don't have the trigger data, just activate everyone! m_eventMask = m_eventMask|DO_HCAL_PED_CALIBMON|DO_HCAL_LED_CALIBMON|DO_HCAL_LASER_CALIBMON; return; } const HcalTBTriggerData trigger = *triggerD; m_runNum = trigger.runNumber(); // check trigger contents if (trigger.wasBeamTrigger()) { m_triggerMask |= 0x01; m_eventMask = m_eventMask|HCAL_BEAM_TRIGGER;} if (trigger.wasOutSpillPedestalTrigger()) { m_triggerMask |= 0x02; m_eventMask = m_eventMask|DO_HCAL_PED_CALIBMON;} if (trigger.wasInSpillPedestalTrigger()) { m_triggerMask |= 0x04; m_eventMask = m_eventMask|DO_HCAL_PED_CALIBMON;} if (trigger.wasLEDTrigger()) { m_triggerMask |= 0x08; m_eventMask = m_eventMask|DO_HCAL_LED_CALIBMON;} if (trigger.wasLaserTrigger()) { m_triggerMask |= 0x10; m_eventMask = m_eventMask|DO_HCAL_LASER_CALIBMON;} if(m_eventMask&DO_HCAL_PED_CALIBMON) m_eventMask = m_eventMask^DO_HCAL_RECHITMON; return; }
unsigned int HcalMonitorSelector::m_eventMask [private] |
Definition at line 48 of file HcalMonitorSelector.h.
Referenced by getEventMask(), HcalMonitorSelector(), and processEvent().
int HcalMonitorSelector::m_runNum [private] |
Definition at line 50 of file HcalMonitorSelector.h.
Referenced by getRunNumber(), HcalMonitorSelector(), and processEvent().
unsigned int HcalMonitorSelector::m_triggerMask [private] |
Definition at line 49 of file HcalMonitorSelector.h.
Referenced by getTriggerMask(), HcalMonitorSelector(), and processEvent().