CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
ZEEDetails Class Reference
Inheritance diagram for ZEEDetails:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

 ZEEDetails (const edm::ParameterSet &)
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
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
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 

Protected Member Functions

void analyze (edm::Event const &iEvent, edm::EventSetup const &iSetup) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Private Attributes

const edm::InputTag bsTag_
 
const edm::EDGetTokenT< reco::BeamSpotbsToken_
 
const bool doPUCorrection_
 
const edm::InputTag electronTag_
 
const edm::EDGetTokenT< reco::GsfElectronCollectionelectronToken_
 
MonitorElementEoverP_
 
const std::string folderName_
 
const bool isMC_
 
const double maxD0_
 
const double maxDeltaEtaInEB_
 
const double maxDeltaEtaInEE_
 
const double maxDeltaPhiInEB_
 
const double maxDeltaPhiInEE_
 
const double maxDz_
 
const double maxEta_
 
const double maxHOEEB_
 
const double maxHOEEE_
 
const double maxInvMass_
 
const double maxIso_
 
const double maxNormChi2_
 
const double maxSigmaiEiEEB_
 
const double maxSigmaiEiEEE_
 
const double minInvMass_
 
const int minPixelHits_
 
const double minPt_
 
const double minPtHighest_
 
const int minStripHits_
 
const std::string moduleName_
 
const std::string puScaleFactorFile_
 
const edm::InputTag puSummaryTag_
 
const edm::EDGetTokenT< std::vector< PileupSummaryInfo > > puSummaryToken_
 
const std::string trackQuality_
 
const edm::InputTag vertexTag_
 
const edm::EDGetTokenT< reco::VertexCollectionvertexToken_
 
std::vector< float > vpu_
 
std::vector< float > vtrack_
 
MonitorElementZInvMass_
 
MonitorElementZpt_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 40 of file ZEEDetails.cc.

Constructor & Destructor Documentation

◆ ZEEDetails()

ZEEDetails::ZEEDetails ( const edm::ParameterSet ps)

Definition at line 127 of file ZEEDetails.cc.

References doPUCorrection_, DeadROC_duringRun::f1, mps_fire::i, isMC_, puScaleFactorFile_, and vpu_.

