CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
TrackEfficiencyClient Class Reference

#include <DQM/TrackingMonitor/interface/TrackEfficiencyClient.h>

Inheritance diagram for TrackEfficiencyClient:
DQMEDHarvester edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 TrackEfficiencyClient (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~TrackEfficiencyClient () override
 Destructor. More...
 
- Public Member Functions inherited from DQMEDHarvester
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
void beginJob () override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &) override
 
virtual void dqmAnalyze (DQMStore::IBooker &, DQMStore::IGetter &, edm::Event const &, edm::EventSetup const &)
 
 DQMEDHarvester (edm::ParameterSet const &iConfig)
 
 DQMEDHarvester ()
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmEndRun (DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final
 
void endProcessBlockProduce (edm::ProcessBlock &) final
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &es) final
 
 ~DQMEDHarvester () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Member Functions

void beginJob (void) override
 BeginJob. More...
 
void beginRun (edm::Run const &run, edm::EventSetup const &eSetup) override
 BeginRun. More...
 
void dqmEndJob (DQMStore::IBooker &ibooker_, DQMStore::IGetter &igetter_) override
 EndJob. More...
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Private Member Functions

void bookMEs (DQMStore::IBooker &ibooker_)
 book MEs More...
 

Private Attributes

std::string algoName_
 
edm::ParameterSet conf_
 
MonitorElementeffCompatibleLayers
 
MonitorElementeffD0
 
MonitorElementeffEta
 
MonitorElementeffPhi
 
MonitorElementeffPtPhiHighPt
 
MonitorElementeffPtPhiLowPt
 
MonitorElementeffX
 
MonitorElementeffY
 
MonitorElementeffZ
 
std::string FolderName_
 
std::string histName
 
bool trackEfficiency_
 

Additional Inherited Members

- Public Types inherited from DQMEDHarvester
typedef dqm::harvesting::DQMStore DQMStore
 
typedef dqm::harvesting::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Attributes inherited from DQMEDHarvester
DQMStoredqmstore_
 
edm::GetterOfProducts< DQMTokenjobmegetter_
 
edm::EDPutTokenT< DQMTokenjobToken_
 
edm::GetterOfProducts< DQMTokenlumimegetter_
 
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::GetterOfProducts< DQMTokenrunmegetter_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

DQM class to compute the tracking efficiency

Definition at line 28 of file TrackEfficiencyClient.h.

Constructor & Destructor Documentation

◆ TrackEfficiencyClient()

TrackEfficiencyClient::TrackEfficiencyClient ( const edm::ParameterSet ps)

Constructor.

Definition at line 13 of file TrackEfficiencyClient.cc.

References algoName_, conf_, FolderName_, edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and trackEfficiency_.

15 {
16  edm::LogInfo("TrackEfficiencyClient") << "TrackEfficiencyClient::Deleting TrackEfficiencyClient ";
17 
18  FolderName_ = iConfig.getParameter<std::string>("FolderName");
19  algoName_ = iConfig.getParameter<std::string>("AlgoName");
20  trackEfficiency_ = iConfig.getParameter<bool>("trackEfficiency");
21 
22  conf_ = iConfig;
23 }
Log< level::Info, false > LogInfo

◆ ~TrackEfficiencyClient()

TrackEfficiencyClient::~TrackEfficiencyClient ( )
override

Destructor.

Definition at line 26 of file TrackEfficiencyClient.cc.

28 {
29  edm::LogInfo("TrackEfficiencyClient") << "TrackEfficiencyClient::Deleting TrackEfficiencyClient ";
30 }
Log< level::Info, false > LogInfo

Member Function Documentation

◆ beginJob()

void TrackEfficiencyClient::beginJob ( void  )
overrideprotectedvirtual

BeginJob.

Reimplemented from edm::one::EDProducerBase.

Definition at line 33 of file TrackEfficiencyClient.cc.

35 {
36  edm::LogInfo("TrackEfficiencyClient") << "TrackEfficiencyClient::beginJob done";
37 }
Log< level::Info, false > LogInfo

◆ beginRun()

void TrackEfficiencyClient::beginRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
overrideprotected

BeginRun.

Definition at line 40 of file TrackEfficiencyClient.cc.

