00001 #ifndef DQMOFFLINE_TRIGGER_EGHLTOFFLINECLIENT
00002 #define DQMOFFLINE_TRIGGER_EGHLTOFFLINECLIENT
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "FWCore/Framework/interface/Frameworkfwd.h"
00028 #include "FWCore/Framework/interface/EDAnalyzer.h"
00029
00030 #include <vector>
00031 #include <string>
00032
00033 class DQMStore;
00034 class MonitorElement;
00035
00036
00037 class EgHLTOfflineClient : public edm::EDAnalyzer {
00038
00039 private:
00040 DQMStore* dbe_;
00041 std::string dirName_;
00042
00043 std::vector<std::string> eleHLTFilterNames_;
00044 std::vector<std::string> eleHLTFilterNames2Leg_;
00045 std::vector<std::string> eleTightLooseTrigNames_;
00046 std::vector<std::string> phoHLTFilterNames_;
00047 std::vector<std::string> phoHLTFilterNames2Leg_;
00048 std::vector<std::string> phoTightLooseTrigNames_;
00049
00050
00051 std::vector<std::string> eleN1EffVars_;
00052 std::vector<std::string> eleSingleEffVars_;
00053 std::vector<std::string> eleEffTags_;
00054
00055 std::vector<std::string> phoN1EffVars_;
00056 std::vector<std::string> phoSingleEffVars_;
00057 std::vector<std::string> phoEffTags_;
00058
00059 std::vector<std::string> eleTrigTPEffVsVars_;
00060 std::vector<std::string> phoTrigTPEffVsVars_;
00061 std::vector<std::string> eleLooseTightTrigEffVsVars_;
00062 std::vector<std::string> phoLooseTightTrigEffVsVars_;
00063
00064 std::vector<std::string> eleHLTvOfflineVars_;
00065 std::vector<std::string> phoHLTvOfflineVars_;
00066
00067 bool runClientEndLumiBlock_;
00068 bool runClientEndRun_;
00069 bool runClientEndJob_;
00070
00071 bool filterInactiveTriggers_;
00072 bool isSetup_;
00073 std::string hltTag_;
00074
00075
00076
00077 EgHLTOfflineClient(const EgHLTOfflineClient& rhs){}
00078 EgHLTOfflineClient& operator=(const EgHLTOfflineClient& rhs){return *this;}
00079
00080 public:
00081 explicit EgHLTOfflineClient(const edm::ParameterSet& );
00082 virtual ~EgHLTOfflineClient();
00083
00084
00085 virtual void beginJob();
00086 virtual void analyze(const edm::Event&, const edm::EventSetup&);
00087 virtual void endJob();
00088 virtual void beginRun(const edm::Run& run, const edm::EventSetup& c);
00089 virtual void endRun(const edm::Run& run, const edm::EventSetup& c);
00090
00091
00092 virtual void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,const edm::EventSetup& context){}
00093
00094 virtual void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,const edm::EventSetup& c);
00095
00096
00097 void createN1EffHists(const std::string& filterName,const std::string& baseName,const std::string& region,const std::vector<std::string>& varNames);
00098 void createSingleEffHists(const std::string& filterName,const std::string& baseName,const std::string& region,const std::vector<std::string>& varNames);
00099 void createLooseTightTrigEff(const std::vector<std::string>& tightLooseTrigNames,const std::string& region,const std::vector<std::string>& vsVarNames,const std::string& objName);
00100 void createTrigTagProbeEffHists(const std::string& filterName,const std::string& region,const std::vector<std::string>& vsVarNames,const std::string& objName);
00101 void createTrigTagProbeEffHistsNewAlgo(const std::string& filterName,const std::string& region,const std::vector<std::string>& vsVarNames,const std::string& objName);
00102 void createTrigTagProbeEffHists2Leg(const std::string& filterNameLeg1,const std::string& filterNameLeg2,const std::string& region,const std::vector<std::string>& vsVarNames,const std::string& objName);
00103 void createHLTvsOfflineHists(const std::string& filterName,const std::string& baseName,const std::string& region,const std::vector<std::string>& varNames);
00104 MonitorElement* FillHLTvsOfflineHist(const std::string& filter,const std::string& name,const std::string& title,const MonitorElement* numer,const MonitorElement* denom);
00105
00106 MonitorElement* makeEffMonElemFromPassAndAll(const std::string& filterName,const std::string& name,const std::string& title,const MonitorElement* pass,const MonitorElement* all);
00107 MonitorElement* makeEffMonElemFromPassAndFail(const std::string& filterName,const std::string& name,const std::string& title,const MonitorElement* pass,const MonitorElement* fail);
00108 MonitorElement* makeEffMonElemFromPassAndFailAndTagTag(const std::string& filter,const std::string& name,const std::string& title,const MonitorElement* pass,const MonitorElement* fail, const MonitorElement* tagtag);
00109 MonitorElement* makeEffMonElem2Leg(const std::string& filter,const std::string& name,const std::string& title,const MonitorElement* Leg1Eff,const MonitorElement* Leg2NotLeg1Source, const MonitorElement* all);
00110
00111 private:
00112 void runClient_();
00113
00114 };
00115
00116
00117
00118 #endif