CMS 3D CMS Logo

TKStatus.h
Go to the documentation of this file.
1 #ifndef TKStatus_H
2 #define TKStatus_H
3 
10 // C++
11 #include <string>
12 // CMS
18 #include <fstream>
19 
20 
21 //
22 // class declaration
23 //
24 
25 class TKStatus : public edm::EDAnalyzer {
26  public:
27  TKStatus( const edm::ParameterSet& );
28  ~TKStatus();
29 
30  protected:
31 
32  // BeginJob
33  void beginJob() override;
34 
35  // BeginRun
36  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
37 
38  void analyze(const edm::Event& e, const edm::EventSetup& c) override ;
39 
40  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
41  const edm::EventSetup& context) override ;
42 
43  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
44  const edm::EventSetup& c) override;
45  // EndRun
46  void endRun(const edm::Run& r, const edm::EventSetup& c) override;
47  // Endjob
48  void endJob(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& c);
49 
50  private:
51 
53 
56  std::ofstream fasciiDcsTkFile;
58 
59  bool debug_;
61  int countEvt_; //counter
62  int countLumi_; //counter
64  int endLumi_;
65  int lastlumi_; // previous LS processed
66  bool dcsTk[6];
67  // ----------member data ---------------------------
68 
69  //
70  std::time_t tmpTime;
71  std::time_t refTime;
73  int runnum;
74 };
75 
76 #endif
77 
78 
79 // Local Variables:
80 // show-trailing-whitespace: t
81 // truncate-lines: t
82 // End:
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
Definition: TKStatus.cc:66
void dumpTkDcsStatus(std::string &)
Definition: TKStatus.cc:85
edm::ParameterSet parameters_
Definition: TKStatus.h:54
void beginJob() override
Definition: TKStatus.cc:26
~TKStatus()
Definition: TKStatus.cc:21
int endLumi_
Definition: TKStatus.h:64
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
Definition: TKStatus.cc:30
bool debug_
Definition: TKStatus.h:59
bool dcsTk[6]
Definition: TKStatus.h:66
int countLumi_
Definition: TKStatus.h:62
void endRun(const edm::Run &r, const edm::EventSetup &c) override
Definition: TKStatus.cc:74
int countEvt_
Definition: TKStatus.h:61
std::time_t refTime
Definition: TKStatus.h:71
bool checkStatus_
Definition: TKStatus.h:60
edm::EDGetTokenT< DcsStatusCollection > dcsStatus_
Definition: TKStatus.h:57
std::string dcsTkFileName_
Definition: TKStatus.h:55
virtual void endJob()
Definition: EDAnalyzer.h:80
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
Definition: TKStatus.cc:35
unsigned long long TimeValue_t
Definition: Timestamp.h:28
int runnum
Definition: TKStatus.h:73
std::time_t tmpTime
Definition: TKStatus.h:70
TKStatus(const edm::ParameterSet &)
Definition: TKStatus.cc:10
int beginLumi_
Definition: TKStatus.h:63
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: TKStatus.cc:44
std::ofstream fasciiDcsTkFile
Definition: TKStatus.h:56
int lastlumi_
Definition: TKStatus.h:65
edm::TimeValue_t ftimestamp
Definition: TKStatus.h:72
Definition: Run.h:42