42 {
43  edm::LogInfo("TrackEfficiencyClient") << "TrackEfficiencyClient:: Begining of Run";
44 }
Log< level::Info, false > LogInfo

◆ bookMEs()

void TrackEfficiencyClient::bookMEs ( DQMStore::IBooker ibooker_)
private

book MEs

Definition at line 47 of file TrackEfficiencyClient.cc.

References algoName_, dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), conf_, effCompatibleLayers, TrackEfficiencyClient_cfi::effCompatibleLayersBin, TrackEfficiencyClient_cfi::effCompatibleLayersMax, TrackEfficiencyClient_cfi::effCompatibleLayersMin, effD0, TrackEfficiencyClient_cfi::effD0Bin, TrackEfficiencyClient_cfi::effD0Max, TrackEfficiencyClient_cfi::effD0Min, effEta, TrackEfficiencyClient_cfi::effEtaBin, TrackEfficiencyClient_cfi::effEtaMax, TrackEfficiencyClient_cfi::effEtaMin, effPhi, TrackEfficiencyClient_cfi::effPhiBin, TrackEfficiencyClient_cfi::effPhiMax, TrackEfficiencyClient_cfi::effPhiMin, effPtPhiHighPt, effPtPhiLowPt, effX, TrackEfficiencyClient_cfi::effXBin, TrackEfficiencyClient_cfi::effXMax, TrackEfficiencyClient_cfi::effXMin, effY, TrackEfficiencyClient_cfi::effYBin, TrackEfficiencyClient_cfi::effYMax, TrackEfficiencyClient_cfi::effYMin, effZ, TrackEfficiencyClient_cfi::effZBin, TrackEfficiencyClient_cfi::effZMax, TrackEfficiencyClient_cfi::effZMin, dqm::impl::MonitorElement::enableSumw2(), FolderName_, edm::ParameterSet::getParameter(), dqm::legacy::MonitorElement::getTH1F(), dqm::legacy::MonitorElement::getTH2F(), histName, dqm::impl::MonitorElement::setAxisTitle(), and dqm::implementation::NavigatorBase::setCurrentFolder().

Referenced by dqmEndJob().

49 {
50  ibooker_.setCurrentFolder(FolderName_);
51 
52  //
53  int effXBin = conf_.getParameter<int>("effXBin");
54  double effXMin = conf_.getParameter<double>("effXMin");
55  double effXMax = conf_.getParameter<double>("effXMax");
56 
57  histName = "effX_";
59  if (effX->getTH1F())
60  effX->enableSumw2();
61  effX->setAxisTitle("");
62 
63  //
64  int effYBin = conf_.getParameter<int>("effYBin");
65  double effYMin = conf_.getParameter<double>("effYMin");
66  double effYMax = conf_.getParameter<double>("effYMax");
67 
68  histName = "effY_";
70  if (effY->getTH1F())
71  effY->enableSumw2();
72  effY->setAxisTitle("");
73 
74  //
75  int effZBin = conf_.getParameter<int>("effZBin");
76  double effZMin = conf_.getParameter<double>("effZMin");
77  double effZMax = conf_.getParameter<double>("effZMax");
78 
79  histName = "effZ_";
81  if (effZ->getTH1F())
82  effZ->enableSumw2();
83  effZ->setAxisTitle("");
84 
85  //
86  int effEtaBin = conf_.getParameter<int>("effEtaBin");
87  double effEtaMin = conf_.getParameter<double>("effEtaMin");
88  double effEtaMax = conf_.getParameter<double>("effEtaMax");
89 
90  histName = "effEta_";
92  if (effEta->getTH1F())
94  effEta->setAxisTitle("");
95 
96  //
97  int effPhiBin = conf_.getParameter<int>("effPhiBin");
98  double effPhiMin = conf_.getParameter<double>("effPhiMin");
99  double effPhiMax = conf_.getParameter<double>("effPhiMax");
100 
101  histName = "effPhi_";
103  if (effPhi->getTH1F())
104  effPhi->enableSumw2();
105  effPhi->setAxisTitle("");
106 
107  //
108  int effD0Bin = conf_.getParameter<int>("effD0Bin");
109  double effD0Min = conf_.getParameter<double>("effD0Min");
110  double effD0Max = conf_.getParameter<double>("effD0Max");
111 
112  histName = "effD0_";
114  if (effD0->getTH1F())
115  effD0->enableSumw2();
116  effD0->setAxisTitle("");
117 
118  //
119  int effCompatibleLayersBin = conf_.getParameter<int>("effCompatibleLayersBin");
120  double effCompatibleLayersMin = conf_.getParameter<double>("effCompatibleLayersMin");
121  double effCompatibleLayersMax = conf_.getParameter<double>("effCompatibleLayersMax");
122 
123  histName = "effCompatibleLayers_";
132 
133  histName = "MuonEffPtPhi_LowPt";
134  effPtPhiLowPt = ibooker_.book2D(histName + algoName_, histName + algoName_, 20, -2.4, 2.4, 20, -3.25, 3.25);
135  if (effPtPhiLowPt->getTH2F())
138 
139  histName = "MuonEffPtPhi_HighPt";
140  effPtPhiHighPt = ibooker_.book2D(histName + algoName_, histName + algoName_, 20, -2.4, 2.4, 20, -3.25, 3.25);
141  if (effPtPhiHighPt->getTH2F())
144 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
MonitorElement * effPtPhiHighPt
MonitorElement * effCompatibleLayers
virtual TH2F * getTH2F() const
virtual TH1F * getTH1F() const
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:212
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
MonitorElement * effPtPhiLowPt
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)

