CMS 3D CMS Logo

CSCDigiValidation.cc
Go to the documentation of this file.
10 #include <iostream>
11 
13  : doSim_(ps.getParameter<bool>("doSim")),
14  theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector()),
15  theCSCGeometry(nullptr),
16  theStripDigiValidation(nullptr),
17  theWireDigiValidation(nullptr),
18  theComparatorDigiValidation(nullptr),
19  theALCTDigiValidation(nullptr),
20  theCLCTDigiValidation(nullptr) {
22  new CSCStripDigiValidation(ps.getParameter<edm::InputTag>("stripDigiTag"), consumesCollector()));
24  new CSCWireDigiValidation(ps.getParameter<edm::InputTag>("wireDigiTag"), consumesCollector(), doSim_));
26  ps.getParameter<edm::InputTag>("stripDigiTag"),
27  consumesCollector()));
29  new CSCALCTDigiValidation(ps.getParameter<edm::InputTag>("alctDigiTag"), consumesCollector()));
31  new CSCCLCTDigiValidation(ps.getParameter<edm::InputTag>("clctDigiTag"), consumesCollector()));
32 
33  if (doSim_) {
34  theStripDigiValidation->setSimHitMap(&theSimHitMap);
35  theWireDigiValidation->setSimHitMap(&theSimHitMap);
37  }
38 }
39 
41 
43  edm::Run const &iRun,
44  edm::EventSetup const & /* iSetup */) {
45  iBooker.setCurrentFolder("MuonCSCDigisV/CSCDigiTask");
46  theStripDigiValidation->bookHistograms(iBooker, doSim_);
47  theWireDigiValidation->bookHistograms(iBooker);
48  theComparatorDigiValidation->bookHistograms(iBooker);
49  theALCTDigiValidation->bookHistograms(iBooker);
50  theCLCTDigiValidation->bookHistograms(iBooker);
51 }
52 
53 void CSCDigiValidation::analyze(const edm::Event &e, const edm::EventSetup &eventSetup) {
55 
56  // find the geometry & conditions for this event
58  eventSetup.get<MuonGeometryRecord>().get(hGeom);
59  const CSCGeometry *pGeom = &*hGeom;
60 
61  theStripDigiValidation->setGeometry(pGeom);
62  theWireDigiValidation->setGeometry(pGeom);
63  theComparatorDigiValidation->setGeometry(pGeom);
64  theALCTDigiValidation->setGeometry(pGeom);
65  theCLCTDigiValidation->setGeometry(pGeom);
66 
67  theStripDigiValidation->analyze(e, eventSetup);
68  theWireDigiValidation->analyze(e, eventSetup);
69  theComparatorDigiValidation->analyze(e, eventSetup);
70  theALCTDigiValidation->analyze(e, eventSetup);
71  theCLCTDigiValidation->analyze(e, eventSetup);
72 }
CSCALCTDigiValidation
Definition: CSCALCTDigiValidation.h:11
electrons_cff.bool
bool
Definition: electrons_cff.py:372
edm::Run
Definition: Run.h:45
edm
HLT enums.
Definition: AlignableModifier.h:19
CSCDigiValidation::theCLCTDigiValidation
std::unique_ptr< CSCCLCTDigiValidation > theCLCTDigiValidation
Definition: CSCDigiValidation.h:37
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
CSCGeometry
Definition: CSCGeometry.h:24
CSCComparatorDigiValidation.h
CSCDigiValidation::theComparatorDigiValidation
std::unique_ptr< CSCComparatorDigiValidation > theComparatorDigiValidation
Definition: CSCDigiValidation.h:35
CSCALCTDigiValidation.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
CSCCLCTDigiValidation.h
CSCDigiValidation::theALCTDigiValidation
std::unique_ptr< CSCALCTDigiValidation > theALCTDigiValidation
Definition: CSCDigiValidation.h:36
Service.h
PSimHitMap::fill
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
edm::ESHandle< CSCGeometry >
CSCDigiValidation.h
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet
Definition: ParameterSet.h:36
CSCDigiValidation::~CSCDigiValidation
~CSCDigiValidation() override
Definition: CSCDigiValidation.cc:40
CSCWireDigiValidation.h
CSCDigiValidation::theStripDigiValidation
std::unique_ptr< CSCStripDigiValidation > theStripDigiValidation
Definition: CSCDigiValidation.h:33
CSCDigiValidation::CSCDigiValidation
CSCDigiValidation(const edm::ParameterSet &)
Definition: CSCDigiValidation.cc:12
CSCDigiValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: CSCDigiValidation.cc:42
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
CSCCLCTDigiValidation
Definition: CSCCLCTDigiValidation.h:11
CSCDigiValidation::theSimHitMap
PSimHitMap theSimHitMap
Definition: CSCDigiValidation.h:30
CSCDigiValidation::doSim_
bool doSim_
Definition: CSCDigiValidation.h:29
CSCDigiValidation::theWireDigiValidation
std::unique_ptr< CSCWireDigiValidation > theWireDigiValidation
Definition: CSCDigiValidation.h:34
CSCDigiValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CSCDigiValidation.cc:53
CSCStripDigiValidation.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
CSCComparatorDigiValidation
Definition: CSCComparatorDigiValidation.h:12
MuonGeometryRecord.h
edm::Event
Definition: Event.h:73
CSCStripDigiValidation
Definition: CSCStripDigiValidation.h:11
MuonGeometryRecord
Definition: MuonGeometryRecord.h:34
edm::InputTag
Definition: InputTag.h:15
CSCGeometry.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
CSCWireDigiValidation
Definition: CSCWireDigiValidation.h:11