CMS 3D CMS Logo

DTResidualCalibration.h
Go to the documentation of this file.
1 #ifndef CalibMuon_DTCalibration_DTResidualCalibration_h
2 #define CalibMuon_DTCalibration_DTResidualCalibration_h
3 
14 
16 
17 #include <string>
18 #include <vector>
19 #include <map>
20 
21 class TFile;
22 class TH1F;
23 class TH2F;
24 class DTGeometry;
25 class DTSuperLayerId;
26 class DTLayerId;
27 
29 public:
33  ~DTResidualCalibration() override;
34 
35  void beginJob() override;
36  void beginRun(const edm::Run&, const edm::EventSetup&) override;
37  void endJob() override;
38  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
39 
40 protected:
41 private:
42  unsigned int nevent;
43  unsigned int segmok, segmbad;
44 
45  float segmentToWireDistance(const DTRecHit1D& recHit1D, const DTRecSegment4D& segment);
46  // Book a set of histograms for a given super-layer/layer
47  void bookHistos(DTSuperLayerId slId);
48  void bookHistos(DTLayerId slId);
49  // Fill a set of histograms for a given super-layer/layer
50  void fillHistos(DTSuperLayerId slId, float distance, float residualOnDistance);
51  void fillHistos(DTLayerId slId, float distance, float residualOnDistance);
52 
54  double histRange_;
57 
59  TFile* rootFile_;
60  // Geometry
62  // Histograms per super-layer
63  std::map<DTSuperLayerId, TH1F*> histoMapTH1F_;
64  std::map<DTSuperLayerId, TH2F*> histoMapTH2F_;
65  // Histograms per layer
66  std::map<DTLayerId, TH1F*> histoMapPerLayerTH1F_;
67  std::map<DTLayerId, TH2F*> histoMapPerLayerTH2F_;
68 };
69 #endif
DTGeometry
Definition: DTGeometry.h:28
DTSuperLayerId
Definition: DTSuperLayerId.h:12
DTRecSegment4D
Definition: DTRecSegment4D.h:23
DTResidualCalibration::DTResidualCalibration
DTResidualCalibration(const edm::ParameterSet &pset)
Constructor.
Definition: DTResidualCalibration.cc:34
ESHandle.h
DTResidualCalibration::~DTResidualCalibration
~DTResidualCalibration() override
Destructor.
Definition: DTResidualCalibration.cc:53
edm::Run
Definition: Run.h:45
DTResidualCalibration
Definition: DTResidualCalibration.h:28
DTResidualCalibration::histoMapPerLayerTH1F_
std::map< DTLayerId, TH1F * > histoMapPerLayerTH1F_
Definition: DTResidualCalibration.h:66
DTResidualCalibration::nevent
unsigned int nevent
Definition: DTResidualCalibration.h:42
DTResidualCalibration::histoMapTH2F_
std::map< DTSuperLayerId, TH2F * > histoMapTH2F_
Definition: DTResidualCalibration.h:64
DTRecHit1D
Definition: DTRecHit1D.h:25
DTResidualCalibration::analyze
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
Definition: DTResidualCalibration.cc:87
DTResidualCalibration::bookHistos
void bookHistos(DTSuperLayerId slId)
Definition: DTResidualCalibration.cc:198
EDAnalyzer.h
DTResidualCalibration::dtGeom_
const DTGeometry * dtGeom_
Definition: DTResidualCalibration.h:61
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
DTResidualCalibration::histRange_
double histRange_
Definition: DTResidualCalibration.h:54
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
DTResidualCalibration::select_
DTSegmentSelector * select_
Definition: DTResidualCalibration.h:53
DTResidualCalibration::detailedAnalysis_
bool detailedAnalysis_
Definition: DTResidualCalibration.h:58
DTSegmentSelector
Definition: DTSegmentSelector.h:24
DTLayerId
Definition: DTLayerId.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTResidualCalibration::segmok
unsigned int segmok
Definition: DTResidualCalibration.h:43
DTResidualCalibration::histoMapTH1F_
std::map< DTSuperLayerId, TH1F * > histoMapTH1F_
Definition: DTResidualCalibration.h:63
edm::ParameterSet
Definition: ParameterSet.h:47
DTResidualCalibration::rootFile_
TFile * rootFile_
Definition: DTResidualCalibration.h:59
DTResidualCalibration::segment4DLabel_
edm::InputTag segment4DLabel_
Definition: DTResidualCalibration.h:55
DTResidualCalibration::fillHistos
void fillHistos(DTSuperLayerId slId, float distance, float residualOnDistance)
Definition: DTResidualCalibration.cc:311
DTResidualCalibration::segmbad
unsigned int segmbad
Definition: DTResidualCalibration.h:43
edm::EventSetup
Definition: EventSetup.h:57
DTResidualCalibration::rootBaseDir_
std::string rootBaseDir_
Definition: DTResidualCalibration.h:56
InputTag.h
DTResidualCalibration::endJob
void endJob() override
Definition: DTResidualCalibration.cc:179
DTSegmentSelector.h
DTResidualCalibration::histoMapPerLayerTH2F_
std::map< DTLayerId, TH2F * > histoMapPerLayerTH2F_
Definition: DTResidualCalibration.h:67
Frameworkfwd.h
DTResidualCalibration::beginJob
void beginJob() override
Definition: DTResidualCalibration.cc:61
ParameterSet.h
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7799
edm::InputTag
Definition: InputTag.h:15
DTResidualCalibration::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
Definition: DTResidualCalibration.cc:63
DTResidualCalibration::segmentToWireDistance
float segmentToWireDistance(const DTRecHit1D &recHit1D, const DTRecSegment4D &segment)
Definition: DTResidualCalibration.cc:150
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27