CMS 3D CMS Logo

DTCalibValidationFromMuons.h
Go to the documentation of this file.
1 
2 #ifndef DTCalibValidationFromMuons_H
3 #define DTCalibValidationFromMuons_H
4 
17 
20 
25 
29 
31 
32 #include <string>
33 #include <map>
34 #include <vector>
35 
36 // To remove into CMSSW versions before 20X; removed in CMSSW 10_5_X onwards
37 // To add into CMSSW versions before 20X
38 //class DaqMonitorBEInterface;
39 
40 class DTGeometry;
41 class DTChamber;
42 
43 // FR class DTCalibValidationFromMuons: public edm::EDAnalyzer{
45 public:
48 
50  ~DTCalibValidationFromMuons() override;
51 
53  void dqmBeginRun(const edm::Run& r, const edm::EventSetup& c) override;
54 
55  // Operations
56  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
57 
58 protected:
59  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
60 
61 private:
62  // Switch for verbosity
63  //bool debug;
67  int nevent;
68  // the geometry
70 
71  // Label of 4D segments in the event
73 
74  // Label of muons in the event
76 
77  // Compute the distance from wire (cm) of a hits in a DTRecHit1DPair
78  float recHitDistFromWire(const DTRecHit1DPair& hitPair, const DTLayer* layer);
79  // Compute the distance from wire (cm) of a hits in a DTRecHit1D
80  float recHitDistFromWire(const DTRecHit1D& recHit, const DTLayer* layer);
81  // Compute the position with respect to the wire (cm) of a hits in a DTRecHit1DPair
82  float recHitPosition(
83  const DTRecHit1DPair& hitPair, const DTLayer* layer, const DTChamber* chamber, float segmPos, int sl);
84  // Compute the position with respect to the wire (cm) of a hits in a DTRecHit1D
85  float recHitPosition(const DTRecHit1D& recHit, const DTLayer* layer, const DTChamber* chamber, float segmPos, int sl);
86 
87  // Does the real job
88  void compute(const DTGeometry* dtGeom, const DTRecSegment4D& segment);
89 
90  // Book a set of histograms for a give chamber
91  void bookHistos(DTSuperLayerId slId, int step);
92  // Fill a set of histograms for a give chamber
93  void fillHistos(DTSuperLayerId slId,
94  float distance,
95  float residualOnDistance,
96  float position,
97  float residualOnPosition,
98  int step);
99 
100  std::map<std::pair<DTSuperLayerId, int>, std::vector<MonitorElement*> > histosPerSL;
101 };
102 #endif
103 
104 /* Local Variables: */
105 /* show-trailing-whitespace: t */
106 /* truncate-lines: t */
107 /* End: */
DTRecSegment2DCollection.h
DTGeometry
Definition: DTGeometry.h:28
DTSuperLayerId
Definition: DTSuperLayerId.h:12
DTRecSegment4D
Definition: DTRecSegment4D.h:23
Muon.h
DTCalibValidationFromMuons::DTCalibValidationFromMuons
DTCalibValidationFromMuons(const edm::ParameterSet &pset)
Constructor.
Definition: DTCalibValidationFromMuons.cc:32
DTCalibValidationFromMuons::wrongSegment
int wrongSegment
Definition: DTCalibValidationFromMuons.h:65
ESHandle.h
DTRecHitCollection.h
step
step
Definition: StallMonitor.cc:94
DTCalibValidationFromMuons::parameters
edm::ParameterSet parameters
Definition: DTCalibValidationFromMuons.h:64
DTCalibValidationFromMuons::muonToken_
edm::EDGetTokenT< reco::MuonCollection > muonToken_
Definition: DTCalibValidationFromMuons.h:75
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< DTRecSegment4DCollection >
LuminosityBlock.h
DTChamber
Definition: DTChamber.h:24
DTRecHit1D
Definition: DTRecHit1D.h:25
DTCalibValidationFromMuons::compute
void compute(const DTGeometry *dtGeom, const DTRecSegment4D &segment)
Definition: DTCalibValidationFromMuons.cc:167
HLT_2018_cff.distance
distance
Definition: HLT_2018_cff.py:6417
DQMStore.h
EDAnalyzer.h
DTCalibValidationFromMuons::dqmBeginRun
void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override
BeginRun.
Definition: DTCalibValidationFromMuons.cc:55
rpcPointValidation_cfi.recHit
recHit
Definition: rpcPointValidation_cfi.py:7
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
DTCalibValidationFromMuons::dtGeom
edm::ESHandle< DTGeometry > dtGeom
Definition: DTCalibValidationFromMuons.h:69
MuonSegmentMatcher.h
DTCalibValidationFromMuons::bookHistos
void bookHistos(DTSuperLayerId slId, int step)
DTCalibValidationFromMuons::fillHistos
void fillHistos(DTSuperLayerId slId, float distance, float residualOnDistance, float position, float residualOnPosition, int step)
Definition: DTCalibValidationFromMuons.cc:352
DTCalibValidationFromMuons::recHitPosition
float recHitPosition(const DTRecHit1DPair &hitPair, const DTLayer *layer, const DTChamber *chamber, float segmPos, int sl)
Definition: DTCalibValidationFromMuons.cc:126
DTCalibValidationFromMuons::histosPerSL
std::map< std::pair< DTSuperLayerId, int >, std::vector< MonitorElement * > > histosPerSL
Definition: DTCalibValidationFromMuons.h:100
MuonFwd.h
DTCalibValidationFromMuons::recHitDistFromWire
float recHitDistFromWire(const DTRecHit1DPair &hitPair, const DTLayer *layer)
Definition: DTCalibValidationFromMuons.cc:116
edm::ESHandle< DTGeometry >
DTRecHit1DPair
Definition: DTRecHit1DPair.h:26
DQMEDAnalyzer.h
DTCalibValidationFromMuons::nevent
int nevent
Definition: DTCalibValidationFromMuons.h:67
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
DTCalibValidationFromMuons::rightSegment
int rightSegment
Definition: DTCalibValidationFromMuons.h:66
edm::ParameterSet
Definition: ParameterSet.h:36
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
DTLayer
Definition: DTLayer.h:25
alignCSCRings.r
r
Definition: alignCSCRings.py:93
DTCalibValidationFromMuons::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTCalibValidationFromMuons.cc:288
DTCalibValidationFromMuons::~DTCalibValidationFromMuons
~DTCalibValidationFromMuons() override
Destructor.
Definition: DTCalibValidationFromMuons.cc:48
DTCalibValidationFromMuons::segment4DToken_
edm::EDGetTokenT< DTRecSegment4DCollection > segment4DToken_
Definition: DTCalibValidationFromMuons.h:72
DTWireId.h
Frameworkfwd.h
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
dqm::implementation::IBooker
Definition: DQMStore.h:43
ParameterSet.h
DTSuperLayerId.h
DTCalibValidationFromMuons
Definition: DTCalibValidationFromMuons.h:44
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
DTCalibValidationFromMuons::analyze
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
Definition: DTCalibValidationFromMuons.cc:60
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DTRecSegment4DCollection.h