CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TKStatus.h
Go to the documentation of this file.
1 #ifndef TKStatus_H
2 #define TKStatus_H
3 
12 // C++
13 #include <string>
14 // CMS
19 #include <fstream>
20 
21 
22 //
23 // class declaration
24 //
25 
26 class TKStatus : public edm::EDAnalyzer {
27  public:
28  TKStatus( const edm::ParameterSet& );
29  ~TKStatus();
30 
31  protected:
32 
33  // BeginJob
34  void beginJob();
35 
36  // BeginRun
37  void beginRun(const edm::Run& r, const edm::EventSetup& c);
38 
39  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
40 
41  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
42  const edm::EventSetup& context) ;
43 
44  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
45  const edm::EventSetup& c);
46  // EndRun
47  void endRun(const edm::Run& r, const edm::EventSetup& c);
48  // Endjob
49  void endJob(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& c);
50 
51  private:
52 
53  void dumpTkDcsStatus(std::string &);
54 
56  std::string dcsTkFileName_;
57  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 
void dumpTkDcsStatus(std::string &)
Definition: TKStatus.cc:84
edm::ParameterSet parameters_
Definition: TKStatus.h:55
void beginJob()
Definition: TKStatus.cc:25
~TKStatus()
Definition: TKStatus.cc:20
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: TKStatus.cc:43
int endLumi_
Definition: TKStatus.h:64
bool debug_
Definition: TKStatus.h:59
bool dcsTk[6]
Definition: TKStatus.h:66
void endRun(const edm::Run &r, const edm::EventSetup &c)
Definition: TKStatus.cc:73
int countLumi_
Definition: TKStatus.h:62
int countEvt_
Definition: TKStatus.h:61
void beginRun(const edm::Run &r, const edm::EventSetup &c)
Definition: TKStatus.cc:29
std::time_t refTime
Definition: TKStatus.h:71
bool checkStatus_
Definition: TKStatus.h:60
std::string dcsTkFileName_
Definition: TKStatus.h:56
virtual void endJob()
Definition: EDAnalyzer.h:59
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
Definition: TKStatus.cc:34
unsigned long long TimeValue_t
Definition: Timestamp.h:27
int runnum
Definition: TKStatus.h:73
std::time_t tmpTime
Definition: TKStatus.h:70
TKStatus(const edm::ParameterSet &)
Definition: TKStatus.cc:11
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
Definition: TKStatus.cc:65
int beginLumi_
Definition: TKStatus.h:63
std::ofstream fasciiDcsTkFile
Definition: TKStatus.h:57
int lastlumi_
Definition: TKStatus.h:65
edm::TimeValue_t ftimestamp
Definition: TKStatus.h:72
Definition: Run.h:33