test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
EgHLTOfflineClient Class Reference

#include <EgHLTOfflineClient.h>

Inheritance diagram for EgHLTOfflineClient:
DQMEDHarvester edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

virtual void beginRun (const edm::Run &run, const edm::EventSetup &c)
 
void createHLTvsOfflineHists (const std::string &filterName, const std::string &baseName, const std::string &region, const std::vector< std::string > &varNames, DQMStore::IBooker &, DQMStore::IGetter &)
 
void createLooseTightTrigEff (const std::vector< std::string > &tightLooseTrigNames, const std::string &region, const std::vector< std::string > &vsVarNames, const std::string &objName, DQMStore::IBooker &, DQMStore::IGetter &)
 
void createN1EffHists (const std::string &filterName, const std::string &baseName, const std::string &region, const std::vector< std::string > &varNames, DQMStore::IBooker &, DQMStore::IGetter &)
 
void createSingleEffHists (const std::string &filterName, const std::string &baseName, const std::string &region, const std::vector< std::string > &varNames, DQMStore::IBooker &, DQMStore::IGetter &)
 
void createTrigTagProbeEffHists (const std::string &filterName, const std::string &region, const std::vector< std::string > &vsVarNames, const std::string &objName, DQMStore::IBooker &, DQMStore::IGetter &)
 
void createTrigTagProbeEffHists2Leg (const std::string &filterNameLeg1, const std::string &filterNameLeg2, const std::string &region, const std::vector< std::string > &vsVarNames, const std::string &objName, DQMStore::IBooker &, DQMStore::IGetter &)
 
void createTrigTagProbeEffHistsNewAlgo (const std::string &filterName, const std::string &region, const std::vector< std::string > &vsVarNames, const std::string &objName, DQMStore::IBooker &, DQMStore::IGetter &)
 
void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
 EgHLTOfflineClient (const edm::ParameterSet &)
 
MonitorElementFillHLTvsOfflineHist (const std::string &filter, const std::string &name, const std::string &title, const MonitorElement *numer, const MonitorElement *denom, DQMStore::IBooker &, DQMStore::IGetter &)
 
MonitorElementmakeEffMonElem2Leg (const std::string &filter, const std::string &name, const std::string &title, const MonitorElement *Leg1Eff, const MonitorElement *Leg2NotLeg1Source, const MonitorElement *all, DQMStore::IBooker &, DQMStore::IGetter &)
 
MonitorElementmakeEffMonElemFromPassAndAll (const std::string &filterName, const std::string &name, const std::string &title, const MonitorElement *pass, const MonitorElement *all, DQMStore::IBooker &, DQMStore::IGetter &)
 
MonitorElementmakeEffMonElemFromPassAndFail (const std::string &filterName, const std::string &name, const std::string &title, const MonitorElement *pass, const MonitorElement *fail, DQMStore::IBooker &, DQMStore::IGetter &)
 
MonitorElementmakeEffMonElemFromPassAndFailAndTagTag (const std::string &filter, const std::string &name, const std::string &title, const MonitorElement *pass, const MonitorElement *fail, const MonitorElement *tagtag, DQMStore::IBooker &, DQMStore::IGetter &)
 
virtual ~EgHLTOfflineClient ()
 
- Public Member Functions inherited from DQMEDHarvester
virtual void analyze (edm::Event const &, edm::EventSetup const &) final
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
 DQMEDHarvester (void)
 
virtual void endJob () final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

 EgHLTOfflineClient (const EgHLTOfflineClient &rhs)
 
EgHLTOfflineClientoperator= (const EgHLTOfflineClient &rhs)
 
void runClient_ (DQMStore::IBooker &, DQMStore::IGetter &)
 

Private Attributes

std::string dirName_
 
std::vector< std::string > eleEffTags_
 
std::vector< std::string > eleHLTFilterNames2Leg_
 
std::vector< std::string > eleHLTFilterNames_
 
std::vector< std::string > eleHLTvOfflineVars_
 
std::vector< std::string > eleLooseTightTrigEffVsVars_
 
std::vector< std::string > eleN1EffVars_
 
std::vector< std::string > eleSingleEffVars_
 
std::vector< std::string > eleTightLooseTrigNames_
 
std::vector< std::string > eleTrigTPEffVsVars_
 
bool filterInactiveTriggers_
 
std::string hltTag_
 
bool isSetup_
 
std::vector< std::string > phoEffTags_
 
std::vector< std::string > phoHLTFilterNames2Leg_
 
std::vector< std::string > phoHLTFilterNames_
 
std::vector< std::string > phoHLTvOfflineVars_
 
std::vector< std::string > phoLooseTightTrigEffVsVars_
 
std::vector< std::string > phoN1EffVars_
 
std::vector< std::string > phoSingleEffVars_
 
std::vector< std::string > phoTightLooseTrigNames_
 
std::vector< std::string > phoTrigTPEffVsVars_
 
bool runClientEndJob_
 
bool runClientEndLumiBlock_
 
bool runClientEndRun_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 37 of file EgHLTOfflineClient.h.

Constructor & Destructor Documentation

EgHLTOfflineClient::EgHLTOfflineClient ( const EgHLTOfflineClient rhs)
inlineprivate

Definition at line 77 of file EgHLTOfflineClient.h.

77 {}
EgHLTOfflineClient::EgHLTOfflineClient ( const edm::ParameterSet iConfig)
explicit

Definition at line 22 of file EgHLTOfflineClient.cc.

References dirName_, eleEffTags_, eleHLTFilterNames2Leg_, eleHLTFilterNames_, eleHLTvOfflineVars_, eleLooseTightTrigEffVsVars_, eleN1EffVars_, eleSingleEffVars_, eleTightLooseTrigNames_, eleTrigTPEffVsVars_, filterInactiveTriggers_, edm::ParameterSet::getParameter(), hltTag_, phoEffTags_, phoHLTFilterNames2Leg_, phoHLTFilterNames_, phoHLTvOfflineVars_, phoLooseTightTrigEffVsVars_, phoN1EffVars_, phoSingleEffVars_, phoTightLooseTrigNames_, phoTrigTPEffVsVars_, runClientEndJob_, runClientEndLumiBlock_, runClientEndRun_, and AlCaHLTBitMon_QueryRunRegistry::string.

