src
L1TriggerConfig
DTTPGConfigProducers
plugins
DTTPGParamsWriter.h
Go to the documentation of this file.
1
#ifndef DTTPGParamsWriter_H
2
#define DTTPGParamsWriter_H
3
4
/* Program to write DT TPG pedestals correction into DB
5
6
* \author C. Battilana - CIEMAT
7
*/
8
9
#include "
CondFormats/DTObjects/interface/DTTPGParameters.h
"
10
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
11
#include <fstream>
12
#include <string>
13
14
namespace
edm
{
15
class
ParameterSet
;
16
class
Event
;
17
class
EventSetup
;
18
}
// namespace edm
19
20
class
DTChamberId
;
21
22
class
DTTPGParamsWriter
:
public
edm::one::EDAnalyzer
<> {
23
public
:
25
DTTPGParamsWriter
(
const
edm::ParameterSet
&
pset
);
26
28
~DTTPGParamsWriter
()
override
;
29
30
// Operations
31
33
void
analyze
(
const
edm::Event
&
event
,
const
edm::EventSetup
&
eventSetup
)
override
;
34
36
void
endJob
()
override
;
37
38
private
:
39
void
pharseLine
(
std::string
&
line
,
DTChamberId
&chId,
float
&fine,
int
&coarse);
40
41
bool
debug_
;
42
std::string
inputFileName_
;
43
DTTPGParameters
*
phaseMap_
;
44
};
45
#endif
ParameterSet
Definition:
Functions.h:16
DTChamberId
Definition:
DTChamberId.h:14
DTTPGParamsWriter
Definition:
DTTPGParamsWriter.h:22
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
DTTPGParamsWriter::endJob
void endJob() override
Write ttrig in the DB.
Definition:
DTTPGParamsWriter.cc:95
DTTPGParamsWriter::phaseMap_
DTTPGParameters * phaseMap_
Definition:
DTTPGParamsWriter.h:43
DTTPGParamsWriter::debug_
bool debug_
Definition:
DTTPGParamsWriter.h:41
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
DTTPGParameters
Definition:
DTTPGParameters.h:62
EventSetup
DTTPGParamsWriter::pharseLine
void pharseLine(std::string &line, DTChamberId &chId, float &fine, int &coarse)
Definition:
DTTPGParamsWriter.cc:77
mps_splice.line
line
Definition:
mps_splice.py:76
edm::EventSetup
Definition:
EventSetup.h:56
DTTPGParamsWriter::analyze
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Compute the ttrig by fiting the TB rising edge.
Definition:
DTTPGParamsWriter.cc:44
DTTPGParameters.h
Event
EDAnalyzer.h
DTTPGParamsWriter::inputFileName_
std::string inputFileName_
Definition:
DTTPGParamsWriter.h:42
edm
HLT enums.
Definition:
AlignableModifier.h:19
DTTPGParamsWriter::~DTTPGParamsWriter
~DTTPGParamsWriter() override
Destructor.
Definition:
DTTPGParamsWriter.cc:38
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::Event
Definition:
Event.h:73
options_cfi.eventSetup
eventSetup
Definition:
options_cfi.py:12
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
event
Definition:
event.py:1
DTTPGParamsWriter::DTTPGParamsWriter
DTTPGParamsWriter(const edm::ParameterSet &pset)
Constructor.
Definition:
DTTPGParamsWriter.cc:27
Generated for CMSSW Reference Manual by
1.8.14