◆ dqmEndJob()

void TrackEfficiencyClient::dqmEndJob ( DQMStore::IBooker ibooker_,
DQMStore::IGetter igetter_ 
)
overrideprotectedvirtual

EndJob.

Implements DQMEDHarvester.

Definition at line 147 of file TrackEfficiencyClient.cc.

References algoName_, bookMEs(), dqm::implementation::NavigatorBase::cd(), effCompatibleLayers, effD0, effEta, effPhi, effPtPhiHighPt, effPtPhiLowPt, effX, effY, effZ, FolderName_, dqm::implementation::IGetter::get(), dqm::implementation::IGetter::getSubdirs(), dqm::legacy::MonitorElement::getTH1F(), dqm::legacy::MonitorElement::getTH2F(), histName, HLTObjectMonitor_cfi::muonEta, HLTObjectMonitor_cfi::muonPhi, trackEfficiency_, reco::btau::trackEta, and reco::btau::trackPhi.

149 {
150  edm::LogInfo("TrackEfficiencyClient") << "TrackEfficiencyClient::endLuminosityBlock";
151 
152  bookMEs(ibooker_);
153  FolderName_ = "Tracking/TrackParameters/TrackEfficiency";
154  std::vector<std::string> s1 = igetter_.getSubdirs();
155 
156  igetter_.cd("Tracking");
157 
158  histName = "/trackX_";
159  MonitorElement* trackX = igetter_.get(FolderName_ + histName + algoName_);
160 
161  histName = "/muonX_";
162  MonitorElement* muonX = igetter_.get(FolderName_ + histName + algoName_);
163 
164  histName = "/trackY_";
165  MonitorElement* trackY = igetter_.get(FolderName_ + histName + algoName_);
166  histName = "/muonY_";
167  MonitorElement* muonY = igetter_.get(FolderName_ + histName + algoName_);
168 
169  histName = "/trackZ_";
170  MonitorElement* trackZ = igetter_.get(FolderName_ + histName + algoName_);
171  histName = "/muonZ_";
172  MonitorElement* muonZ = igetter_.get(FolderName_ + histName + algoName_);
173 
174  histName = "/trackEta_";
176  histName = "/muonEta_";
178 
179  histName = "/trackPhi_";
181  histName = "/muonPhi_";
183 
184  histName = "/trackD0_";
185  MonitorElement* trackD0 = igetter_.get(FolderName_ + histName + algoName_);
186  histName = "/muonD0_";
187  MonitorElement* muonD0 = igetter_.get(FolderName_ + histName + algoName_);
188 
189  histName = "/trackCompatibleLayers_";
190  MonitorElement* trackCompatibleLayers = igetter_.get(FolderName_ + histName + algoName_);
191  histName = "/muonCompatibleLayers_";
192  MonitorElement* muonCompatibleLayers = igetter_.get(FolderName_ + histName + algoName_);
193 
194  histName = "/StandaloneMuonPtEtaPhi_LowPt_";
195  MonitorElement* StandAloneMuonPtEtaPhiLowPt = igetter_.get(FolderName_ + histName + algoName_);
196  histName = "/GlobalMuonPtEtaPhi_LowPt_";
197  MonitorElement* GlobalMuonPtEtaPhiLowPt = igetter_.get(FolderName_ + histName + algoName_);
198 
199  histName = "/StandaloneMuonPtEtaPhi_HighPt_";
200  MonitorElement* StandAloneMuonPtEtaPhiHighPt = igetter_.get(FolderName_ + histName + algoName_);
201  histName = "/GlobalMuonPtEtaPhi_HighPt_";
202  MonitorElement* GlobalMuonPtEtaPhiHighPt = igetter_.get(FolderName_ + histName + algoName_);
203 
204  if (StandAloneMuonPtEtaPhiLowPt && GlobalMuonPtEtaPhiLowPt && effPtPhiLowPt) {
205  if (StandAloneMuonPtEtaPhiLowPt->getTH2F() && GlobalMuonPtEtaPhiLowPt->getTH2F() && effPtPhiLowPt->getTH2F()) {
206  effPtPhiLowPt->getTH2F()->Divide(
207  GlobalMuonPtEtaPhiLowPt->getTH2F(), StandAloneMuonPtEtaPhiLowPt->getTH2F(), 1., 1., "");
208  }
209  }
210  if (StandAloneMuonPtEtaPhiHighPt && GlobalMuonPtEtaPhiHighPt && effPtPhiHighPt) {
211  if (StandAloneMuonPtEtaPhiHighPt->getTH2F() && GlobalMuonPtEtaPhiHighPt->getTH2F() && effPtPhiHighPt->getTH2F()) {
212  effPtPhiHighPt->getTH2F()->Divide(
213  GlobalMuonPtEtaPhiHighPt->getTH2F(), StandAloneMuonPtEtaPhiHighPt->getTH2F(), 1., 1., "");
214  }
215  }
216  if (trackX && muonX && trackY && muonY && trackZ && muonZ && trackEta && muonEta && trackPhi && muonPhi && trackD0 &&
217  muonD0 && trackCompatibleLayers && muonCompatibleLayers) { // && StandAloneMuonPtEtaPhi && GlobalMuonPtEtaPhi){
218 
219  if (trackEfficiency_) {
220  if (effX->getTH1F() && trackX->getTH1F() && muonX->getTH1F()) {
221  effX->getTH1F()->Divide(trackX->getTH1F(), muonX->getTH1F(), 1., 1., "");
222  }
223  if (effY->getTH1F() && trackY->getTH1F() && muonY->getTH1F()) {
224  effY->getTH1F()->Divide(trackY->getTH1F(), muonY->getTH1F(), 1., 1., "");
225  }
226  if (effZ->getTH1F() && trackZ->getTH1F() && muonZ->getTH1F()) {
227  effZ->getTH1F()->Divide(trackZ->getTH1F(), muonZ->getTH1F(), 1., 1., "");
228  }
229  if (effEta->getTH1F() && trackEta->getTH1F() && muonEta->getTH1F()) {
230  effEta->getTH1F()->Divide(trackEta->getTH1F(), muonEta->getTH1F(), 1., 1., "");
231  }
232  if (effPhi->getTH1F() && trackPhi->getTH1F() && muonPhi->getTH1F()) {
233  effPhi->getTH1F()->Divide(trackPhi->getTH1F(), muonPhi->getTH1F(), 1., 1., "");
234  }
235  if (effD0->getTH1F() && trackD0->getTH1F() && muonD0->getTH1F()) {
236  effD0->getTH1F()->Divide(trackD0->getTH1F(), muonD0->getTH1F(), 1., 1., "");
237  }
238  if (effCompatibleLayers->getTH1F() && trackCompatibleLayers->getTH1F() && muonCompatibleLayers->getTH1F()) {
239  effCompatibleLayers->getTH1F()->Divide(
240  trackCompatibleLayers->getTH1F(), muonCompatibleLayers->getTH1F(), 1., 1., "");
241  }
242  } else {
243  if (effX->getTH1F() && trackX->getTH1F() && muonX->getTH1F()) {
244  effX->getTH1F()->Divide(muonX->getTH1F(), trackX->getTH1F(), 1., 1., "");
245  }
246  if (effY->getTH1F() && trackY->getTH1F() && muonY->getTH1F()) {
247  effY->getTH1F()->Divide(muonY->getTH1F(), trackY->getTH1F(), 1., 1., "");
248  }
249  if (effZ->getTH1F() && trackZ->getTH1F() && muonZ->getTH1F()) {
250  effZ->getTH1F()->Divide(muonZ->getTH1F(), trackZ->getTH1F(), 1., 1., "");
251  }
252  if (effEta->getTH1F() && trackEta->getTH1F() && muonEta->getTH1F()) {
253  effEta->getTH1F()->Divide(muonEta->getTH1F(), trackEta->getTH1F(), 1., 1., "");
254  }
255  if (effPhi->getTH1F() && trackPhi->getTH1F() && muonPhi->getTH1F()) {
256  effPhi->getTH1F()->Divide(muonPhi->getTH1F(), trackPhi->getTH1F(), 1., 1., "");
257  }
258  if (effD0->getTH1F() && trackD0->getTH1F() && muonD0->getTH1F()) {
259  effD0->getTH1F()->Divide(muonD0->getTH1F(), trackD0->getTH1F(), 1., 1., "");
260  }
261  }
262  }
263 }
void bookMEs(DQMStore::IBooker &ibooker_)
book MEs
MonitorElement * effPtPhiHighPt
MonitorElement * effCompatibleLayers
virtual TH2F * getTH2F() const
Log< level::Info, false > LogInfo
virtual TH1F * getTH1F() const
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:690
MonitorElement * effPtPhiLowPt
virtual DQM_DEPRECATED std::vector< std::string > getSubdirs() const
Definition: DQMStore.cc:717

