CMS 3D CMS Logo

HcalMonitorSelector Class Reference

#include <DQM/HcalMonitorModule/interface/HcalMonitorSelector.h>

List of all members.

Public Member Functions

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

Private Attributes

unsigned int m_eventMask
int m_runNum
unsigned int m_triggerMask


Detailed Description

Definition at line 30 of file HcalMonitorSelector.h.


Constructor & Destructor Documentation

HcalMonitorSelector::HcalMonitorSelector (  )  [inline]

Constructor.

Definition at line 35 of file HcalMonitorSelector.h.

00035 {};

HcalMonitorSelector::HcalMonitorSelector ( const edm::ParameterSet ps  ) 

Definition at line 12 of file HcalMonitorSelector.cc.

References m_eventMask, m_runNum, and m_triggerMask.

00012                                                                  {
00013 
00014   m_eventMask = 0;
00015   m_triggerMask = 0;
00016   m_runNum = -1;
00017 }

HcalMonitorSelector::~HcalMonitorSelector (  ) 

Destructor.

Definition at line 19 of file HcalMonitorSelector.cc.

00019                                          {
00020 
00021 }


Member Function Documentation

unsigned int HcalMonitorSelector::getEventMask (  )  const [inline]

Definition at line 41 of file HcalMonitorSelector.h.

References m_eventMask.

Referenced by HcalMonitorModule::analyze().

00041 { return m_eventMask; }

int HcalMonitorSelector::getRunNumber (  )  const [inline]

Definition at line 43 of file HcalMonitorSelector.h.

References m_runNum.

00043 { return m_runNum; }

unsigned int HcalMonitorSelector::getTriggerMask (  )  const [inline]

Definition at line 42 of file HcalMonitorSelector.h.

References m_triggerMask.

00042 { 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::Handle< T >::isValid(), m_eventMask, m_runNum, m_triggerMask, HcalTBTriggerData::runNumber(), HcalTBTriggerData::wasBeamTrigger(), HcalTBTriggerData::wasInSpillPedestalTrigger(), HcalTBTriggerData::wasLaserTrigger(), HcalTBTriggerData::wasLEDTrigger(), and HcalTBTriggerData::wasOutSpillPedestalTrigger().

Referenced by HcalMonitorModule::analyze().

00023                                                        {
00024   m_eventMask = 0;
00025   m_triggerMask = 0;
00026 
00028   m_eventMask = DO_HCAL_DIGIMON|DO_HCAL_DFMON|DO_HCAL_RECHITMON;
00029   m_eventMask = m_eventMask|DO_HCAL_PED_CALIBMON|DO_HCAL_LED_CALIBMON|DO_HCAL_LASER_CALIBMON; 
00030 
00031   return;
00032 
00033   edm::Handle<HcalTBTriggerData> triggerD;
00034   e.getByType(triggerD);
00035   if (!triggerD.isValid()) {
00036     m_runNum=-1; 
00037     //If we don't have the trigger data, just activate everyone!
00038     m_eventMask = m_eventMask|DO_HCAL_PED_CALIBMON|DO_HCAL_LED_CALIBMON|DO_HCAL_LASER_CALIBMON; 
00039     return; 
00040   }
00041   const HcalTBTriggerData trigger = *triggerD;
00042   
00043   m_runNum = trigger.runNumber();
00044 
00045   // check trigger contents
00046   if (trigger.wasBeamTrigger())             { m_triggerMask |= 0x01; m_eventMask = m_eventMask|HCAL_BEAM_TRIGGER;}
00047   if (trigger.wasOutSpillPedestalTrigger()) { m_triggerMask |= 0x02; m_eventMask = m_eventMask|DO_HCAL_PED_CALIBMON;}
00048   if (trigger.wasInSpillPedestalTrigger())  { m_triggerMask |= 0x04; m_eventMask = m_eventMask|DO_HCAL_PED_CALIBMON;}
00049   if (trigger.wasLEDTrigger())              { m_triggerMask |= 0x08; m_eventMask = m_eventMask|DO_HCAL_LED_CALIBMON;}
00050   if (trigger.wasLaserTrigger())            { m_triggerMask |= 0x10; m_eventMask = m_eventMask|DO_HCAL_LASER_CALIBMON;}
00051 
00052   if(m_eventMask&DO_HCAL_PED_CALIBMON) m_eventMask = m_eventMask^DO_HCAL_RECHITMON;
00053 
00054   return;
00055 }


Member Data Documentation

unsigned int HcalMonitorSelector::m_eventMask [private]

Definition at line 50 of file HcalMonitorSelector.h.

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

int HcalMonitorSelector::m_runNum [private]

Definition at line 52 of file HcalMonitorSelector.h.

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

unsigned int HcalMonitorSelector::m_triggerMask [private]

Definition at line 51 of file HcalMonitorSelector.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:23:47 2009 for CMSSW by  doxygen 1.5.4