CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCDigiValidation Class Reference

#include <CSCDigiValidation.h>

Inheritance diagram for CSCDigiValidation:
one::DQMEDAnalyzer< T > one::dqmimplementation::DQMBaseClass< T... >

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
 CSCDigiValidation (const edm::ParameterSet &)
 
 ~CSCDigiValidation () override
 
- Public Member Functions inherited from one::DQMEDAnalyzer< T >
 DQMEDAnalyzer ()=default
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete
 
 ~DQMEDAnalyzer () override=default
 

Private Attributes

bool doSim_
 
CSCALCTDigiValidationtheALCTDigiValidation
 
CSCCLCTDigiValidationtheCLCTDigiValidation
 
CSCComparatorDigiValidationtheComparatorDigiValidation
 
CSCGeometrytheCSCGeometry
 
PSimHitMap theSimHitMap
 
CSCStripDigiValidationtheStripDigiValidation
 
CSCWireDigiValidationtheWireDigiValidation
 

Detailed Description

Definition at line 21 of file CSCDigiValidation.h.

Constructor & Destructor Documentation

CSCDigiValidation::CSCDigiValidation ( const edm::ParameterSet ps)
explicit

Definition at line 14 of file CSCDigiValidation.cc.

References doSim_, edm::ParameterSet::getParameter(), CSCBaseValidation::setSimHitMap(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, and theWireDigiValidation.

15  : doSim_(ps.getParameter<bool>("doSim")),
16  theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector()),
17  theCSCGeometry(nullptr),
18  theStripDigiValidation(nullptr),
19  theWireDigiValidation(nullptr),
21  theALCTDigiValidation(nullptr),
22  theCLCTDigiValidation(nullptr) {
24  new CSCStripDigiValidation(ps.getParameter<edm::InputTag>("stripDigiTag"), consumesCollector());
26  new CSCWireDigiValidation(ps.getParameter<edm::InputTag>("wireDigiTag"), consumesCollector(), doSim_);
28  ps.getParameter<edm::InputTag>("stripDigiTag"),
29  consumesCollector());
30  theALCTDigiValidation = new CSCALCTDigiValidation(ps.getParameter<edm::InputTag>("alctDigiTag"), consumesCollector());
31  theCLCTDigiValidation = new CSCCLCTDigiValidation(ps.getParameter<edm::InputTag>("clctDigiTag"), consumesCollector());
32 
33  if (doSim_) {
37  }
38 }
CSCStripDigiValidation * theStripDigiValidation
T getParameter(std::string const &) const
CSCALCTDigiValidation * theALCTDigiValidation
CSCGeometry * theCSCGeometry
void setSimHitMap(const PSimHitMap *simHitMap)
CSCComparatorDigiValidation * theComparatorDigiValidation
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation
CSCDigiValidation::~CSCDigiValidation ( )
override

Definition at line 40 of file CSCDigiValidation.cc.

References theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theStripDigiValidation, and theWireDigiValidation.

40  {
42  delete theWireDigiValidation;
44  delete theALCTDigiValidation;
45  delete theCLCTDigiValidation;
46 }
CSCStripDigiValidation * theStripDigiValidation
CSCALCTDigiValidation * theALCTDigiValidation
CSCComparatorDigiValidation * theComparatorDigiValidation
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation

Member Function Documentation

void CSCDigiValidation::analyze ( const edm::Event e,
const edm::EventSetup eventSetup 
)
override

Definition at line 59 of file CSCDigiValidation.cc.

References CSCStripDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), CSCWireDigiValidation::analyze(), CSCALCTDigiValidation::analyze(), CSCComparatorDigiValidation::analyze(), PSimHitMap::fill(), edm::EventSetup::get(), CSCStripDigiValidation::setGeometry(), CSCBaseValidation::setGeometry(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, and theWireDigiValidation.

59  {
60  theSimHitMap.fill(e);
61 
62  // find the geometry & conditions for this event
64  eventSetup.get<MuonGeometryRecord>().get(hGeom);
65  const CSCGeometry *pGeom = &*hGeom;
66 
72 
73  theStripDigiValidation->analyze(e, eventSetup);
74  theWireDigiValidation->analyze(e, eventSetup);
75  theComparatorDigiValidation->analyze(e, eventSetup);
76  theALCTDigiValidation->analyze(e, eventSetup);
77  theCLCTDigiValidation->analyze(e, eventSetup);
78 }
CSCStripDigiValidation * theStripDigiValidation
CSCALCTDigiValidation * theALCTDigiValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
void setGeometry(const CSCGeometry *geom)
void setGeometry(const CSCGeometry *geom)
void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
CSCComparatorDigiValidation * theComparatorDigiValidation
void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(const edm::Event &e, const edm::EventSetup &) override
T get() const
Definition: EventSetup.h:71
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation
void CSCDigiValidation::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  iRun,
edm::EventSetup const &   
)
override

Definition at line 48 of file CSCDigiValidation.cc.

References CSCStripDigiValidation::bookHistograms(), CSCALCTDigiValidation::bookHistograms(), CSCWireDigiValidation::bookHistograms(), CSCCLCTDigiValidation::bookHistograms(), CSCComparatorDigiValidation::bookHistograms(), doSim_, DQMStore::IBooker::setCurrentFolder(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theStripDigiValidation, and theWireDigiValidation.

50  {
51  iBooker.setCurrentFolder("MuonCSCDigisV/CSCDigiTask");
57 }
CSCStripDigiValidation * theStripDigiValidation
CSCALCTDigiValidation * theALCTDigiValidation
void bookHistograms(DQMStore::IBooker &, bool doSim)
void bookHistograms(DQMStore::IBooker &)
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
void bookHistograms(DQMStore::IBooker &)
void bookHistograms(DQMStore::IBooker &)
void bookHistograms(DQMStore::IBooker &)
CSCComparatorDigiValidation * theComparatorDigiValidation
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation

Member Data Documentation

bool CSCDigiValidation::doSim_
private

Definition at line 29 of file CSCDigiValidation.h.

Referenced by bookHistograms(), and CSCDigiValidation().

CSCALCTDigiValidation* CSCDigiValidation::theALCTDigiValidation
private

Definition at line 36 of file CSCDigiValidation.h.

Referenced by analyze(), bookHistograms(), CSCDigiValidation(), and ~CSCDigiValidation().

CSCCLCTDigiValidation* CSCDigiValidation::theCLCTDigiValidation
private

Definition at line 37 of file CSCDigiValidation.h.

Referenced by analyze(), bookHistograms(), CSCDigiValidation(), and ~CSCDigiValidation().

CSCComparatorDigiValidation* CSCDigiValidation::theComparatorDigiValidation
private

Definition at line 35 of file CSCDigiValidation.h.

Referenced by analyze(), bookHistograms(), CSCDigiValidation(), and ~CSCDigiValidation().

CSCGeometry* CSCDigiValidation::theCSCGeometry
private

Definition at line 31 of file CSCDigiValidation.h.

PSimHitMap CSCDigiValidation::theSimHitMap
private

Definition at line 30 of file CSCDigiValidation.h.

Referenced by analyze(), and CSCDigiValidation().

CSCStripDigiValidation* CSCDigiValidation::theStripDigiValidation
private

Definition at line 33 of file CSCDigiValidation.h.

Referenced by analyze(), bookHistograms(), CSCDigiValidation(), and ~CSCDigiValidation().

CSCWireDigiValidation* CSCDigiValidation::theWireDigiValidation
private

Definition at line 34 of file CSCDigiValidation.h.

Referenced by analyze(), bookHistograms(), CSCDigiValidation(), and ~CSCDigiValidation().