#include <Alignment/CSCOverlapsBeamSplashCut/src/CSCOverlapsBeamSplashCut.cc>
Public Member Functions | |
CSCOverlapsBeamSplashCut (const edm::ParameterSet &) | |
~CSCOverlapsBeamSplashCut () | |
Private Member Functions | |
virtual void | beginJob () |
virtual void | endJob () |
virtual bool | filter (edm::Event &, const edm::EventSetup &) |
Private Attributes | |
int | m_maxSegments |
TH1F * | m_numSegments |
edm::InputTag | m_src |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 40 of file CSCOverlapsBeamSplashCut.cc.
CSCOverlapsBeamSplashCut::CSCOverlapsBeamSplashCut | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 67 of file CSCOverlapsBeamSplashCut.cc.
References m_numSegments.
: m_src(iConfig.getParameter<edm::InputTag>("src")) , m_maxSegments(iConfig.getParameter<int>("maxSegments")) { edm::Service<TFileService> tFileService; m_numSegments = tFileService->make<TH1F>("numSegments", "", 201, -0.5, 200.5); }
CSCOverlapsBeamSplashCut::~CSCOverlapsBeamSplashCut | ( | ) |
Definition at line 76 of file CSCOverlapsBeamSplashCut.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void CSCOverlapsBeamSplashCut::beginJob | ( | void | ) | [private, virtual] |
void CSCOverlapsBeamSplashCut::endJob | ( | void | ) | [private, virtual] |
bool CSCOverlapsBeamSplashCut::filter | ( | edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDFilter.
Definition at line 89 of file CSCOverlapsBeamSplashCut.cc.
References cscSegments_cfi::cscSegments, edm::Event::getByLabel(), m_maxSegments, m_numSegments, and m_src.
{ edm::Handle<CSCSegmentCollection> cscSegments; iEvent.getByLabel(m_src, cscSegments); m_numSegments->Fill(cscSegments->size()); if (m_maxSegments < 0) return true; else if (int(cscSegments->size()) <= m_maxSegments) return true; else return false; }
int CSCOverlapsBeamSplashCut::m_maxSegments [private] |
Definition at line 52 of file CSCOverlapsBeamSplashCut.cc.
Referenced by filter().
TH1F* CSCOverlapsBeamSplashCut::m_numSegments [private] |
Definition at line 53 of file CSCOverlapsBeamSplashCut.cc.
Referenced by CSCOverlapsBeamSplashCut(), and filter().
edm::InputTag CSCOverlapsBeamSplashCut::m_src [private] |
Definition at line 51 of file CSCOverlapsBeamSplashCut.cc.
Referenced by filter().