Member Data Documentation

◆ algoName_

std::string TrackEfficiencyClient::algoName_
private

Definition at line 56 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), dqmEndJob(), and TrackEfficiencyClient().

◆ conf_

edm::ParameterSet TrackEfficiencyClient::conf_
private

Definition at line 50 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), and TrackEfficiencyClient().

◆ effCompatibleLayers

MonitorElement* TrackEfficiencyClient::effCompatibleLayers
private

Definition at line 65 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), and dqmEndJob().

◆ effD0

MonitorElement* TrackEfficiencyClient::effD0
private

Definition at line 64 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), and dqmEndJob().

◆ effEta

MonitorElement* TrackEfficiencyClient::effEta
private

Definition at line 62 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), and dqmEndJob().

◆ effPhi

MonitorElement* TrackEfficiencyClient::effPhi
private

Definition at line 63 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), and dqmEndJob().

◆ effPtPhiHighPt

MonitorElement * TrackEfficiencyClient::effPtPhiHighPt
private

Definition at line 66 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), and dqmEndJob().

◆ effPtPhiLowPt

MonitorElement* TrackEfficiencyClient::effPtPhiLowPt
private

Definition at line 66 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), and dqmEndJob().

◆ effX

MonitorElement* TrackEfficiencyClient::effX
private

Definition at line 59 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), and dqmEndJob().

◆ effY

MonitorElement* TrackEfficiencyClient::effY
private

Definition at line 60 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), and dqmEndJob().

◆ effZ

MonitorElement* TrackEfficiencyClient::effZ
private

Definition at line 61 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), and dqmEndJob().

◆ FolderName_

std::string TrackEfficiencyClient::FolderName_
private

Definition at line 57 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), dqmEndJob(), and TrackEfficiencyClient().

◆ histName

std::string TrackEfficiencyClient::histName
private

Definition at line 55 of file TrackEfficiencyClient.h.

Referenced by bookMEs(), and dqmEndJob().

◆ trackEfficiency_

bool TrackEfficiencyClient::trackEfficiency_
private

Definition at line 52 of file TrackEfficiencyClient.h.

Referenced by dqmEndJob(), and TrackEfficiencyClient().