128  : moduleName_(ps.getUntrackedParameter<std::string>("moduleName", "ZEEDetails")),
129  folderName_(ps.getUntrackedParameter<std::string>("folderName", "ElectronTracks")),
130  electronTag_(ps.getUntrackedParameter<edm::InputTag>("electronInputTag", edm::InputTag("gedGsfElectrons"))),
131  bsTag_(ps.getUntrackedParameter<edm::InputTag>("offlineBeamSpot", edm::InputTag("offlineBeamSpot"))),
132  puSummaryTag_(ps.getUntrackedParameter<edm::InputTag>("puTag", edm::InputTag("addPileupInfo"))),
133  vertexTag_(ps.getUntrackedParameter<edm::InputTag>("vertexTag", edm::InputTag("offlinePrimaryVertices"))),
134  electronToken_(consumes<reco::GsfElectronCollection>(electronTag_)),
135  bsToken_(consumes<reco::BeamSpot>(bsTag_)),
136  puSummaryToken_(consumes<std::vector<PileupSummaryInfo> >(puSummaryTag_)),
137  vertexToken_(consumes<reco::VertexCollection>(vertexTag_)),
138  maxEta_(ps.getUntrackedParameter<double>("maxEta", 2.4)),
139  minPt_(ps.getUntrackedParameter<double>("minPt", 5)),
140  maxDeltaPhiInEB_(ps.getUntrackedParameter<double>("maxDeltaPhiInEB", 0.15)),
141  maxDeltaEtaInEB_(ps.getUntrackedParameter<double>("maxDeltaEtaInEB", 0.007)),
142  maxHOEEB_(ps.getUntrackedParameter<double>("maxHOEEB", 0.12)),
143  maxSigmaiEiEEB_(ps.getUntrackedParameter<double>("maxSigmaiEiEEB", 0.01)),
144  maxDeltaPhiInEE_(ps.getUntrackedParameter<double>("maxDeltaPhiInEE", 0.1)),
145  maxDeltaEtaInEE_(ps.getUntrackedParameter<double>("maxDeltaEtaInEE", 0.009)),
146  maxHOEEE_(ps.getUntrackedParameter<double>("maxHOEEB_", .10)),
147  maxSigmaiEiEEE_(ps.getUntrackedParameter<double>("maxSigmaiEiEEE", 0.03)),
148  maxNormChi2_(ps.getUntrackedParameter<double>("maxNormChi2", 10)),
149  maxD0_(ps.getUntrackedParameter<double>("maxD0", 0.02)),
150  maxDz_(ps.getUntrackedParameter<double>("maxDz", 20.)),
151  minPixelHits_(ps.getUntrackedParameter<uint32_t>("minPixelHits", 1)),
152  minStripHits_(ps.getUntrackedParameter<uint32_t>("minStripHits", 8)),
153  maxIso_(ps.getUntrackedParameter<double>("maxIso", 0.3)),
154  minPtHighest_(ps.getUntrackedParameter<double>("minPtHighest", 24)),
155  minInvMass_(ps.getUntrackedParameter<double>("minInvMass", 75)),
156  maxInvMass_(ps.getUntrackedParameter<double>("maxInvMass", 105)),
157  trackQuality_(ps.getUntrackedParameter<std::string>("trackQuality", "highPurity")),
158  isMC_(ps.getUntrackedParameter<bool>("isMC", false)),
159  doPUCorrection_(ps.getUntrackedParameter<bool>("doPUCorrection", false)),
160  puScaleFactorFile_(ps.getUntrackedParameter<std::string>("puScaleFactorFile", "PileupScaleFactor.root")) {
161  if (isMC_ && doPUCorrection_) {
162  vpu_.clear();
163  TFile* f1 = TFile::Open(puScaleFactorFile_.c_str());
164  TH1F* h1 = dynamic_cast<TH1F*>(f1->Get("pileupweight"));
165  for (int i = 1; i <= h1->GetNbinsX(); ++i)
166  vpu_.push_back(h1->GetBinContent(i));
167  f1->Close();
168  }
169 }
const edm::InputTag puSummaryTag_
Definition: ZEEDetails.cc:55
const bool isMC_
Definition: ZEEDetails.cc:84
const double maxHOEEB_
Definition: ZEEDetails.cc:66
const std::string folderName_
Definition: ZEEDetails.cc:51
const std::string trackQuality_
Definition: ZEEDetails.cc:81
const edm::InputTag electronTag_
Definition: ZEEDetails.cc:53
const double maxD0_
Definition: ZEEDetails.cc:73
std::vector< float > vpu_
Definition: ZEEDetails.cc:82
const double maxDeltaPhiInEE_
Definition: ZEEDetails.cc:68
const int minPixelHits_
Definition: ZEEDetails.cc:75
T getUntrackedParameter(std::string const &, T const &) const
const bool doPUCorrection_
Definition: ZEEDetails.cc:85
const edm::EDGetTokenT< reco::BeamSpot > bsToken_
Definition: ZEEDetails.cc:58
const std::string moduleName_
Definition: ZEEDetails.cc:50
const edm::EDGetTokenT< std::vector< PileupSummaryInfo > > puSummaryToken_
Definition: ZEEDetails.cc:59
const double maxDeltaEtaInEB_
Definition: ZEEDetails.cc:65
const double minPt_
Definition: ZEEDetails.cc:63
const double minInvMass_
Definition: ZEEDetails.cc:79
const edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
Definition: ZEEDetails.cc:57
const double maxDz_
Definition: ZEEDetails.cc:74
const double maxDeltaEtaInEE_
Definition: ZEEDetails.cc:69
const int minStripHits_
Definition: ZEEDetails.cc:76
const double maxIso_
Definition: ZEEDetails.cc:77
const double maxNormChi2_
Definition: ZEEDetails.cc:72
const double maxDeltaPhiInEB_
Definition: ZEEDetails.cc:64
const edm::InputTag vertexTag_
Definition: ZEEDetails.cc:56
const double maxInvMass_
Definition: ZEEDetails.cc:80
const double maxEta_
Definition: ZEEDetails.cc:62
const double maxHOEEE_
Definition: ZEEDetails.cc:70
const std::string puScaleFactorFile_
Definition: ZEEDetails.cc:86
const edm::EDGetTokenT< reco::VertexCollection > vertexToken_
Definition: ZEEDetails.cc:60
const double maxSigmaiEiEEE_
Definition: ZEEDetails.cc:71
const double minPtHighest_
Definition: ZEEDetails.cc:78
const double maxSigmaiEiEEB_
Definition: ZEEDetails.cc:67
const edm::InputTag bsTag_
Definition: ZEEDetails.cc:54