22  :isSetup_(false)
23 {
24 
25  eleHLTFilterNames_ = iConfig.getParameter<std::vector<std::string> >("eleHLTFilterNames");
26  eleHLTFilterNames2Leg_ = iConfig.getParameter<std::vector<std::string> >("eleHLTFilterNames2Leg");
27  eleTightLooseTrigNames_ = iConfig.getParameter<std::vector<std::string> >("eleTightLooseTrigNames");
28  phoHLTFilterNames_ = iConfig.getParameter<std::vector<std::string> >("phoHLTFilterNames");
29  phoHLTFilterNames2Leg_ = iConfig.getParameter<std::vector<std::string> >("phoHLTFilterNames2Leg");
30  phoTightLooseTrigNames_ = iConfig.getParameter<std::vector<std::string> >("phoTightLooseTrigNames");
31 
32  eleN1EffVars_ = iConfig.getParameter<std::vector<std::string> >("eleN1EffVars");
33  eleSingleEffVars_ = iConfig.getParameter<std::vector<std::string> >("eleSingleEffVars");
34  eleEffTags_ = iConfig.getParameter<std::vector<std::string> >("eleEffTags");
35  eleTrigTPEffVsVars_ = iConfig.getParameter<std::vector<std::string> >("eleTrigTPEffVsVars");
36  eleLooseTightTrigEffVsVars_ = iConfig.getParameter<std::vector<std::string> >("eleLooseTightTrigEffVsVars");
37  eleHLTvOfflineVars_ = iConfig.getParameter<std::vector<std::string> >("eleHLTvOfflineVars");
38 
39  phoN1EffVars_ = iConfig.getParameter<std::vector<std::string> >("phoN1EffVars");
40  phoSingleEffVars_ = iConfig.getParameter<std::vector<std::string> >("phoSingleEffVars");
41  phoEffTags_ = iConfig.getParameter<std::vector<std::string> >("phoEffTags");
42  phoTrigTPEffVsVars_ = iConfig.getParameter<std::vector<std::string> >("phoTrigTPEffVsVars");
43  phoLooseTightTrigEffVsVars_ = iConfig.getParameter<std::vector<std::string> >("phoLooseTightTrigEffVsVars");
44  phoHLTvOfflineVars_ = iConfig.getParameter<std::vector<std::string> >("phoHLTvOfflineVars");
45 
46  runClientEndLumiBlock_ = iConfig.getParameter<bool>("runClientEndLumiBlock");
47  runClientEndRun_ = iConfig.getParameter<bool>("runClientEndRun");
48  runClientEndJob_ = iConfig.getParameter<bool>("runClientEndJob");
49 
50  dirName_ = iConfig.getParameter<std::string>("DQMDirName");
51 
52  filterInactiveTriggers_ =iConfig.getParameter<bool>("filterInactiveTriggers");
53  hltTag_ = iConfig.getParameter<std::string>("hltTag");
54 
55 
56 }
T getParameter(std::string const &) const
std::vector< std::string > eleHLTFilterNames_
std::vector< std::string > phoHLTFilterNames2Leg_
std::vector< std::string > phoLooseTightTrigEffVsVars_
std::vector< std::string > phoTrigTPEffVsVars_
std::vector< std::string > eleTightLooseTrigNames_
std::vector< std::string > phoN1EffVars_
std::vector< std::string > eleHLTvOfflineVars_
std::vector< std::string > eleTrigTPEffVsVars_
std::vector< std::string > phoEffTags_
std::vector< std::string > phoSingleEffVars_
std::vector< std::string > eleN1EffVars_
std::vector< std::string > phoTightLooseTrigNames_
std::vector< std::string > phoHLTvOfflineVars_
std::vector< std::string > phoHLTFilterNames_
std::vector< std::string > eleLooseTightTrigEffVsVars_
std::vector< std::string > eleEffTags_
std::vector< std::string > eleHLTFilterNames2Leg_
std::vector< std::string > eleSingleEffVars_
EgHLTOfflineClient::~EgHLTOfflineClient ( )
virtual

Definition at line 59 of file EgHLTOfflineClient.cc.

59 { }

Member Function Documentation

void EgHLTOfflineClient::beginRun ( const edm::Run run,
const edm::EventSetup c 
)
virtual

Reimplemented from DQMEDHarvester.

Definition at line 67 of file EgHLTOfflineClient.cc.

References eleHLTFilterNames2Leg_, eleHLTFilterNames_, eleTightLooseTrigNames_, egHLT::trigTools::filterInactiveTightLooseTriggers(), egHLT::trigTools::filterInactiveTriggers(), filterInactiveTriggers_, egHLT::trigTools::getActiveFilters(), HltComparatorCreateWorkflow::hltConfig, hltTag_, HLTConfigProvider::init(), isSetup_, phoHLTFilterNames_, and phoTightLooseTrigNames_.

