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 
30 
32 
33 #include <string>
34 #include <map>
35 #include <vector>
36 
37 // To remove into CMSSW versions before 20X; removed in CMSSW 10_5_X onwards
38 // To add into CMSSW versions before 20X
39 //class DaqMonitorBEInterface;
40 
41 class DTGeometry;
42 class DTChamber;
43 
44 // FR class DTCalibValidationFromMuons: public edm::EDAnalyzer{
46 public:
49 
51  ~DTCalibValidationFromMuons() override;
52 
54  void dqmBeginRun(const edm::Run& r, const edm::EventSetup& c) override;
55 
56  // Operations
57  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
58 
59 protected:
60  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
61 
62 private:
63  // Switch for verbosity
64  //bool debug;
68  int nevent;
69  // the geometry
72 
73  // Label of 4D segments in the event
75 
76  // Label of muons in the event
78 
79  // Compute the distance from wire (cm) of a hits in a DTRecHit1DPair
80  float recHitDistFromWire(const DTRecHit1DPair& hitPair, const DTLayer* layer);
81  // Compute the distance from wire (cm) of a hits in a DTRecHit1D
82  float recHitDistFromWire(const DTRecHit1D& recHit, const DTLayer* layer);
83  // Compute the position with respect to the wire (cm) of a hits in a DTRecHit1DPair
84  float recHitPosition(
85  const DTRecHit1DPair& hitPair, const DTLayer* layer, const DTChamber* chamber, float segmPos, int sl);
86  // Compute the position with respect to the wire (cm) of a hits in a DTRecHit1D
87  float recHitPosition(const DTRecHit1D& recHit, const DTLayer* layer, const DTChamber* chamber, float segmPos, int sl);
88 
89  // Does the real job
90  void compute(const DTGeometry* dtGeom, const DTRecSegment4D& segment);
91 
92  // Book a set of histograms for a give chamber
93  void bookHistos(DTSuperLayerId slId, int step);
94  // Fill a set of histograms for a give chamber
95  void fillHistos(DTSuperLayerId slId,
96  float distance,
97  float residualOnDistance,
98  float position,
99  float residualOnPosition,
100  int step);
101 
102  std::map<std::pair<DTSuperLayerId, int>, std::vector<MonitorElement*> > histosPerSL;
103 };
104 #endif
105 
106 /* Local Variables: */
107 /* show-trailing-whitespace: t */
108 /* truncate-lines: t */
109 /* End: */
DTCalibValidationFromMuons::dtGeom
const DTGeometry * dtGeom
Definition: DTCalibValidationFromMuons.h:71
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:31
DTCalibValidationFromMuons::wrongSegment
int wrongSegment
Definition: DTCalibValidationFromMuons.h:66
ESHandle.h
DTRecHitCollection.h
step
step
Definition: StallMonitor.cc:94
DTCalibValidationFromMuons::parameters
edm::ParameterSet parameters
Definition: DTCalibValidationFromMuons.h:65
DTCalibValidationFromMuons::muonToken_
edm::EDGetTokenT< reco::MuonCollection > muonToken_
Definition: DTCalibValidationFromMuons.h:77
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
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
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:102
MuonFwd.h
DTCalibValidationFromMuons::recHitDistFromWire
float recHitDistFromWire(const DTRecHit1DPair &hitPair, const DTLayer *layer)
Definition: DTCalibValidationFromMuons.cc:116
DTRecHit1DPair
Definition: DTRecHit1DPair.h:26
DQMEDAnalyzer.h
DTCalibValidationFromMuons::nevent
int nevent
Definition: DTCalibValidationFromMuons.h:68
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
DTCalibValidationFromMuons::rightSegment
int rightSegment
Definition: DTCalibValidationFromMuons.h:67
edm::ParameterSet
Definition: ParameterSet.h:47
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
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:74
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:45
MuonGeometryRecord.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
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
DTCalibValidationFromMuons::muonGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTCalibValidationFromMuons.h:70
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7746
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DTRecSegment4DCollection.h