Member Function Documentation

◆ analyze()

void ZEEDetails::analyze ( edm::Event const &  iEvent,
edm::EventSetup const &  iSetup 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 179 of file ZEEDetails.cc.

References pwdgSkimBPark_cfi::beamSpot, bsTag_, bsToken_, nano_mu_digi_cff::bx, nano_mu_local_reco_cff::chi2, electronIdCutBasedExt_cfi::deltaEtaIn, electronIdCutBasedExt_cfi::deltaPhiIn, doPUCorrection_, electronTag_, electronToken_, EoverP_, PVValHelper::eta, dqm::impl::MonitorElement::Fill(), EgHLTOffHistBins_cfi::hOverE, Exhume::I, iEvent, edm::Ref< C, T, F >::isNonnull(), edm::HandleBase::isValid(), SiStripPI::max, maxD0_, maxDeltaEtaInEB_, maxDeltaEtaInEE_, maxDeltaPhiInEB_, maxDeltaPhiInEE_, maxHOEEB_, maxHOEEE_, maxInvMass_, maxIso_, maxNormChi2_, maxSigmaiEiEEB_, maxSigmaiEiEEE_, minInvMass_, minPixelHits_, minPt_, minPtHighest_, minStripHits_, ndof, reco::HitPattern::numberOfValidPixelHits(), reco::HitPattern::numberOfValidStripHits(), L1TEGammaOffline_cfi::nVertex, phi, puSummaryTag_, puSummaryToken_, reco::TrackBase::qualityByName(), reco::GsfElectron::PflowIsolationVariables::sumChargedHadronPt, reco::GsfElectron::PflowIsolationVariables::sumNeutralHadronEt, reco::GsfElectron::PflowIsolationVariables::sumPhotonEt, reco::GsfElectron::PflowIsolationVariables::sumPUPt, trackQuality_, findQualityFiles::v, vertexTag_, vertexToken_, vpu_, ZInvMass_, Zpt_, and gpuVertexFinder::zv.

179  {
180  std::vector<TLorentzVector> list;
181  std::vector<int> chrgeList;
182  std::vector<reco::GsfElectron> finalelectrons;
183 
184  // Read Electron Collection
186  iEvent.getByToken(electronToken_, electronColl);
187 
189  iEvent.getByToken(bsToken_, beamSpot);
190 
191  if (electronColl.isValid()) {
192  for (auto const& ele : *electronColl) {
193  if (!ele.ecalDriven())
194  continue;
195  if (ele.pt() < minPt_)
196  continue;
197  // set a max Eta cut
198  if (!(ele.isEB() || ele.isEE()))
199  continue;
200 
201  double hOverE = ele.hadronicOverEm();
202  double sigmaee = ele.sigmaIetaIeta();
203  double deltaPhiIn = ele.deltaPhiSuperClusterTrackAtVtx();
204  double deltaEtaIn = ele.deltaEtaSuperClusterTrackAtVtx();
205 
206  // separate cut for barrel and endcap
207  if (ele.isEB()) {
208  if (fabs(deltaPhiIn) >= maxDeltaPhiInEB_ && fabs(deltaEtaIn) >= maxDeltaEtaInEB_ && hOverE >= maxHOEEB_ &&
209  sigmaee >= maxSigmaiEiEEB_)
210  continue;
211  } else if (ele.isEE()) {
212  if (fabs(deltaPhiIn) >= maxDeltaPhiInEE_ && fabs(deltaEtaIn) >= maxDeltaEtaInEE_ && hOverE >= maxHOEEE_ &&
213  sigmaee >= maxSigmaiEiEEE_)
214  continue;
215  }
216 
217  reco::GsfTrackRef trk = ele.gsfTrack();
218  reco::TrackRef tk = ele.closestCtfTrackRef();
219  if (!trk.isNonnull())
220  continue; // only electrons with tracks
221  if (!tk.isNonnull())
222  continue;
223  double chi2 = trk->chi2();
224  double ndof = trk->ndof();
225  double chbyndof = (ndof > 0) ? chi2 / ndof : 0;
226  if (chbyndof >= maxNormChi2_)
227  continue;
228 
229  double trkd0 = trk->d0();
230  if (beamSpot.isValid()) {
231  trkd0 = -(trk->dxy(beamSpot->position()));
232  } else {
233  edm::LogError("ElectronTrackProducer") << "Error >> Failed to get BeamSpot for label: " << bsTag_;
234  }
235  if (std::fabs(trkd0) >= maxD0_)
236  continue;
237 
238  const reco::HitPattern& hitp = trk->hitPattern();
239  int nPixelHits = hitp.numberOfValidPixelHits();
240  if (nPixelHits < minPixelHits_)
241  continue;
242 
243  int nStripHits = hitp.numberOfValidStripHits();
244  if (nStripHits < minStripHits_)
245  continue;
246 
247  // DB corrected PF Isolation
248  reco::GsfElectron::PflowIsolationVariables pfIso = ele.pfIsolationVariables();
249  const float eiso =
250  pfIso.sumChargedHadronPt + std::max(0.0, pfIso.sumNeutralHadronEt + pfIso.sumPhotonEt - 0.5 * pfIso.sumPUPt);
251  if (eiso > maxIso_ * ele.pt())
252  continue;
253 
254  if (!tk->quality(reco::Track::qualityByName(trackQuality_)))
255  continue;
256 
257  TLorentzVector lv;
258  lv.SetPtEtaPhiE(ele.pt(), ele.eta(), ele.phi(), ele.energy());
259  list.push_back(lv);
260  chrgeList.push_back(ele.charge());
261  finalelectrons.push_back(ele);
262  }
263  } else {
264  edm::LogError("ElectronTrackProducer") << "Error >> Failed to get ElectronCollection for label: " << electronTag_;
265  }
266 
268  iEvent.getByToken(vertexToken_, vertexColl);
269  if (!vertexColl.isValid()) {
270  edm::LogError("DqmTrackStudy") << "Error! Failed to get reco::Vertex Collection, " << vertexTag_;
271  }
272  if (vertexColl->empty()) {
273  edm::LogError("DqmTrackStudy") << "No good vertex in the event!!";
274  return;
275  }
276 
277  // Access PU information
278  double wfac = 1.0; // for data
279  if (!iEvent.isRealData()) {
281  iEvent.getByToken(puSummaryToken_, PupInfo);
282 
283  if (PupInfo.isValid()) {
284  for (auto const& v : *PupInfo) {
285  int bx = v.getBunchCrossing();
286  if (bx == 0) {
287  int nVertex = (vertexColl.isValid() ? vertexColl->size() : 0);
288  if (doPUCorrection_) {
289  if (nVertex > -1 && nVertex < int(vpu_.size()))
290  wfac = vpu_.at(nVertex);
291  else
292  wfac = 0.0;
293  }
294  }
295  }
296  } else
297  edm::LogError("DqmTrackStudy") << "PUSummary for input tag: " << puSummaryTag_ << " not found!!";
298  }
299 
300  for (unsigned int I = 0; I != finalelectrons.size(); I++) {
301  EoverP_->Fill(finalelectrons[I].superCluster()->eta(),
302  finalelectrons[I].superCluster()->phi(),
303  finalelectrons[I].eEleClusterOverPout(),
304  wfac);
305  }
306 
307  if (list.size() >= 2) {
308  if (chrgeList[0] + chrgeList[1] == 0) {
309  if (list[0].Pt() >= minPtHighest_) {
310  TLorentzVector zv = list[0] + list[1];
311  if ((zv.M() >= minInvMass_) && (zv.M() <= maxInvMass_)) {
312  Zpt_->Fill(zv.Pt(), wfac);
313  ZInvMass_->Fill(zv.Mag(), wfac);
314  }
315  }
316  }
317  }
318 }
int numberOfValidPixelHits() const
Definition: HitPattern.h:831
const edm::InputTag puSummaryTag_
Definition: ZEEDetails.cc:55
const double maxHOEEB_
Definition: ZEEDetails.cc:66
float *__restrict__ zv
const std::string trackQuality_
Definition: ZEEDetails.cc:81
float sumPUPt
sum pt of charged Particles not from PV (for Pu corrections)
Definition: GsfElectron.h:670
const edm::InputTag electronTag_
Definition: ZEEDetails.cc:53
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
const double maxD0_
Definition: ZEEDetails.cc:73
std::vector< float > vpu_
Definition: ZEEDetails.cc:82
Log< level::Error, false > LogError
const double maxDeltaPhiInEE_
Definition: ZEEDetails.cc:68
const int minPixelHits_
Definition: ZEEDetails.cc:75
int numberOfValidStripHits() const
Definition: HitPattern.h:843
void Fill(long long x)
const bool doPUCorrection_
Definition: ZEEDetails.cc:85
const edm::EDGetTokenT< reco::BeamSpot > bsToken_
Definition: ZEEDetails.cc:58
const edm::EDGetTokenT< std::vector< PileupSummaryInfo > > puSummaryToken_
Definition: ZEEDetails.cc:59
int iEvent
Definition: GenABIO.cc:224
const double maxDeltaEtaInEB_
Definition: ZEEDetails.cc:65
const double minPt_
Definition: ZEEDetails.cc:63
const double minInvMass_
Definition: ZEEDetails.cc:79
const edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
Definition: ZEEDetails.cc:57
const double maxDeltaEtaInEE_
Definition: ZEEDetails.cc:69
float sumPhotonEt
sum pt of PF photons // old float photonIso ;
Definition: GsfElectron.h:665
const int minStripHits_
Definition: ZEEDetails.cc:76
const double maxIso_
Definition: ZEEDetails.cc:77
const std::complex< double > I
Definition: I.h:8
const double maxNormChi2_
Definition: ZEEDetails.cc:72
float sumNeutralHadronEt
sum pt of neutral hadrons // old float neutralHadronIso ;
Definition: GsfElectron.h:664
const double maxDeltaPhiInEB_
Definition: ZEEDetails.cc:64
const edm::InputTag vertexTag_
Definition: ZEEDetails.cc:56
const double maxInvMass_
Definition: ZEEDetails.cc:80
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126
const double maxHOEEE_
Definition: ZEEDetails.cc:70
bool isValid() const
Definition: HandleBase.h:70
const edm::EDGetTokenT< reco::VertexCollection > vertexToken_
Definition: ZEEDetails.cc:60
MonitorElement * Zpt_
Definition: ZEEDetails.cc:88
const double maxSigmaiEiEEE_
Definition: ZEEDetails.cc:71
const double minPtHighest_
Definition: ZEEDetails.cc:78
const double maxSigmaiEiEEB_
Definition: ZEEDetails.cc:67
MonitorElement * ZInvMass_
Definition: ZEEDetails.cc:89
float sumChargedHadronPt
sum-pt of charged Hadron // old float chargedHadronIso ;
Definition: GsfElectron.h:663
const edm::InputTag bsTag_
Definition: ZEEDetails.cc:54
MonitorElement * EoverP_
Definition: ZEEDetails.cc:90

◆ bookHistograms()

void ZEEDetails::bookHistograms ( DQMStore::IBooker ibook,
edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 171 of file ZEEDetails.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book3D(), EoverP_, folderName_, maxInvMass_, minInvMass_, moduleName_, dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, ZInvMass_, and Zpt_.

171  {
172  std::string currentFolder = moduleName_ + "/" + folderName_;
173  ibook.setCurrentFolder(currentFolder);
174  Zpt_ = ibook.book1D("Zpt", "Z-Boson p_{T}", 100, 0.0, 100.0);
175  ZInvMass_ = ibook.book1D("ZInvMass", "m_{ee}", 200, minInvMass_, maxInvMass_);
176  EoverP_ = ibook.book3D("EoverP", "EoverP", 48, -2.4, 2.4, 36, -3.2, 3.2, 100, 0, 10);
177 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
const std::string folderName_
Definition: ZEEDetails.cc:51
const std::string moduleName_
Definition: ZEEDetails.cc:50
const double minInvMass_
Definition: ZEEDetails.cc:79
const double maxInvMass_
Definition: ZEEDetails.cc:80
MonitorElement * Zpt_
Definition: ZEEDetails.cc:88
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 * ZInvMass_
Definition: ZEEDetails.cc:89
MonitorElement * book3D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, FUNC onbooking=NOOP())
Definition: DQMStore.h:367
MonitorElement * EoverP_
Definition: ZEEDetails.cc:90

◆ fillDescriptions()

void ZEEDetails::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 93 of file ZEEDetails.cc.

References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

93  {
95  desc.addUntracked<std::string>("moduleName", "ZEEDetails");
96  desc.addUntracked<std::string>("folderName", "ElectronTracks");
97  desc.addUntracked<edm::InputTag>("electronInputTag", edm::InputTag("gedGsfElectrons"));
98  desc.addUntracked<edm::InputTag>("offlineBeamSpot", edm::InputTag("offlineBeamSpot"));
99  desc.addUntracked<edm::InputTag>("puTag", edm::InputTag("addPileupInfo"));
100  desc.addUntracked<edm::InputTag>("vertexTag", edm::InputTag("offlinePrimaryVertices"));
101  desc.addUntracked<double>("maxEta", 2.4);
102  desc.addUntracked<double>("minPt", 5);
103  desc.addUntracked<double>("maxDeltaPhiInEB", 0.15);
104  desc.addUntracked<double>("maxDeltaEtaInEB", 0.007);
105  desc.addUntracked<double>("maxHOEEB", 0.12);
106  desc.addUntracked<double>("maxSigmaiEiEEB", 0.01);
107  desc.addUntracked<double>("maxDeltaPhiInEE", 0.1);
108  desc.addUntracked<double>("maxDeltaEtaInEE", 0.009);
109  desc.addUntracked<double>("maxHOEEB_", .10);
110  desc.addUntracked<double>("maxSigmaiEiEEE", 0.03);
111  desc.addUntracked<double>("maxNormChi2", 10);
112  desc.addUntracked<double>("maxD0", 0.02);
113  desc.addUntracked<double>("maxDz", 20.);
114  desc.addUntracked<uint32_t>("minPixelHits", 1);
115  desc.addUntracked<uint32_t>("minStripHits", 8);
116  desc.addUntracked<double>("maxIso", 0.3);
117  desc.addUntracked<double>("minPtHighest", 24);
118  desc.addUntracked<double>("minInvMass", 75);
119  desc.addUntracked<double>("maxInvMass", 105);
120  desc.addUntracked<std::string>("trackQuality", "highPurity");
121  desc.addUntracked<bool>("isMC", false);
122  desc.addUntracked<bool>("doPUCorrection", false);
123  desc.addUntracked<std::string>("puScaleFactorFile", "PileupScaleFactor.root");
124  descriptions.addWithDefaultLabel(desc);
125 }
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ bsTag_

const edm::InputTag ZEEDetails::bsTag_
private

Definition at line 54 of file ZEEDetails.cc.

Referenced by analyze().

◆ bsToken_

const edm::EDGetTokenT<reco::BeamSpot> ZEEDetails::bsToken_
private

Definition at line 58 of file ZEEDetails.cc.

Referenced by analyze().

◆ doPUCorrection_

const bool ZEEDetails::doPUCorrection_
private

Definition at line 85 of file ZEEDetails.cc.

Referenced by analyze(), and ZEEDetails().

◆ electronTag_

const edm::InputTag ZEEDetails::electronTag_
private

Definition at line 53 of file ZEEDetails.cc.

Referenced by analyze().

◆ electronToken_

const edm::EDGetTokenT<reco::GsfElectronCollection> ZEEDetails::electronToken_
private

Definition at line 57 of file ZEEDetails.cc.

Referenced by analyze().

◆ EoverP_

MonitorElement* ZEEDetails::EoverP_
private

Definition at line 90 of file ZEEDetails.cc.

Referenced by analyze(), and bookHistograms().

◆ folderName_

const std::string ZEEDetails::folderName_
private

Definition at line 51 of file ZEEDetails.cc.

Referenced by bookHistograms().

◆ isMC_

const bool ZEEDetails::isMC_
private

Definition at line 84 of file ZEEDetails.cc.

Referenced by ZEEDetails().

◆ maxD0_

const double ZEEDetails::maxD0_
private

Definition at line 73 of file ZEEDetails.cc.

Referenced by analyze().

◆ maxDeltaEtaInEB_

const double ZEEDetails::maxDeltaEtaInEB_
private

Definition at line 65 of file ZEEDetails.cc.

Referenced by analyze().

◆ maxDeltaEtaInEE_

const double ZEEDetails::maxDeltaEtaInEE_
private

Definition at line 69 of file ZEEDetails.cc.

Referenced by analyze().

◆ maxDeltaPhiInEB_

const double ZEEDetails::maxDeltaPhiInEB_
private

Definition at line 64 of file ZEEDetails.cc.

Referenced by analyze().

◆ maxDeltaPhiInEE_

const double ZEEDetails::maxDeltaPhiInEE_
private

Definition at line 68 of file ZEEDetails.cc.

Referenced by analyze().

◆ maxDz_

const double ZEEDetails::maxDz_
private

Definition at line 74 of file ZEEDetails.cc.

◆ maxEta_

const double ZEEDetails::maxEta_
private

Definition at line 62 of file ZEEDetails.cc.

◆ maxHOEEB_

const double ZEEDetails::maxHOEEB_
private

Definition at line 66 of file ZEEDetails.cc.

Referenced by analyze().

◆ maxHOEEE_

const double ZEEDetails::maxHOEEE_
private

Definition at line 70 of file ZEEDetails.cc.

Referenced by analyze().

◆ maxInvMass_

const double ZEEDetails::maxInvMass_
private

Definition at line 80 of file ZEEDetails.cc.

Referenced by analyze(), and bookHistograms().

◆ maxIso_

const double ZEEDetails::maxIso_
private

Definition at line 77 of file ZEEDetails.cc.

Referenced by analyze().

◆ maxNormChi2_

const double ZEEDetails::maxNormChi2_
private

Definition at line 72 of file ZEEDetails.cc.

Referenced by analyze().

◆ maxSigmaiEiEEB_

const double ZEEDetails::maxSigmaiEiEEB_
private

Definition at line 67 of file ZEEDetails.cc.

Referenced by analyze().

◆ maxSigmaiEiEEE_

const double ZEEDetails::maxSigmaiEiEEE_
private

Definition at line 71 of file ZEEDetails.cc.

Referenced by analyze().

◆ minInvMass_

const double ZEEDetails::minInvMass_
private

Definition at line 79 of file ZEEDetails.cc.

Referenced by analyze(), and bookHistograms().

◆ minPixelHits_

const int ZEEDetails::minPixelHits_
private

Definition at line 75 of file ZEEDetails.cc.

Referenced by analyze().

◆ minPt_

const double ZEEDetails::minPt_
private

Definition at line 63 of file ZEEDetails.cc.

Referenced by analyze().

◆ minPtHighest_

const double ZEEDetails::minPtHighest_
private

Definition at line 78 of file ZEEDetails.cc.

Referenced by analyze().

◆ minStripHits_

const int ZEEDetails::minStripHits_
private

Definition at line 76 of file ZEEDetails.cc.

Referenced by analyze().

◆ moduleName_

const std::string ZEEDetails::moduleName_
private

Definition at line 50 of file ZEEDetails.cc.

Referenced by bookHistograms().

◆ puScaleFactorFile_

const std::string ZEEDetails::puScaleFactorFile_
private

Definition at line 86 of file ZEEDetails.cc.

Referenced by ZEEDetails().

◆ puSummaryTag_

const edm::InputTag ZEEDetails::puSummaryTag_
private

Definition at line 55 of file ZEEDetails.cc.

Referenced by analyze().

◆ puSummaryToken_

const edm::EDGetTokenT<std::vector<PileupSummaryInfo> > ZEEDetails::puSummaryToken_
private

Definition at line 59 of file ZEEDetails.cc.

Referenced by analyze().

◆ trackQuality_

const std::string ZEEDetails::trackQuality_
private

Definition at line 81 of file ZEEDetails.cc.

Referenced by analyze().

◆ vertexTag_

const edm::InputTag ZEEDetails::vertexTag_
private

Definition at line 56 of file ZEEDetails.cc.

Referenced by analyze().

◆ vertexToken_

const edm::EDGetTokenT<reco::VertexCollection> ZEEDetails::vertexToken_
private

Definition at line 60 of file ZEEDetails.cc.

Referenced by analyze().

◆ vpu_

std::vector<float> ZEEDetails::vpu_
private

Definition at line 82 of file ZEEDetails.cc.

Referenced by analyze(), and ZEEDetails().

◆ vtrack_

std::vector<float> ZEEDetails::vtrack_
private

Definition at line 83 of file ZEEDetails.cc.

◆ ZInvMass_

MonitorElement* ZEEDetails::ZInvMass_
private

Definition at line 89 of file ZEEDetails.cc.

Referenced by analyze(), and bookHistograms().

◆ Zpt_

MonitorElement* ZEEDetails::Zpt_
private

Definition at line 88 of file ZEEDetails.cc.

Referenced by analyze(), and bookHistograms().