68 {
69  if (!isSetup_) {
72  bool changed = false;
73  hltConfig.init(run, c, hltTag_, changed);
74  std::vector<std::string> activeFilters;
75  std::vector<std::string> activeEleFilters;
76  std::vector<std::string> activeEle2LegFilters;
77  std::vector<std::string> activePhoFilters;
78  std::vector<std::string> activePho2LegFilters;
79  egHLT::trigTools::getActiveFilters(hltConfig, activeFilters, activeEleFilters,
80  activeEle2LegFilters, activePhoFilters, activePho2LegFilters);
81 
87  }
88  isSetup_ = true;
89  }
90 }
std::vector< std::string > eleHLTFilterNames_
std::vector< std::string > eleTightLooseTrigNames_
void getActiveFilters(const HLTConfigProvider &hltConfig, std::vector< std::string > &activeFilters, std::vector< std::string > &activeEleFilters, std::vector< std::string > &activeEle2LegFilters, std::vector< std::string > &activePhoFilters, std::vector< std::string > &activePho2LegFilters)
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
std::vector< std::string > phoTightLooseTrigNames_
std::vector< std::string > phoHLTFilterNames_
void filterInactiveTriggers(std::vector< std::string > &namesToFilter, std::vector< std::string > &activeFilters)
void filterInactiveTightLooseTriggers(std::vector< std::string > &namesToFilter, const std::vector< std::string > &activeFilters)
std::vector< std::string > eleHLTFilterNames2Leg_
void EgHLTOfflineClient::createHLTvsOfflineHists ( const std::string &  filterName,
const std::string &  baseName,
const std::string &  region,
const std::vector< std::string > &  varNames,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 194 of file EgHLTOfflineClient.cc.

References dirName_, FillHLTvsOfflineHist(), DQMStore::IGetter::get(), NULL, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by runClient_().

197  {
198 
199  //need to do Energy manually to get SC Energy
200  /*
201  MonitorElement* numer = dbe_->get(dirName_+"/Source_Histos/"+filterName+"/"+baseName+"_HLTenergy"+"_"+region);
202  MonitorElement* denom = dbe_->get(dirName_+"/Source_Histos/"+filterName+"/"+baseName+"_energy"+"_"+region);
203 
204  if(numer!=NULL && denom!=NULL){
205  std::string effHistName(baseName+"_HLToverOfflineSC_energy_"+region);//std::cout<<"hltVSoffline: "<<effHistName<<std::endl;
206  std::string effHistTitle(effHistName);
207  if(region=="eb" || region=="ee"){
208  if(region=="eb") effHistTitle = "Barrel "+baseName+" HLToverOfflineSC Energy";
209  if(region=="ee") effHistTitle = "Endcap "+baseName+" HLToverOfflineSC Energy";
210  FillHLTvsOfflineHist(filterName,effHistName,effHistTitle,numer,denom);
211  }
212  }//end Et
213  */
214 
215  //now eta, phi automatically
216  for (size_t varNr = 0; varNr < varNames.size(); varNr++) {
217  MonitorElement* numer = igetter.get(dirName_+"/Source_Histos/"+filterName+"/"+baseName+"_HLT"+varNames[varNr]+"_"+region);
218  MonitorElement* denom = igetter.get(dirName_+"/Source_Histos/"+filterName+"/"+baseName+"_"+varNames[varNr]+"_"+region);
219  if (numer != NULL && denom != NULL) {
220  std::string effHistName(baseName + "_HLToverOffline_" + varNames[varNr] + "_" + region);//std::cout<<"hltVSoffline: "<<effHistName<<std::endl;
221  std::string effHistTitle(effHistName);
222  if (region == "eb" || region == "ee") {
223  if (region == "eb") effHistTitle = "Barrel " + baseName + " HLToverOffline " + varNames[varNr];
224  if (region == "ee") effHistTitle = "Endcap " + baseName + " HLToverOffline " + varNames[varNr];
225  FillHLTvsOfflineHist(filterName, effHistName, effHistTitle, numer, denom, ibooker, igetter);
226  }
227  }
228  }//end loop over varNames
229 }
MonitorElement * FillHLTvsOfflineHist(const std::string &filter, const std::string &name, const std::string &title, const MonitorElement *numer, const MonitorElement *denom, DQMStore::IBooker &, DQMStore::IGetter &)
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
char const * varNames[]
void EgHLTOfflineClient::createLooseTightTrigEff ( const std::vector< std::string > &  tightLooseTrigNames,
const std::string &  region,
const std::vector< std::string > &  vsVarNames,
const std::string &  objName,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 415 of file EgHLTOfflineClient.cc.

References dirName_, cmsPerfPublish::fail(), DQMStore::IGetter::get(), makeEffMonElemFromPassAndFail(), NULL, split, splitString(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by runClient_().

418  {
419 
420  for (size_t varNr = 0; varNr < vsVarNames.size(); varNr++) {
421  for (size_t trigNr = 0; trigNr < tightLooseTrigNames.size(); trigNr++) {
422  std::vector<std::string> splitString;
423  boost::split(splitString, tightLooseTrigNames[trigNr], boost::is_any_of(std::string(":")));
424  if (splitString.size() != 2) {
425  continue; //format incorrect
426  }
427 
428  const std::string& tightTrig = splitString[0];
429  const std::string& looseTrig = splitString[1];
430  MonitorElement* fail = igetter.get(dirName_ + "/Source_Histos/" + tightTrig + "_" + looseTrig + "_" + objName + "_failTrig_" + vsVarNames[varNr] + "_" + region);
431  if (fail == NULL) {
432  continue;
433  }
434 
435  MonitorElement* pass = igetter.get(dirName_ + "/Source_Histos/" + tightTrig + "_" + looseTrig + "_" + objName + "_passTrig_" + vsVarNames[varNr] + "_" + region);
436  if (pass == NULL) {
437  continue;
438  }
439 
440  const std::string newHistName(tightTrig + "_trigEffTo_" + looseTrig + "_" + objName + "_vs_" + vsVarNames[varNr] + "_" + region);
441  //----Morse-----
442  std::string effHistTitle(newHistName);//std::cout<<effHistTitle<<std::endl;
443  if (region == "eb" || region == "ee") {
444  if (region == "eb") effHistTitle = "Barrel " + tightTrig + "_TrigEffTo_" + looseTrig + "_" + objName + " vs " + vsVarNames[varNr];
445  if (region == "ee") effHistTitle = "Endcap " + tightTrig + "_TrigEffTo_" + looseTrig + "_" + objName + " vs " + vsVarNames[varNr];
446  }
447  //------------
448  makeEffMonElemFromPassAndFail("LooseTight", newHistName, effHistTitle, pass, fail,
449  ibooker, igetter);
450 
451  }//end loop over trigger pairs
452  } //end loop over vsVarNames
453 
454 }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
std::vector< std::string > splitString(const std::string &fLine)
MonitorElement * makeEffMonElemFromPassAndFail(const std::string &filterName, const std::string &name, const std::string &title, const MonitorElement *pass, const MonitorElement *fail, DQMStore::IBooker &, DQMStore::IGetter &)
double split
Definition: MVATrainer.cc:139
void EgHLTOfflineClient::createN1EffHists ( const std::string &  filterName,
const std::string &  baseName,
const std::string &  region,
const std::vector< std::string > &  varNames,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 254 of file EgHLTOfflineClient.cc.

References dirName_, DQMStore::IGetter::get(), makeEffMonElemFromPassAndAll(), NULL, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by runClient_().

257  {
258 
259  MonitorElement* numer = igetter.get(dirName_+"/Source_Histos/"+filterName+"/"+baseName+"_allCuts_"+region);
260 
261  for (size_t varNr = 0; varNr < varNames.size(); varNr++) {
262  MonitorElement* denom = igetter.get(dirName_+"/Source_Histos/"+filterName+"/"+baseName+"_n1_"+varNames[varNr]+"_"+region);
263  if (numer != NULL && denom != NULL) {
264  std::string effHistName(baseName+"_n1Eff_"+varNames[varNr]+"_"+region);//std::cout<<"N1: "<<effHistName<<std::endl;
265  //std::cout<<region<<" ";
266  //----Morse-----------
267  std::string effHistTitle(effHistName);//std::cout<<effHistTitle<<std::endl;
268  if ( region == "eb" || region == "ee"){
269  if (region == "eb") effHistTitle = "Barrel "+baseName+" N1eff "+varNames[varNr];
270  if (region == "ee") effHistTitle = "Endcap "+baseName+" N1eff "+varNames[varNr];
271  }//std::cout<<effHistTitle<<std::endl;
272  makeEffMonElemFromPassAndAll(filterName, effHistName, effHistTitle, numer, denom, ibooker,
273  igetter);
274  //---------------------
275  }
276  }//end loop over varNames
277 }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
char const * varNames[]
MonitorElement * makeEffMonElemFromPassAndAll(const std::string &filterName, const std::string &name, const std::string &title, const MonitorElement *pass, const MonitorElement *all, DQMStore::IBooker &, DQMStore::IGetter &)
void EgHLTOfflineClient::createSingleEffHists ( const std::string &  filterName,
const std::string &  baseName,
const std::string &  region,
const std::vector< std::string > &  varNames,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 279 of file EgHLTOfflineClient.cc.

References dirName_, DQMStore::IGetter::get(), makeEffMonElemFromPassAndAll(), NULL, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by runClient_().

282  {
283 
284  MonitorElement* denom = igetter.get(dirName_+"/Source_Histos/"+filterName+"/"+baseName+"_noCuts_"+region);
285 
286  for (size_t varNr = 0; varNr < varNames.size(); varNr++) {
287  MonitorElement* numer = igetter.get(dirName_+"/Source_Histos/"+filterName+"/"+baseName+"_single_"+varNames[varNr]+"_"+region);
288  if (numer != NULL && denom != NULL) {
289  std::string effHistName(baseName + "_singleEff_" + varNames[varNr] + "_" + region);//std::cout<<"Si: "<<effHistName<<std::endl;
290  //----Morse-----------
291  std::string effHistTitle(effHistName);//std::cout<<effHistTitle<<std::endl;
292  if (region == "eb" || region == "ee") {
293  if (region == "eb") effHistTitle = "Barrel " + baseName + " SingleEff " + varNames[varNr];
294  if (region == "ee") effHistTitle = "Endcap " + baseName + " SingleEff " + varNames[varNr];
295  }//std::cout<<effHistTitle<<std::endl;
296  makeEffMonElemFromPassAndAll(filterName, effHistName, effHistTitle, numer, denom, ibooker,
297  igetter);
298  //--------------------
299  }
300  }//end loop over varNames
301 }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
char const * varNames[]
MonitorElement * makeEffMonElemFromPassAndAll(const std::string &filterName, const std::string &name, const std::string &title, const MonitorElement *pass, const MonitorElement *all, DQMStore::IBooker &, DQMStore::IGetter &)
void EgHLTOfflineClient::createTrigTagProbeEffHists ( const std::string &  filterName,
const std::string &  region,
const std::vector< std::string > &  vsVarNames,
const std::string &  objName,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 303 of file EgHLTOfflineClient.cc.

References Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), dirName_, DQMStore::IGetter::get(), makeEffMonElemFromPassAndAll(), NULL, and AlCaHLTBitMon_QueryRunRegistry::string.

305  {
306 
307  for (size_t varNr = 0; varNr < vsVarNames.size(); varNr++) {
308  std::string allName(dirName_ + "/Source_Histos/" + filterName + "/" + filterName + "_trigTagProbe_" + objName + "_all_" + vsVarNames[varNr] + "_" + region);
309  MonitorElement* all = igetter.get(allName);
310  if (all == NULL) {
311  continue;
312  }
313  std::string passName(dirName_ + "/Source_Histos/" + filterName + "/" + filterName + "_trigTagProbe_" + objName + "_pass_" + vsVarNames[varNr] + "_" + region);
314  MonitorElement* pass = igetter.get(passName);
315  if (pass == NULL) {
316  continue;
317  }
318  //----Morse-----
319  std::string effHistTitle(filterName + "_trigTagProbeEff_" + objName + "_vs_" + vsVarNames[varNr] + "_" + region);//std::cout<<effHistTitle<<std::endl;
320  if (region == "eb" || region == "ee") {
321  if (region == "eb") effHistTitle = "Barrel " + filterName + "_" + objName + " TrigTagProbeEff vs " + vsVarNames[varNr];
322  if (region == "ee") effHistTitle = "Endcap " + filterName + "_" + objName + " TrigTagProbeEff vs " + vsVarNames[varNr];
323  }
324  //------------
326  filterName + "_trigTagProbeEff_" + objName + "_vs_" + vsVarNames[varNr] + "_" + region,
327  effHistTitle, pass, all, ibooker, igetter);
328 
329  }//end loop over vsVarNames
330 }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
MonitorElement * makeEffMonElemFromPassAndAll(const std::string &filterName, const std::string &name, const std::string &title, const MonitorElement *pass, const MonitorElement *all, DQMStore::IBooker &, DQMStore::IGetter &)
void EgHLTOfflineClient::createTrigTagProbeEffHists2Leg ( const std::string &  filterNameLeg1,
const std::string &  filterNameLeg2,
const std::string &  region,
const std::vector< std::string > &  vsVarNames,
const std::string &  objName,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 375 of file EgHLTOfflineClient.cc.

References Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), dirName_, DQMStore::IGetter::get(), makeEffMonElem2Leg(), NULL, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by runClient_().

378  {
379 
380  for (size_t varNr = 0; varNr < vsVarNames.size(); varNr++) {
381 
382  std::string allName(dirName_+"/Source_Histos/"+filterNameLeg2+"/"+filterNameLeg2+"_trigTagProbe_"+objName+"_all_"+vsVarNames[varNr]+"_"+region);
383  MonitorElement* all = igetter.get(allName);
384  if (all == NULL) {
385  edm::LogInfo("EgHLTOfflineClient") <<" couldnt get hist "<<allName;
386  continue;
387  }
388 
389  std::string Leg2NotLeg1SourceName(dirName_+"/Source_Histos/"+filterNameLeg2+"/"+filterNameLeg2+"_trigTagProbe_"+objName+"_passLeg2failLeg1_"+vsVarNames[varNr]+"_"+region);
390  MonitorElement* Leg2NotLeg1Source = igetter.get(Leg2NotLeg1SourceName);
391  if (Leg2NotLeg1Source == NULL) {
392  edm::LogInfo("EgHLTOfflineClient") <<" couldnt get hist "<<Leg2NotLeg1SourceName;
393  continue;
394  }
395 
396  std::string Leg1EffName(dirName_+"/Client_Histos/"+filterNameLeg1+"/"+filterNameLeg1+"_trigTagProbeEff_"+objName+"_vs_"+vsVarNames[varNr]+"_"+region);
397  MonitorElement *Leg1Eff = igetter.get(Leg1EffName);
398  if (Leg1Eff == NULL) {
399  edm::LogInfo("EgHLTOfflineClient") <<" couldnt get hist "<<Leg1EffName;
400  continue;
401  }
402 
403  std::string effHistTitle(filterNameLeg2+"_trigTagProbeEff2Leg_"+objName+"_vs_"+vsVarNames[varNr]+"_"+region);//std::cout<<effHistTitle<<std::endl;
404  if (region == "eb" || region == "ee") {
405  if (region == "eb") effHistTitle = "Barrel " + filterNameLeg2 + "_" + objName + " TrigTagProbeEff2Leg vs " + vsVarNames[varNr];
406  if (region == "ee") effHistTitle = "Endcap " + filterNameLeg2 + "_" + objName + " TrigTagProbeEff2Leg vs " + vsVarNames[varNr];
407  }//std::cout<<effHistTitle<<std::endl;
408  makeEffMonElem2Leg(filterNameLeg2,
409  filterNameLeg2 + "_trigTagProbeEff2Leg_" + objName + "_vs_" + vsVarNames[varNr] + "_" + region,
410  effHistTitle, Leg1Eff, Leg2NotLeg1Source, all, ibooker, igetter);
411  }//end loop over vsVarNames
412 }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
MonitorElement * makeEffMonElem2Leg(const std::string &filter, const std::string &name, const std::string &title, const MonitorElement *Leg1Eff, const MonitorElement *Leg2NotLeg1Source, const MonitorElement *all, DQMStore::IBooker &, DQMStore::IGetter &)
void EgHLTOfflineClient::createTrigTagProbeEffHistsNewAlgo ( const std::string &  filterName,
const std::string &  region,
const std::vector< std::string > &  vsVarNames,
const std::string &  objName,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 332 of file EgHLTOfflineClient.cc.

References dirName_, cmsPerfPublish::fail(), DQMStore::IGetter::get(), makeEffMonElemFromPassAndFailAndTagTag(), NULL, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by runClient_().

334  {
335 
336  for (size_t varNr = 0; varNr < vsVarNames.size(); varNr++) {
337  /*
338  std::string allName(dirName_+"/Source_Histos/"+filterName+"/"+filterName+"_trigTagProbe_"+objName+"_all_"+vsVarNames[varNr]+"_"+region);
339  MonitorElement* all = dbe_->get(allName);
340  if(all==NULL){
341  //edm::LogInfo("EgHLTOfflineClient") <<" couldnt get hist "<<allName;
342  continue;
343  }*/
344  std::string passName(dirName_+"/Source_Histos/"+filterName+"/"+filterName+"_trigTagProbe_"+objName+"_passNotTag_"+vsVarNames[varNr]+"_"+region);
345  MonitorElement* passNotTag = igetter.get(passName);
346  if (passNotTag == NULL) {
347  //edm::LogInfo("EgHLTOfflineClient") <<" couldnt get hist "<<passName;
348  continue;
349  }
350  std::string passTagTagName(dirName_+"/Source_Histos/"+filterName+"/"+filterName+"_trigTagProbe_"+objName+"_passTagTag_"+vsVarNames[varNr]+"_"+region);
351  MonitorElement* passTagTag = igetter.get(passTagTagName);
352  if (passTagTag == NULL) {
353  //edm::LogInfo("EgHLTOfflineClient") <<" couldnt get hist "<<passTagTagName;
354  continue;
355  }
356  std::string failName(dirName_+"/Source_Histos/"+filterName+"/"+filterName+"_trigTagProbe_"+objName+"_fail_"+vsVarNames[varNr]+"_"+region);
357  MonitorElement* fail = igetter.get(failName);
358  if (fail == NULL) {
359  //edm::LogInfo("EgHLTOfflineClient") <<" couldnt get hist "<<failName;
360  continue;
361  }
362  //----Morse-----
363  std::string effHistTitle(filterName+"_trigTagProbeEff_"+objName+"_vs_"+vsVarNames[varNr]+"_"+region);//std::cout<<effHistTitle<<std::endl;
364  if (region == "eb" || region == "ee") {
365  if (region == "eb") effHistTitle = "Barrel " + filterName + "_"+objName + " TrigTagProbeEff vs " + vsVarNames[varNr];
366  if (region == "ee") effHistTitle = "Endcap " + filterName + "_"+objName + " TrigTagProbeEff vs " + vsVarNames[varNr];
367  }//std::cout<<effHistTitle<<std::endl;
368  //------------
370  filterName + "_trigTagProbeEff_" + objName + "_vs_" + vsVarNames[varNr] + "_" + region,
371  effHistTitle, passNotTag, fail, passTagTag, ibooker, igetter);
372  }//end loop over vsVarNames
373 }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
MonitorElement * makeEffMonElemFromPassAndFailAndTagTag(const std::string &filter, const std::string &name, const std::string &title, const MonitorElement *pass, const MonitorElement *fail, const MonitorElement *tagtag, DQMStore::IBooker &, DQMStore::IGetter &)
void EgHLTOfflineClient::dqmEndJob ( DQMStore::IBooker ibooker_,
DQMStore::IGetter igetter_ 
)
overridevirtual

Implements DQMEDHarvester.

Definition at line 62 of file EgHLTOfflineClient.cc.

References runClient_(), and runClientEndJob_.

62  {
63 
64  if (runClientEndJob_) runClient_(ibooker_, igetter_);
65 }
void runClient_(DQMStore::IBooker &, DQMStore::IGetter &)
void EgHLTOfflineClient::dqmEndLuminosityBlock ( DQMStore::IBooker ibooker_,
DQMStore::IGetter igetter_,
edm::LuminosityBlock const &  iLumi,
edm::EventSetup const &  iSetup 
)
virtual

Reimplemented from DQMEDHarvester.

Definition at line 92 of file EgHLTOfflineClient.cc.

References runClient_(), and runClientEndLumiBlock_.

94  {
95 
96  if (runClientEndLumiBlock_) runClient_(ibooker_, igetter_);
97 }
void runClient_(DQMStore::IBooker &, DQMStore::IGetter &)
MonitorElement * EgHLTOfflineClient::FillHLTvsOfflineHist ( const std::string &  filter,
const std::string &  name,
const std::string &  title,
const MonitorElement numer,
const MonitorElement denom,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 231 of file EgHLTOfflineClient.cc.

References DQMStore::IBooker::book1D(), dirName_, DQMStore::IGetter::get(), MonitorElement::getTH1F(), NULL, and pileupDistInMC::num.

Referenced by createHLTvsOfflineHists().

233  {
234 
235  TH1F* num = numer->getTH1F();
236  if (num->GetSumw2N() == 0) num->Sumw2();
237 
238  TH1F* den = denom->getTH1F();
239  if (den->GetSumw2N() == 0) den->Sumw2();
240 
241  TH1F* h_eff = (TH1F*)num->Clone(name.c_str());
242  h_eff->Divide(num, den, 1, 1, "B");
243  h_eff->SetTitle(title.c_str());
244  MonitorElement* eff = igetter.get(dirName_ + "/Client_Histos/" + filter + "/" + name);
245  if (eff == NULL) {
246  eff = ibooker.book1D(name, h_eff);
247  } else { //I was having problems with collating the histograms, hence why I'm just resetting the histogram value
248  *eff->getTH1F() = *h_eff;
249  delete h_eff;
250  }
251  return eff;
252 }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
TH1F * getTH1F(void) const
MonitorElement * EgHLTOfflineClient::makeEffMonElem2Leg ( const std::string &  filter,
const std::string &  name,
const std::string &  title,
const MonitorElement Leg1Eff,
const MonitorElement Leg2NotLeg1Source,
const MonitorElement all,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 516 of file EgHLTOfflineClient.cc.

References DQMStore::IBooker::book1D(), dirName_, DQMStore::IGetter::get(), MonitorElement::getTH1F(), and NULL.

Referenced by createTrigTagProbeEffHists2Leg().

519  {
520 
521  TH1F* allHist = all->getTH1F();
522  if (allHist->GetSumw2() == 0) allHist->Sumw2();
523  TH1F* Leg2NotLeg1SourceHist = Leg2NotLeg1Source->getTH1F();
524  if (Leg2NotLeg1SourceHist->GetSumw2() == 0) Leg2NotLeg1SourceHist->Sumw2();
525 
526  TH1F* effHistLeg2NotLeg1 = (TH1F*)allHist->Clone(name.c_str());
527  if (effHistLeg2NotLeg1->GetSumw2() == 0) effHistLeg2NotLeg1->Sumw2();
528  effHistLeg2NotLeg1->Divide(Leg2NotLeg1SourceHist, allHist, 1, 1, "B");
529 
530  TH1F* Leg1EffHist = Leg1Eff->getTH1F();
531  if (Leg1EffHist->GetSumw2() == 0) Leg1EffHist->Sumw2();
532 
533  TH1F* effHistTerm1 = (TH1F*)allHist->Clone(name.c_str());
534  if (effHistTerm1->GetSumw2() == 0) effHistTerm1->Sumw2();
535  effHistTerm1->Multiply(Leg1EffHist, Leg1EffHist, 1, 1, "B");
536 
537  TH1F* effHistTerm2 = (TH1F*)allHist->Clone(name.c_str());
538  if (effHistTerm2->GetSumw2() == 0) effHistTerm2->Sumw2();
539  effHistTerm2->Multiply(Leg1EffHist, effHistLeg2NotLeg1, 1, 1, "B");
540  effHistTerm2->Scale(2);
541 
542  TH1F* effHist = (TH1F*)allHist->Clone(name.c_str());
543  if (effHist->GetSumw2() == 0) effHist->Sumw2();
544  effHist->Add(effHistTerm1, effHistTerm2, 1, 1);
545  effHist->SetTitle(title.c_str());
546 
547  MonitorElement* eff = igetter.get(dirName_ + "/Client_Histos/" + filter + "/" + name);
548  if (eff == NULL) {
549  eff = ibooker.book1D(name, effHist);
550  } else { //I was having problems with collating the histograms, hence why I'm just resetting the histogram value
551  *eff->getTH1F() = *effHist;
552  delete effHist;
553  }
554  return eff;
555 }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
TH1F * getTH1F(void) const
MonitorElement * EgHLTOfflineClient::makeEffMonElemFromPassAndAll ( const std::string &  filterName,
const std::string &  name,
const std::string &  title,
const MonitorElement pass,
const MonitorElement all,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 456 of file EgHLTOfflineClient.cc.

References DQMStore::IBooker::book1D(), dirName_, DQMStore::IGetter::get(), MonitorElement::getTH1F(), and NULL.

Referenced by createN1EffHists(), createSingleEffHists(), and createTrigTagProbeEffHists().

458  {
459 
460  TH1F* passHist = pass->getTH1F();
461  if (passHist->GetSumw2N() == 0) passHist->Sumw2();
462  TH1F* allHist = all->getTH1F();
463  if (allHist->GetSumw2N() == 0) allHist->Sumw2();
464  TH1F* effHist = (TH1F*) passHist->Clone(name.c_str());
465  effHist->Divide(passHist,allHist,1,1,"B");
466  //----Morse---------
467  effHist->SetTitle(title.c_str());
468  //------------------
469  MonitorElement* eff = igetter.get(dirName_+"/Client_Histos/"+filterName+"/"+name);
470  if (eff == NULL) {
471  eff = ibooker.book1D(name,effHist);
472  } else { //I was having problems with collating the histograms, hence why I'm just resetting the histogram value
473  *eff->getTH1F()=*effHist;
474  delete effHist;
475  }
476  return eff;
477 }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
TH1F * getTH1F(void) const
MonitorElement * EgHLTOfflineClient::makeEffMonElemFromPassAndFail ( const std::string &  filterName,
const std::string &  name,
const std::string &  title,
const MonitorElement pass,
const MonitorElement fail,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 558 of file EgHLTOfflineClient.cc.

References DQMStore::IBooker::book1D(), dirName_, DQMStore::IGetter::get(), MonitorElement::getTH1F(), and NULL.

Referenced by createLooseTightTrigEff().

560  {
561 
562  TH1F* failHist = fail->getTH1F();
563  if (failHist->GetSumw2N() == 0) failHist->Sumw2();
564  TH1F* passHist = pass->getTH1F();
565  if (passHist->GetSumw2N() == 0) passHist->Sumw2();
566 
567  TH1F* effHist = (TH1F*) passHist->Clone(name.c_str());
568  effHist->Add(failHist);
569  effHist->Divide(passHist, effHist, 1, 1, "B");
570  //----Morse---------
571  effHist->SetTitle(title.c_str());
572  //------------------
573  MonitorElement* eff = igetter.get(dirName_ + "/Client_Histos/" + filterName + "/" + name);
574  if (eff == NULL) {
575  eff = ibooker.book1D(name, effHist);
576  } else { //I was having problems with collating the histograms, hence why I'm just reseting the histogram value
577  *eff->getTH1F() = *effHist;
578  delete effHist;
579  }
580  return eff;
581 }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
TH1F * getTH1F(void) const
MonitorElement * EgHLTOfflineClient::makeEffMonElemFromPassAndFailAndTagTag ( const std::string &  filter,
const std::string &  name,
const std::string &  title,
const MonitorElement pass,
const MonitorElement fail,
const MonitorElement tagtag,
DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)

Definition at line 479 of file EgHLTOfflineClient.cc.

References DQMStore::IBooker::book1D(), dirName_, DQMStore::IGetter::get(), MonitorElement::getTH1F(), and NULL.

Referenced by createTrigTagProbeEffHistsNewAlgo().

482  {
483 
484  TH1F* passHist = passNotTag->getTH1F();
485  if (passHist->GetSumw2N() == 0) passHist->Sumw2();
486  TH1F* failHist = fail->getTH1F();
487  if (failHist->GetSumw2N() == 0) failHist->Sumw2();
488  TH1F* tagtagHist = tagtag->getTH1F();
489  if (tagtagHist->GetSumw2N() == 0) tagtagHist->Sumw2();
490  TH1F* numer = (TH1F*) passHist->Clone(name.c_str());
491  if (numer->GetSumw2N() == 0) numer->Sumw2();
492  numer->Add(tagtagHist,passHist,2,1);
493  TH1F* denom = (TH1F*) passHist->Clone(name.c_str());
494  if (denom->GetSumw2N() == 0) denom->Sumw2();
495  denom->Add(tagtagHist,passHist,2,1);
496  denom->Add(failHist,1);
497  TH1F* effHist = (TH1F*) passHist->Clone(name.c_str());
498  //TGraphAsymmErrors *effHist = new TGraphAsymmErrors(numer,denom,"cl=0.683 b(1,1) mode");
499  effHist->Divide(numer, denom, 1, 1, "B");
500  //effHist->Divide(numer,denom,"cl=0.683 b(1,1) mode");
501  //----Morse---------
502  effHist->SetTitle(title.c_str());
503  //------------------
504  MonitorElement* eff = igetter.get(dirName_+"/Client_Histos/"+filter+"/"+name);
505  if (eff == NULL) {
506  eff = ibooker.book1D(name, effHist);
507  }
508  else { //I was having problems with collating the histograms, hence why I'm just resetting the histogram value
509  *eff->getTH1F()=*effHist;
510  //*eff->getTGraphAsymmErrors()=*effHist;
511  delete effHist;
512  }
513  return eff;
514 }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:304
#define NULL
Definition: scimark2.h:8
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
TH1F * getTH1F(void) const
EgHLTOfflineClient& EgHLTOfflineClient::operator= ( const EgHLTOfflineClient rhs)
inlineprivate

Definition at line 78 of file EgHLTOfflineClient.h.

78 {return *this;}
void EgHLTOfflineClient::runClient_ ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
private

Definition at line 99 of file EgHLTOfflineClient.cc.

References createHLTvsOfflineHists(), createLooseTightTrigEff(), createN1EffHists(), createSingleEffHists(), createTrigTagProbeEffHists2Leg(), createTrigTagProbeEffHistsNewAlgo(), dirName_, eleEffTags_, eleHLTFilterNames2Leg_, eleHLTFilterNames_, eleHLTvOfflineVars_, eleLooseTightTrigEffVsVars_, eleN1EffVars_, eleSingleEffVars_, eleTightLooseTrigNames_, eleTrigTPEffVsVars_, spr::find(), phoEffTags_, phoHLTFilterNames_, phoHLTvOfflineVars_, phoLooseTightTrigEffVsVars_, phoN1EffVars_, phoSingleEffVars_, phoTightLooseTrigNames_, phoTrigTPEffVsVars_, DQMStore::IBooker::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by dqmEndJob(), and dqmEndLuminosityBlock().

100 {
101 
102  ibooker.setCurrentFolder(dirName_ + "/Client_Histos");
103 
104 
105  std::vector<std::string> regions;
106  regions.push_back("eb");
107  regions.push_back("ee");
108 
109  for (size_t filterNr = 0; filterNr < eleHLTFilterNames_.size(); filterNr++) {
110  //std::cout<<"FilterName: "<<eleHLTFilterNames_[filterNr]<<std::endl;
111  for (size_t regionNr = 0; regionNr < regions.size(); regionNr++) {
112  for (size_t effNr = 0; effNr < eleEffTags_.size(); effNr++) {
113  //----Morse----
114  ibooker.setCurrentFolder(dirName_+"/Client_Histos/"+eleHLTFilterNames_[filterNr]);
115  //--------------
117  eleHLTFilterNames_[filterNr] + "_gsfEle_" + eleEffTags_[effNr], regions[regionNr],
118  eleN1EffVars_, ibooker, igetter);
119 
121  eleHLTFilterNames_[filterNr] + "_gsfEle_" + eleEffTags_[effNr], regions[regionNr],
122  eleSingleEffVars_, ibooker, igetter);
123 
124  createTrigTagProbeEffHistsNewAlgo(eleHLTFilterNames_[filterNr], regions[regionNr],
125  eleTrigTPEffVsVars_, "gsfEle", ibooker, igetter);
126 
128  eleHLTFilterNames_[filterNr] + "_gsfEle_passFilter", regions[regionNr],
129  eleHLTvOfflineVars_, ibooker, igetter);
130 
131  }
132  }
133  }
134  for (size_t filterNr = 0; filterNr < eleHLTFilterNames2Leg_.size(); filterNr++) {
135  for (size_t regionNr = 0; regionNr < regions.size(); regionNr++) {
136  for (size_t effNr = 0; effNr < eleEffTags_.size(); effNr++) {
137  std::string trigNameLeg1 = eleHLTFilterNames2Leg_[filterNr].substr(
138  0, eleHLTFilterNames2Leg_[filterNr].find("::"));
139 
140  std::string trigNameLeg2 = eleHLTFilterNames2Leg_[filterNr].substr(
141  eleHLTFilterNames2Leg_[filterNr].find("::") + 2);
142 
143  ibooker.setCurrentFolder(dirName_+"/Client_Histos/"+trigNameLeg2);
144  createTrigTagProbeEffHists2Leg(trigNameLeg1, trigNameLeg2, regions[regionNr],
145  eleTrigTPEffVsVars_, "gsfEle", ibooker, igetter);
146  }
147  }
148  }
149 
150  for (size_t filterNr = 0; filterNr < phoHLTFilterNames_.size(); filterNr++) {
151  for (size_t regionNr = 0; regionNr < regions.size(); regionNr++) {
152  for (size_t effNr = 0; effNr < phoEffTags_.size(); effNr++) {
153  //----Morse----
154  ibooker.setCurrentFolder(dirName_+"/Client_Histos/"+phoHLTFilterNames_[filterNr]);
156  phoHLTFilterNames_[filterNr] + "_pho_" + phoEffTags_[effNr], regions[regionNr],
157  phoN1EffVars_, ibooker, igetter);
158 
160  phoHLTFilterNames_[filterNr] + "_pho_" + phoEffTags_[effNr], regions[regionNr],
161  phoSingleEffVars_, ibooker, igetter);
162 
163  createTrigTagProbeEffHistsNewAlgo(phoHLTFilterNames_[filterNr], regions[regionNr],
164  phoTrigTPEffVsVars_, "pho", ibooker, igetter);
165 
167  phoHLTFilterNames_[filterNr] + "_pho_passFilter", regions[regionNr],
168  phoHLTvOfflineVars_, ibooker, igetter);
169 
170  //--------------
171  }
172  }
173  }
174 
175  for (size_t regionNr = 0; regionNr < regions.size(); regionNr++) {
177  eleLooseTightTrigEffVsVars_, "gsfEle", ibooker, igetter);
178 
180  eleLooseTightTrigEffVsVars_, "gsfEle_trigCuts", ibooker, igetter);
181 
183  phoLooseTightTrigEffVsVars_, "pho", ibooker, igetter);
184 
186  phoLooseTightTrigEffVsVars_, "pho_trigCuts", ibooker, igetter);
187 
188  }
189  //----Morse-----
190  ibooker.setCurrentFolder(dirName_);
191  //----------
192 }
void createTrigTagProbeEffHistsNewAlgo(const std::string &filterName, const std::string &region, const std::vector< std::string > &vsVarNames, const std::string &objName, DQMStore::IBooker &, DQMStore::IGetter &)
std::vector< std::string > eleHLTFilterNames_
std::vector< std::string > phoLooseTightTrigEffVsVars_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
std::vector< std::string > phoTrigTPEffVsVars_
std::vector< std::string > eleTightLooseTrigNames_
std::vector< std::string > phoN1EffVars_
std::vector< std::string > eleHLTvOfflineVars_
std::vector< std::string > eleTrigTPEffVsVars_
void createSingleEffHists(const std::string &filterName, const std::string &baseName, const std::string &region, const std::vector< std::string > &varNames, DQMStore::IBooker &, DQMStore::IGetter &)
void createLooseTightTrigEff(const std::vector< std::string > &tightLooseTrigNames, const std::string &region, const std::vector< std::string > &vsVarNames, const std::string &objName, DQMStore::IBooker &, DQMStore::IGetter &)
std::vector< std::string > phoEffTags_
std::vector< std::string > phoSingleEffVars_
void createHLTvsOfflineHists(const std::string &filterName, const std::string &baseName, const std::string &region, const std::vector< std::string > &varNames, DQMStore::IBooker &, DQMStore::IGetter &)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:276
void createTrigTagProbeEffHists2Leg(const std::string &filterNameLeg1, const std::string &filterNameLeg2, const std::string &region, const std::vector< std::string > &vsVarNames, const std::string &objName, DQMStore::IBooker &, DQMStore::IGetter &)
std::vector< std::string > eleN1EffVars_
std::vector< std::string > phoTightLooseTrigNames_
std::vector< std::string > phoHLTvOfflineVars_
std::vector< std::string > phoHLTFilterNames_
std::vector< std::string > eleLooseTightTrigEffVsVars_
void createN1EffHists(const std::string &filterName, const std::string &baseName, const std::string &region, const std::vector< std::string > &varNames, DQMStore::IBooker &, DQMStore::IGetter &)
std::vector< std::string > eleEffTags_
std::vector< std::string > eleHLTFilterNames2Leg_
std::vector< std::string > eleSingleEffVars_

