src
CalibMuon
DTCalibration
plugins
DTTTrigWriter.h
Go to the documentation of this file.
1
#ifndef DTTTrigWriter_H
2
#define DTTTrigWriter_H
3
4
/* Program to evaluate ttrig and sigma ttrig from TB histograms
5
* and write the results to a file for each SL
6
7
* \author S. Bolognesi
8
*/
9
10
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
11
#include "
FWCore/Framework/interface/ESHandle.h
"
12
// #include "DataFormats/MuonDetId/interface/DTSuperLayerId.h"
13
#include "
Geometry/Records/interface/MuonGeometryRecord.h
"
14
#include "
Geometry/DTGeometry/interface/DTGeometry.h
"
15
16
#include <string>
17
18
namespace
edm
{
19
class
ParameterSet
;
20
class
Event
;
21
class
EventSetup
;
22
}
// namespace edm
23
24
class
TFile;
25
class
DTTimeBoxFitter
;
26
class
DTSuperLayerId
;
27
class
DTTtrig
;
28
29
class
DTTTrigWriter
:
public
edm::one::EDAnalyzer
<> {
30
public
:
32
DTTTrigWriter
(
const
edm::ParameterSet
&
pset
);
33
35
~DTTTrigWriter
()
override
;
36
37
// Operations
38
40
void
analyze
(
const
edm::Event
&
event
,
const
edm::EventSetup
&
eventSetup
)
override
;
41
43
void
endJob
()
override
;
44
45
protected
:
46
private
:
47
// Generate the time box name
48
std::string
getTBoxName
(
const
DTSuperLayerId
& slId)
const
;
49
50
// Debug flag
51
bool
debug
;
52
// the kfactor to be uploaded in the ttrig DB
53
double
kFactor
;
54
55
// The file which contains the tMax histograms
56
TFile*
theFile
;
57
58
// The name of the input root file which contains the tMax histograms
59
std::string
theRootInputFile
;
60
61
// The fitter
62
DTTimeBoxFitter
*
theFitter
;
63
64
// The object to be written to DB
65
DTTtrig
*
tTrig
;
66
67
//geom
68
edm::ESHandle<DTGeometry>
dtGeom
;
69
const
edm::ESGetToken<DTGeometry, MuonGeometryRecord>
dtGeomToken_
;
70
};
71
#endif
DTTTrigWriter::theFitter
DTTimeBoxFitter * theFitter
Definition:
DTTTrigWriter.h:62
DTGeometry.h
DTTTrigWriter::theRootInputFile
std::string theRootInputFile
Definition:
DTTTrigWriter.h:59
ParameterSet
Definition:
Functions.h:16
MuonGeometryRecord.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
DTTTrigWriter
Definition:
DTTTrigWriter.h:29
DTTTrigWriter::theFile
TFile * theFile
Definition:
DTTTrigWriter.h:56
DTTTrigWriter::analyze
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Compute the ttrig by fiting the TB rising edge.
Definition:
DTTTrigWriter.cc:70
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
DTTTrigWriter::DTTTrigWriter
DTTTrigWriter(const edm::ParameterSet &pset)
Constructor.
Definition:
DTTTrigWriter.cc:36
edm::ESGetToken< DTGeometry, MuonGeometryRecord >
EventSetup
edm::ESHandle< DTGeometry >
DTTTrigWriter::dtGeom
edm::ESHandle< DTGeometry > dtGeom
Definition:
DTTTrigWriter.h:68
DTTTrigWriter::getTBoxName
std::string getTBoxName(const DTSuperLayerId &slId) const
Definition:
DTTTrigWriter.cc:111
DTSuperLayerId
Definition:
DTSuperLayerId.h:12
ESHandle.h
DTTtrig
Definition:
DTTtrig.h:68
edm::EventSetup
Definition:
EventSetup.h:59
DTTTrigWriter::kFactor
double kFactor
Definition:
DTTTrigWriter.h:53
Event
EDAnalyzer.h
DTTTrigWriter::tTrig
DTTtrig * tTrig
Definition:
DTTTrigWriter.h:65
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ParameterSet
Definition:
ParameterSet.h:48
edm::Event
Definition:
Event.h:73
options_cfi.eventSetup
eventSetup
Definition:
options_cfi.py:12
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
DTTimeBoxFitter
Definition:
DTTimeBoxFitter.h:17
event
Definition:
event.py:1
DTTTrigWriter::dtGeomToken_
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
Definition:
DTTTrigWriter.h:69
DTTTrigWriter::endJob
void endJob() override
Write ttrig in the DB.
Definition:
DTTTrigWriter.cc:99
DTTTrigWriter::~DTTTrigWriter
~DTTTrigWriter() override
Destructor.
Definition:
DTTTrigWriter.cc:62
DTTTrigWriter::debug
bool debug
Definition:
DTTTrigWriter.h:51
Generated for CMSSW Reference Manual by
1.8.14