CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FourVectorHLTClient.h
Go to the documentation of this file.
1 #ifndef FOURVECTORHLTCLIENT_H
2 #define FOURVECTORHLTCLIENT_H
3 /*
4 
5  source for module FourVectorHLTClient
6  author: Vladimir Rekovic, U Minn.
7  version: 01
8  date: 28 Oct 2008
9 */
10 
18 
19 #include <memory>
20 #include <iostream>
21 #include <fstream>
22 #include <string>
23 #include <vector>
24 #include <map>
25 #include <TH1F.h>
26 #include <TH2F.h>
27 #include <TProfile2D.h>
28 
29 
31 
32 public:
33 
36 
38  virtual ~FourVectorHLTClient();
39 
40 protected:
41 
43  void beginJob();
44 
46  void beginRun(const edm::Run& r, const edm::EventSetup& c);
47 
49  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
50 
51  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
52  const edm::EventSetup& context) ;
53 
55  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
56  const edm::EventSetup& c);
57 
59  void endRun(const edm::Run& r, const edm::EventSetup& c);
60 
62  void endJob();
63 
64  void normalizeHLTMatrix();
65 
66 private:
67 
68  void initialize();
69  void calculateRatio(TH1F* effHist, TH1F* denHist);
70  TString removeVersions(TString histVersion);
71 
72  TH1F * get1DHisto(std::string meName, DQMStore * dbi);
73  TH2F * get2DHisto(std::string meName, DQMStore * dbi);
74  TProfile2D * get2DProfile(std::string meName, DQMStore * dbi);
75  TProfile * get1DProfile(std::string meName, DQMStore * dbi);
77 
78  // -------- member data --------
80  TString sourceDir_;
81  TString clientDir_;
82  TString customEffDir_;
84 
85  std::vector<TString> hltMEName; // names of all MEs (histos)
86  std::vector<TString> hltPathName; // names of hlt paths from MEs (histos)
87  //TObjArray* hltPathNameColl; // duplicate of the above, more robust
88  std::vector<MonitorElement*> hltMEs;
89  std::vector<std::pair<std::string, std::string> > custompathnamepairs_;
90 
91  std::vector<MonitorElement*> v_ME_HLTPassPass_;
92  std::vector<MonitorElement*> v_ME_HLTPassPass_Normalized_;
93  std::vector<MonitorElement*> v_ME_HLTPass_Normalized_Any_;
94 
99 
105  Float_t reportSummary;
106  Float_t summarySum;
107  Float_t summaryContent[20];
108 
115 
116 
117 };
118 
119 #endif
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
MonitorElement * reportSummary_
int nChannels
prescale on number of events
std::vector< MonitorElement * > v_ME_HLTPassPass_
void beginJob()
BeginJob.
std::vector< TString > hltMEName
std::vector< TString > hltPathName
std::vector< MonitorElement * > v_ME_HLTPassPass_Normalized_
edm::ParameterSet parameters_
TH2F * get2DHisto(std::string meName, DQMStore *dbi)
int prescaleEvt_
units of lumi sections
TString removeVersions(TString histVersion)
MonitorElement * testHLTEff_
void analyze(const edm::Event &e, const edm::EventSetup &c)
Fake Analyze.
TProfile * get1DProfile(std::string meName, DQMStore *dbi)
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
DQM Client Diagnostic.
std::vector< MonitorElement * > v_ME_HLTPass_Normalized_Any_
MonitorElement * reportSummaryContent_[20]
virtual ~FourVectorHLTClient()
Destructor.
std::string pathsSummaryFilterCountsFolder_
HLTConfigProvider hltConfig_
std::string pathsSummaryFolder_
std::vector< MonitorElement * > hltMEs
MonitorElement * reportSummaryMap_
std::vector< std::pair< std::string, std::string > > custompathnamepairs_
MonitorElement * klmgrvTest_
FourVectorHLTClient(const edm::ParameterSet &ps)
Constructor.
void calculateRatio(TH1F *effHist, TH1F *denHist)
std::string pathsSummaryHLTCorrelationsFolder_
TProfile2D * get2DProfile(std::string meName, DQMStore *dbi)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
TH1F * get1DHisto(std::string meName, DQMStore *dbi)
std::string pathsSummaryFilterEfficiencyFolder_
Definition: Run.h:41
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.