Member Data Documentation

std::string EgHLTOfflineClient::dirName_
private
std::vector<std::string> EgHLTOfflineClient::eleEffTags_
private

Definition at line 53 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::eleHLTFilterNames2Leg_
private

Definition at line 44 of file EgHLTOfflineClient.h.

Referenced by beginRun(), EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::eleHLTFilterNames_
private

Definition at line 43 of file EgHLTOfflineClient.h.

Referenced by beginRun(), EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::eleHLTvOfflineVars_
private

Definition at line 64 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::eleLooseTightTrigEffVsVars_
private

Definition at line 61 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::eleN1EffVars_
private

Definition at line 51 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::eleSingleEffVars_
private

Definition at line 52 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::eleTightLooseTrigNames_
private

Definition at line 45 of file EgHLTOfflineClient.h.

Referenced by beginRun(), EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::eleTrigTPEffVsVars_
private

Definition at line 59 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

bool EgHLTOfflineClient::filterInactiveTriggers_
private

Definition at line 71 of file EgHLTOfflineClient.h.

Referenced by beginRun(), and EgHLTOfflineClient().

std::string EgHLTOfflineClient::hltTag_
private

Definition at line 73 of file EgHLTOfflineClient.h.

Referenced by beginRun(), and EgHLTOfflineClient().

