CMS 3D CMS Logo

Public Member Functions | Private Attributes

CastorMonitorSelector Class Reference

#include <CastorMonitorSelector.h>

List of all members.

Public Member Functions

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

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.

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

Definition at line 3 of file CastorMonitorSelector.cc.

References m_eventMask, m_runNum, and m_triggerMask.

                                                                     {

  m_eventMask = 0;
  m_triggerMask = 0;
  m_runNum = -1;
}
CastorMonitorSelector::~CastorMonitorSelector ( )

Destructor.

Definition at line 10 of file CastorMonitorSelector.cc.

                                             {

}

Member Function Documentation

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

Definition at line 30 of file CastorMonitorSelector.h.

References m_eventMask.

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

Definition at line 32 of file CastorMonitorSelector.h.

References m_runNum.

{ return m_runNum; }
unsigned int CastorMonitorSelector::getTriggerMask ( ) const [inline]

Definition at line 31 of file CastorMonitorSelector.h.

References m_triggerMask.

{ 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().

                                                         {
 
   m_eventMask = 0;
  m_triggerMask = 0;

  m_eventMask = DO_CASTOR_RECHITMON;
  m_eventMask = m_eventMask|DO_CASTOR_PED_CALIBMON; 

  return;

  edm::Handle<HcalTBTriggerData> triggerD; 
  e.getByType(triggerD);
  if (!triggerD.isValid()) {
    m_runNum=-1; 
    //m_eventMask = m_eventMask|DO_CASTOR_PED_CALIBMON|DO_CASTOR_LED_CALIBMON|DO_CASTOR_LASER_CALIBMON;
    m_eventMask = m_eventMask|DO_CASTOR_PED_CALIBMON;
    return; 
  }
  const HcalTBTriggerData trigger = *triggerD;
  
  m_runNum = trigger.runNumber();

  //if (trigger.wasBeamTrigger())             { m_triggerMask |= 0x01; m_eventMask = m_eventMask|CASTOR_BEAM_TRIGGER;}
  if (trigger.wasOutSpillPedestalTrigger()) { m_triggerMask |= 0x02; m_eventMask = m_eventMask|DO_CASTOR_PED_CALIBMON;}
  if (trigger.wasInSpillPedestalTrigger())  { m_triggerMask |= 0x04; m_eventMask = m_eventMask|DO_CASTOR_PED_CALIBMON;}
  // if (trigger.wasLEDTrigger())              { m_triggerMask |= 0x08; m_eventMask = m_eventMask|DO_CASTOR_LED_CALIBMON;}
  // if (trigger.wasLaserTrigger())            { m_triggerMask |= 0x10; m_eventMask = m_eventMask|DO_CASTOR_LASER_CALIBMON;}

  if(m_eventMask&DO_CASTOR_PED_CALIBMON) m_eventMask = m_eventMask^DO_CASTOR_RECHITMON;

  return;

}

Member Data Documentation

unsigned int CastorMonitorSelector::m_eventMask [private]

Definition at line 39 of file CastorMonitorSelector.h.

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

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().