Main Page
Namespaces
Classes
Package Documentation
CalibMuon
DTCalibration
plugins
DTTTrigCalibration.h
Go to the documentation of this file.
1
#ifndef CalibMuon_DTTTrigCalibration_H
2
#define CalibMuon_DTTTrigCalibration_H
3
12
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
13
#include "
DataFormats/MuonDetId/interface/DTSuperLayerId.h
"
14
#include "
DataFormats/MuonDetId/interface/DTLayerId.h
"
15
16
#include <string>
17
#include <map>
18
19
20
namespace
edm
{
21
class
ParameterSet
;
22
class
Event
;
23
class
EventSetup
;
24
}
25
26
class
TFile;
27
class
TH1F;
28
class
DTTimeBoxFitter
;
29
class
DTTTrigBaseSync
;
30
class
DTTtrig
;
31
32
class
DTTTrigCalibration
:
public
edm::EDAnalyzer
{
33
public
:
35
DTTTrigCalibration
(
const
edm::ParameterSet
&
pset
);
36
38
~
DTTTrigCalibration
()
override
;
39
40
// Operations
41
43
void
analyze
(
const
edm::Event
&
event
,
const
edm::EventSetup
& eventSetup)
override
;
44
46
void
endJob()
override
;
47
48
49
protected
:
50
51
private
:
52
// Generate the time box name
53
std::string
getTBoxName(
const
DTSuperLayerId
& slId)
const
;
54
// Generate the time box name
55
std::string
getOccupancyName(
const
DTLayerId
& slId)
const
;
56
57
// Print computed ttrig
58
void
dumpTTrigMap(
const
DTTtrig
* tTrig)
const
;
59
60
// Plot computed ttrig
61
void
plotTTrig(
const
DTTtrig
* tTrig)
const
;
62
63
// Debug flag
64
bool
debug
;
65
66
// The label used to retrieve digis from the event
67
std::string
digiLabel
;
68
69
// The TDC time-window
70
int
maxTDCCounts
;
71
//The maximum number of digis per layer
72
int
maxDigiPerLayer
;
73
74
// The file which will contain the time boxes
75
TFile *
theFile
;
76
77
// Map of the histograms by SL
78
std::map<DTSuperLayerId, TH1F*>
theHistoMap
;
79
std::map<DTLayerId, TH1F*>
theOccupancyMap
;
80
81
// Switch for t0 subtraction
82
bool
doSubtractT0
;
83
// Switch for checking of noisy channels
84
bool
checkNoisyChannels
;
85
//card to switch on/off the DB writing
86
bool
findTMeanAndSigma
;
87
// the kfactor to be uploaded in the ttrig DB
88
double
kFactor
;
89
90
// The fitter
91
DTTimeBoxFitter
*
theFitter
;
92
// The module for t0 subtraction
93
DTTTrigBaseSync
*
theSync
;
//FIXME: should be const
94
95
};
96
#endif
97
DTTTrigCalibration::theHistoMap
std::map< DTSuperLayerId, TH1F * > theHistoMap
Definition:
DTTTrigCalibration.h:78
analyze
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
ParameterSet
Definition:
Functions.h:16
DTSuperLayerId.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
DTTTrigCalibration::maxDigiPerLayer
int maxDigiPerLayer
Definition:
DTTTrigCalibration.h:72
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
DTTTrigCalibration::digiLabel
std::string digiLabel
Definition:
DTTTrigCalibration.h:67
DTLayerId
Definition:
DTLayerId.h:12
EventSetup
DTTTrigCalibration::theSync
DTTTrigBaseSync * theSync
Definition:
DTTTrigCalibration.h:93
DTSuperLayerId
Definition:
DTSuperLayerId.h:13
DTTtrig
Definition:
DTTtrig.h:76
edm::EventSetup
Definition:
EventSetup.h:52
DTTTrigCalibration::debug
bool debug
Definition:
DTTTrigCalibration.h:64
DTTTrigCalibration::checkNoisyChannels
bool checkNoisyChannels
Definition:
DTTTrigCalibration.h:84
DTTTrigCalibration::theFile
TFile * theFile
Definition:
DTTTrigCalibration.h:75
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
EDAnalyzer.h
DTTTrigCalibration::doSubtractT0
bool doSubtractT0
Definition:
DTTTrigCalibration.h:82
DTLayerId.h
Event
DTTTrigCalibration::findTMeanAndSigma
bool findTMeanAndSigma
Definition:
DTTTrigCalibration.h:86
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
DTTTrigCalibration::theOccupancyMap
std::map< DTLayerId, TH1F * > theOccupancyMap
Definition:
DTTTrigCalibration.h:79
edm::Event
Definition:
Event.h:70
DTTTrigCalibration::theFitter
DTTimeBoxFitter * theFitter
Definition:
DTTTrigCalibration.h:91
DTTTrigCalibration::kFactor
double kFactor
Definition:
DTTTrigCalibration.h:88
DTTTrigCalibration
Definition:
DTTTrigCalibration.h:32
DTTimeBoxFitter
Definition:
DTTimeBoxFitter.h:18
event
Definition:
event.py:1
DTTTrigBaseSync
Definition:
DTTTrigBaseSync.h:20
DTTTrigCalibration::maxTDCCounts
int maxTDCCounts
Definition:
DTTTrigCalibration.h:70
Generated for CMSSW Reference Manual by
1.8.11