bool EgHLTOfflineClient::isSetup_
private

Definition at line 72 of file EgHLTOfflineClient.h.

Referenced by beginRun().

std::vector<std::string> EgHLTOfflineClient::phoEffTags_
private

Definition at line 57 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::phoHLTFilterNames2Leg_
private

Definition at line 47 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient().

std::vector<std::string> EgHLTOfflineClient::phoHLTFilterNames_
private

Definition at line 46 of file EgHLTOfflineClient.h.

Referenced by beginRun(), EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::phoHLTvOfflineVars_
private

Definition at line 65 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::phoLooseTightTrigEffVsVars_
private

Definition at line 62 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::phoN1EffVars_
private

Definition at line 55 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::phoSingleEffVars_
private

Definition at line 56 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::phoTightLooseTrigNames_
private

Definition at line 48 of file EgHLTOfflineClient.h.

Referenced by beginRun(), EgHLTOfflineClient(), and runClient_().

std::vector<std::string> EgHLTOfflineClient::phoTrigTPEffVsVars_
private

Definition at line 60 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient(), and runClient_().

bool EgHLTOfflineClient::runClientEndJob_
private

Definition at line 69 of file EgHLTOfflineClient.h.

Referenced by dqmEndJob(), and EgHLTOfflineClient().

bool EgHLTOfflineClient::runClientEndLumiBlock_
private

Definition at line 67 of file EgHLTOfflineClient.h.

Referenced by dqmEndLuminosityBlock(), and EgHLTOfflineClient().

bool EgHLTOfflineClient::runClientEndRun_
private

Definition at line 68 of file EgHLTOfflineClient.h.

Referenced by EgHLTOfflineClient().