Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Validation
CSCRecHits
src
CSCRecHitValidation.cc
Go to the documentation of this file.
1
#include "
Validation/CSCRecHits/src/CSCRecHitValidation.h
"
2
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
3
#include "
FWCore/ServiceRegistry/interface/Service.h
"
4
#include "
Geometry/CSCGeometry/interface/CSCGeometry.h
"
5
#include "
Geometry/Records/interface/MuonGeometryRecord.h
"
6
#include <
DataFormats/CSCRecHit/interface/CSCRecHit2DCollection.h
>
7
#include "
DQMServices/Core/interface/DQMStore.h
"
8
9
10
11
CSCRecHitValidation::CSCRecHitValidation
(
const
edm::ParameterSet
& ps)
12
:
dbe_
( edm::
Service
<
DQMStore
>().
operator
->() ),
13
theOutputFile
( ps.getParameter<std::
string
>(
"outputFile"
) ),
14
theSimHitMap(ps.getParameter<edm::InputTag>(
"simHitsTag"
)),
15
theCSCGeometry(0),
16
the2DValidation(
dbe_
, ps.getParameter<edm::InputTag>(
"recHitLabel"
) ),
17
theSegmentValidation(
dbe_
, ps.getParameter<edm::InputTag>(
"segmentLabel"
) )
18
{
19
}
20
21
22
CSCRecHitValidation::~CSCRecHitValidation
()
23
{
24
if
(
theOutputFile
.size() != 0 &&
dbe_
)
dbe_
->
save
(
theOutputFile
);
25
}
26
27
28
void
CSCRecHitValidation::endJob
() {
29
if
(
theOutputFile
.size() != 0 &&
dbe_
)
dbe_
->
save
(
theOutputFile
);
30
}
31
32
33
void
CSCRecHitValidation::analyze
(
const
edm::Event
&
e
,
const
edm::EventSetup
& eventSetup)
34
{
35
theSimHitMap
.
fill
(e);
36
37
// find the geometry & conditions for this event
38
edm::ESHandle<CSCGeometry>
hGeom;
39
eventSetup.
get
<
MuonGeometryRecord
>().
get
( hGeom );
40
theCSCGeometry
= &*hGeom;
41
42
the2DValidation
.
setGeometry
(
theCSCGeometry
);
43
the2DValidation
.
setSimHitMap
(&
theSimHitMap
);
44
theSegmentValidation
.
setGeometry
(
theCSCGeometry
);
45
theSegmentValidation
.
setSimHitMap
(&
theSimHitMap
);
46
47
the2DValidation
.
analyze
(e, eventSetup);
48
theSegmentValidation
.
analyze
(e, eventSetup);
49
50
}
CSCRecHit2DCollection.h
CSCRecHitValidation::endJob
virtual void endJob()
Definition:
CSCRecHitValidation.cc:28
CSCRecHitValidation::theOutputFile
std::string theOutputFile
Definition:
CSCRecHitValidation.h:31
PSimHitMap::fill
void fill(const edm::Event &e)
Definition:
PSimHitMap.cc:13
cppFunctionSkipper.operator
string operator
Definition:
cppFunctionSkipper.py:10
MuonGeometryRecord.h
DQMStore::save
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition:
DQMStore.cc:2118
CSCRecHitValidation::dbe_
DQMStore * dbe_
Definition:
CSCRecHitValidation.h:30
CSCRecHitValidation::the2DValidation
CSCRecHit2DValidation the2DValidation
Definition:
CSCRecHitValidation.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
MuonGeometryRecord
Definition:
MuonGeometryRecord.h:28
ParameterSet.h
CSCBaseValidation::setGeometry
void setGeometry(const CSCGeometry *geom)
Definition:
CSCBaseValidation.h:21
convertSQLiteXML.theOutputFile
list theOutputFile
Definition:
convertSQLiteXML.py:95
DQMStore
Definition:
DQMStore.h:67
DQMStore.h
edm::ESHandle< CSCGeometry >
Service.h
edm::EventSetup
Definition:
EventSetup.h:44
CSCRecHitValidation.h
CSCRecHitValidation::CSCRecHitValidation
CSCRecHitValidation(const edm::ParameterSet &)
Definition:
CSCRecHitValidation.cc:11
dbe_
DQMStore * dbe_
Definition:
PFJetBenchmarkAnalyzer.cc:78
CSCRecHit2DValidation::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
CSCRecHit2DValidation.cc:51
CSCSegmentValidation::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
CSCSegmentValidation.cc:56
CSCBaseValidation::setSimHitMap
void setSimHitMap(const PSimHitMap *simHitMap)
Definition:
CSCBaseValidation.h:22
CSCRecHitValidation::theSimHitMap
PSimHitMap theSimHitMap
Definition:
CSCRecHitValidation.h:32
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:55
alignCSCRings.e
list e
Definition:
alignCSCRings.py:90
CSCRecHitValidation::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
CSCRecHitValidation.cc:33
edm::ParameterSet
Definition:
ParameterSet.h:35
CSCRecHitValidation::~CSCRecHitValidation
~CSCRecHitValidation()
Definition:
CSCRecHitValidation.cc:22
edm::Event
Definition:
Event.h:56
Service
CSCGeometry.h
CSCRecHitValidation::theCSCGeometry
const CSCGeometry * theCSCGeometry
Definition:
CSCRecHitValidation.h:33
CSCRecHitValidation::theSegmentValidation
CSCSegmentValidation theSegmentValidation
Definition:
CSCRecHitValidation.h:36
Generated for CMSSW Reference Manual by
1.8.5