CMS 3D CMS Logo

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 
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 
23 public:
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_;
44 };
45 #endif
void endJob() override
Write ttrig in the DB.
DTTPGParameters * phaseMap_
void pharseLine(std::string &line, DTChamberId &chId, float &fine, int &coarse)
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Compute the ttrig by fiting the TB rising edge.
std::string inputFileName_
HLT enums.
~DTTPGParamsWriter() override
Destructor.
Definition: event.py:1
DTTPGParamsWriter(const edm::ParameterSet &pset)
Constructor.