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 //$Id: FourVectorHLTClient.h,v 1.11 2011/06/15 16:22:47 bjk Exp $
11 
19 
20 #include <memory>
21 #include <iostream>
22 #include <fstream>
23 #include <string>
24 #include <vector>
25 #include <map>
26 #include <TH1F.h>
27 #include <TH2F.h>
28 #include <TProfile2D.h>
29 
30 
32 
33 public:
34 
37 
39  virtual ~FourVectorHLTClient();
40 
41 protected:
42 
44  void beginJob();
45 
47  void beginRun(const edm::Run& r, const edm::EventSetup& c);
48 
50  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
51 
52  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
53  const edm::EventSetup& context) ;
54 
56  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
57  const edm::EventSetup& c);
58 
60  void endRun(const edm::Run& r, const edm::EventSetup& c);
61 
63  void endJob();
64 
65  void normalizeHLTMatrix();
66 
67 private:
68 
69  void initialize();
70  void calculateRatio(TH1F* effHist, TH1F* denHist);
71  TString removeVersions(TString histVersion);
72 
73  TH1F * get1DHisto(std::string meName, DQMStore * dbi);
74  TH2F * get2DHisto(std::string meName, DQMStore * dbi);
75  TProfile2D * get2DProfile(std::string meName, DQMStore * dbi);
76  TProfile * get1DProfile(std::string meName, DQMStore * dbi);
78 
79  // -------- member data --------
81  TString sourceDir_;
82  TString clientDir_;
83  TString customEffDir_;
84  std::string processname_;
85 
86  std::vector<TString> hltMEName; // names of all MEs (histos)
87  std::vector<TString> hltPathName; // names of hlt paths from MEs (histos)
88  //TObjArray* hltPathNameColl; // duplicate of the above, more robust
89  std::vector<MonitorElement*> hltMEs;
90  std::vector<std::pair<std::string, std::string> > custompathnamepairs_;
91 
92  std::vector<MonitorElement*> v_ME_HLTPassPass_;
93  std::vector<MonitorElement*> v_ME_HLTPassPass_Normalized_;
94  std::vector<MonitorElement*> v_ME_HLTPass_Normalized_Any_;
95 
96  std::string pathsSummaryFolder_ ;
100 
106  Float_t reportSummary;
107  Float_t summarySum;
108  Float_t summaryContent[20];
109 
116 
117 
118 };
119 
120 #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:33
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.