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/EDAnalyzer.h
"
11
// #include "DataFormats/MuonDetId/interface/DTSuperLayerId.h"
12
13
#include <string>
14
15
namespace
edm
{
16
class
ParameterSet
;
17
class
Event
;
18
class
EventSetup
;
19
}
// namespace edm
20
21
class
TFile;
22
class
DTTimeBoxFitter
;
23
class
DTSuperLayerId
;
24
class
DTTtrig
;
25
26
class
DTTTrigWriter
:
public
edm::EDAnalyzer
{
27
public
:
29
DTTTrigWriter
(
const
edm::ParameterSet
&
pset
);
30
32
~DTTTrigWriter
()
override
;
33
34
// Operations
35
37
void
analyze
(
const
edm::Event
&
event
,
const
edm::EventSetup
&
eventSetup
)
override
;
38
40
void
endJob
()
override
;
41
42
protected
:
43
private
:
44
// Generate the time box name
45
std::string
getTBoxName
(
const
DTSuperLayerId
& slId)
const
;
46
47
// Debug flag
48
bool
debug
;
49
// the kfactor to be uploaded in the ttrig DB
50
double
kFactor
;
51
52
// The file which contains the tMax histograms
53
TFile*
theFile
;
54
55
// The name of the input root file which contains the tMax histograms
56
std::string
theRootInputFile
;
57
58
// The fitter
59
DTTimeBoxFitter
*
theFitter
;
60
61
// The object to be written to DB
62
DTTtrig
*
tTrig
;
63
};
64
#endif
DTTTrigWriter::DTTTrigWriter
DTTTrigWriter(const edm::ParameterSet &pset)
Constructor.
Definition:
DTTTrigWriter.cc:36
DTSuperLayerId
Definition:
DTSuperLayerId.h:12
DTTtrig
Definition:
DTTtrig.h:68
edm
HLT enums.
Definition:
AlignableModifier.h:19
EDAnalyzer.h
DTTTrigWriter::endJob
void endJob() override
Write ttrig in the DB.
Definition:
DTTTrigWriter.cc:100
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
Event
DTTTrigWriter::tTrig
DTTtrig * tTrig
Definition:
DTTTrigWriter.h:62
DTTTrigWriter::~DTTTrigWriter
~DTTTrigWriter() override
Destructor.
Definition:
DTTTrigWriter.cc:62
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:36
ParameterSet
Definition:
Functions.h:16
edm::EventSetup
Definition:
EventSetup.h:57
DTTTrigWriter::debug
bool debug
Definition:
DTTTrigWriter.h:48
DTTTrigWriter::theFitter
DTTimeBoxFitter * theFitter
Definition:
DTTTrigWriter.h:59
DTTimeBoxFitter
Definition:
DTTimeBoxFitter.h:17
DTTTrigWriter::getTBoxName
std::string getTBoxName(const DTSuperLayerId &slId) const
Definition:
DTTTrigWriter.cc:112
options_cfi.eventSetup
eventSetup
Definition:
options_cfi.py:12
EventSetup
DTTTrigWriter::kFactor
double kFactor
Definition:
DTTTrigWriter.h:50
event
Definition:
event.py:1
edm::Event
Definition:
Event.h:73
DTTTrigWriter::theRootInputFile
std::string theRootInputFile
Definition:
DTTTrigWriter.h:56
DTTTrigWriter
Definition:
DTTTrigWriter.h:26
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
DTTTrigWriter::theFile
TFile * theFile
Definition:
DTTTrigWriter.h:53
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
Generated for CMSSW Reference Manual by
1.8.16