CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ZMCHistogrammer Class Reference
Inheritance diagram for ZMCHistogrammer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 ZMCHistogrammer (const edm::ParameterSet &pset)
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (const edm::Event &event, const edm::EventSetup &setup) override
 

Private Attributes

double angMax_
 
edm::EDGetTokenT< reco::CandidateViewgenToken_
 
TH1F * h_etaResZ_
 
TH1F * h_etaZ_
 
TH1F * h_etaZMC_
 
TH1F * h_invmMuMu_
 
TH1F * h_invmMuMuMC_
 
TH1F * h_mRatioZMuMu_
 
TH1F * h_mRatioZMuMuMC_
 
TH1F * h_mResZ_
 
TH1F * h_mResZMuMu_
 
TH1F * h_mResZMuMuMC_
 
TH1F * h_mZ_
 
TH1F * h_mZMC_
 
TH1F * h_nZ_
 
TH1F * h_nZMC_
 
TH1F * h_phiResZ_
 
TH1F * h_phiZ_
 
TH1F * h_phiZMC_
 
TH1F * h_ptResZ_
 
TH1F * h_ptZ_
 
TH1F * h_ptZMC_
 
TH1F * h_rapidityResZ_
 
TH1F * h_rapidityZ_
 
TH1F * h_rapidityZMC_
 
TH1F * h_thetaResZ_
 
TH1F * h_thetaZ_
 
TH1F * h_thetaZMC_
 
TH1F * h_weight_histo
 
edm::EDGetTokenT< edm::HepMCProducthepMCProductToken_
 
bool isMCatNLO_
 
double massMax_
 
double massResMax_
 
edm::EDGetTokenT< std::vector< reco::GenParticleRef > > matchToken_
 
unsigned int nbinsAng_
 
unsigned int nbinsMass_
 
unsigned int nbinsMassRes_
 
unsigned int nbinsPt_
 
double ptMax_
 
edm::EDGetTokenT< reco::CandidateViewzToken_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 10 of file ZMCHistogrammer.cc.

Constructor & Destructor Documentation

◆ ZMCHistogrammer()

ZMCHistogrammer::ZMCHistogrammer ( const edm::ParameterSet pset)

Definition at line 49 of file ZMCHistogrammer.cc.

50  : zToken_(consumes<CandidateView>(pset.getParameter<InputTag>("z"))),
51  genToken_(consumes<CandidateView>(pset.getParameter<InputTag>("gen"))),
52  matchToken_(consumes<std::vector<GenParticleRef> >(pset.getParameter<InputTag>("match"))),
53  hepMCProductToken_(consumes<HepMCProduct>(pset.getParameter<InputTag>("hepMCProductTag"))),
54  nbinsMass_(pset.getUntrackedParameter<unsigned int>("nbinsMass")),
55  nbinsPt_(pset.getUntrackedParameter<unsigned int>("nbinsPt")),
56  nbinsAng_(pset.getUntrackedParameter<unsigned int>("nbinsAng")),
57  nbinsMassRes_(pset.getUntrackedParameter<unsigned int>("nbinsMassRes")),
58  massMax_(pset.getUntrackedParameter<double>("massMax")),
59  ptMax_(pset.getUntrackedParameter<double>("ptMax")),
60  angMax_(pset.getUntrackedParameter<double>("angMax")),
61  massResMax_(pset.getUntrackedParameter<double>("massResMax")),
62  isMCatNLO_(pset.getUntrackedParameter<bool>("isMCatNLO")) {
63  cout << ">>> Z Histogrammer constructor" << endl;
65  TFileDirectory ZHisto = fs->mkdir("ZRecoHisto");
66  TFileDirectory ZMCHisto = fs->mkdir("ZMCHisto");
67  TFileDirectory ZResHisto = fs->mkdir("ZResolutionHisto");
68  //TFileDirectory Z2vs3MCHisto = fs->mkdir( "Z2vs3MCHisto" );
69  h_nZ_ = ZHisto.make<TH1F>("ZNumber", "number of Z particles", 11, -0.5, 10.5);
70  h_mZ_ = ZHisto.make<TH1F>("ZMass", "Z mass (GeV/c^{2})", nbinsMass_, 0, massMax_);
71  h_ptZ_ = ZHisto.make<TH1F>("ZPt", "Z p_{t} (GeV/c)", nbinsPt_, 0, ptMax_);
72  h_phiZ_ = ZHisto.make<TH1F>("ZPhi", "Z #phi", nbinsAng_, -angMax_, angMax_);
73  h_thetaZ_ = ZHisto.make<TH1F>("Ztheta", "Z #theta", nbinsAng_, 0, angMax_);
74  h_etaZ_ = ZHisto.make<TH1F>("ZEta", "Z #eta", nbinsAng_, -angMax_, angMax_);
75  h_rapidityZ_ = ZHisto.make<TH1F>("ZRapidity", "Z rapidity", nbinsAng_, -angMax_, angMax_);
76  h_invmMuMu_ = ZHisto.make<TH1F>("MuMuMass", "#mu #mu invariant mass", nbinsMass_, 0, massMax_);
77  h_weight_histo = ZHisto.make<TH1F>("weight_histo", "weight_histo", 20, -10, 10);
78  h_nZMC_ = ZMCHisto.make<TH1F>("ZMCNumber", "number of Z MC particles", 11, -0.5, 10.5);
79  h_mZMC_ = ZMCHisto.make<TH1F>("ZMCMass", "Z MC mass (GeV/c^{2})", nbinsMass_, 0, massMax_);
80  h_ptZMC_ = ZMCHisto.make<TH1F>("ZMCPt", "Z MC p_{t} (GeV/c)", nbinsPt_, 0, ptMax_);
81  h_phiZMC_ = ZMCHisto.make<TH1F>("ZMCPhi", "Z MC #phi", nbinsAng_, -angMax_, angMax_);
82  h_thetaZMC_ = ZMCHisto.make<TH1F>("ZMCTheta", "Z MC #theta", nbinsAng_, 0, angMax_);
83  h_etaZMC_ = ZMCHisto.make<TH1F>("ZMCEta", "Z MC #eta", nbinsAng_, -angMax_, angMax_);
84  h_rapidityZMC_ = ZMCHisto.make<TH1F>("ZMCRapidity", "Z MC rapidity", nbinsAng_, -angMax_, angMax_);
85  h_invmMuMuMC_ = ZMCHisto.make<TH1F>("MuMuMCMass", "#mu #mu MC invariant mass", nbinsMass_, 0, massMax_);
86  /*
87  h_mZ2vs3MC_ = Z2vs3MCHisto.make<TH1F>("Z2vs3MCMass", "Z MC st 2 vs st 3 mass (GeV/c^{2})",
88  nbinsMassRes_, -massResMax_, massResMax_);
89  h_ptZ2vs3MC_ = Z2vs3MCHisto.make<TH1F>("Z2vs3MCPt", "Z MC st 2 vs st 3 p_{t} (GeV/c)",
90  nbinsPt_, -ptMax_, ptMax_);
91  h_phiZ2vs3MC_ = Z2vs3MCHisto.make<TH1F>("Z2vs3MCPhi", "Z MC st 2 vs st 3 #phi",
92  nbinsAng_, -angMax_, angMax_);
93  h_thetaZ2vs3MC_ = Z2vs3MCHisto.make<TH1F>("Z2vs3MCTheta", "Z MC st 2 vs st 3 #theta",
94  nbinsAng_, -angMax_, angMax_);
95  h_etaZ2vs3MC_ = Z2vs3MCHisto.make<TH1F>("Z2vs3MCEta", "Z MC st 2 vs st 3 #eta",
96  nbinsAng_, -angMax_, angMax_);
97  h_rapidityZ2vs3MC_ = Z2vs3MCHisto.make<TH1F>("Z2vs3MCRapidity", "Z MC st 2 vs st 3 rapidity",
98  nbinsAng_, -angMax_, angMax_);
99  */
100  h_mResZ_ = ZResHisto.make<TH1F>(
101  "ZMassResolution", "Z mass Resolution (GeV/c^{2})", nbinsMassRes_, -massResMax_, massResMax_);
102  h_ptResZ_ = ZResHisto.make<TH1F>("ZPtResolution", "Z p_{t} Resolution (GeV/c)", nbinsPt_, -ptMax_, ptMax_);
103  h_phiResZ_ = ZResHisto.make<TH1F>("ZPhiResolution", "Z #phi Resolution", nbinsAng_, -angMax_, angMax_);
104  h_thetaResZ_ = ZResHisto.make<TH1F>("ZThetaResolution", "Z #theta Resolution", nbinsAng_, -angMax_, angMax_);
105  h_etaResZ_ = ZResHisto.make<TH1F>("ZEtaResolution", "Z #eta Resolution", nbinsAng_, -angMax_, angMax_);
106  h_rapidityResZ_ = ZResHisto.make<TH1F>("ZRapidityResolution", "Z rapidity Resolution", nbinsAng_, -angMax_, angMax_);
107  h_mResZMuMu_ = ZResHisto.make<TH1F>("ZToMuMuRecoMassResolution",
108  "Z Reco vs matched final state #mu #mu mass Difference (GeV/c^{2})",
110  -massResMax_,
111  massResMax_);
113  ZResHisto.make<TH1F>("ZToMuMuRecoMassRatio", "Z Reco vs matched final state #mu #mu mass Ratio", 4000, 0, 2);
114  h_mResZMuMuMC_ = ZResHisto.make<TH1F>("ZToMuMuMCMassResolution",
115  "Z vs final state #mu #mu MC mass Difference (GeV/c^{2})",
116  nbinsMassRes_ / 2 + 1,
117  -2 * massResMax_ / nbinsMassRes_,
118  massResMax_);
120  ZResHisto.make<TH1F>("ZToMuMuMCMassRatio", "Z vs final state #mu #mu MC mass Ratio", 2002, 0.999, 2);
121 }

References angMax_, gather_cfg::cout, h_etaResZ_, h_etaZ_, h_etaZMC_, h_invmMuMu_, h_invmMuMuMC_, h_mRatioZMuMu_, h_mRatioZMuMuMC_, h_mResZ_, h_mResZMuMu_, h_mResZMuMuMC_, h_mZ_, h_mZMC_, h_nZ_, h_nZMC_, h_phiResZ_, h_phiZ_, h_phiZMC_, h_ptResZ_, h_ptZ_, h_ptZMC_, h_rapidityResZ_, h_rapidityZ_, h_rapidityZMC_, h_thetaResZ_, h_thetaZ_, h_thetaZMC_, h_weight_histo, TFileDirectory::make(), massMax_, massResMax_, TFileService::mkdir(), nbinsAng_, nbinsMass_, nbinsMassRes_, nbinsPt_, and ptMax_.

Member Function Documentation

◆ analyze()

void ZMCHistogrammer::analyze ( const edm::Event event,
const edm::EventSetup setup 
)
overrideprivatevirtual

Implements edm::EDAnalyzer.

Definition at line 123 of file ZMCHistogrammer.cc.

123  {
124  cout << ">>> Z Histogrammer analyze" << endl;
128  event.getByToken(zToken_, z);
129  event.getByToken(genToken_, gen);
130  event.getByToken(matchToken_, match);
131  h_nZ_->Fill(z->size());
132 
133  // get HepMC::GenEvent ...
134  Handle<HepMCProduct> evt_h;
135  event.getByToken(hepMCProductToken_, evt_h);
136  HepMC::GenEvent *evt = new HepMC::GenEvent(*(evt_h->GetEvent()));
137 
138  // get weight and fill it to histogram
139  HepMC::WeightContainer weights = evt->weights();
140  double weight = weights.front();
141  if (!weight)
142  weight = 1.;
143  h_weight_histo->Fill(weight);
144 
145  if (isMCatNLO_) {
146  weight > 0 ? weight = 1. : weight = -1.;
147  }
148 
149  for (unsigned int i = 0; i < z->size(); ++i) {
150  const Candidate &zCand = (*z)[i];
151  h_mZ_->Fill(zCand.mass(), weight);
152  h_ptZ_->Fill(zCand.pt(), weight);
153  h_phiZ_->Fill(zCand.phi(), weight);
154  h_thetaZ_->Fill(zCand.theta(), weight);
155  h_etaZ_->Fill(zCand.eta(), weight);
156  h_rapidityZ_->Fill(zCand.rapidity(), weight);
157  CandidateBaseRef zCandRef = z->refAt(i);
158 
159  GenParticleRef zMCMatch = (*match)[i];
160  if (zMCMatch.isNonnull() && zMCMatch->pdgId() == 23) {
161  h_mResZ_->Fill(zCandRef->mass() - zMCMatch->mass());
162  h_ptResZ_->Fill(zCandRef->pt() - zMCMatch->pt());
163  h_phiResZ_->Fill(zCandRef->phi() - zMCMatch->phi());
164  h_thetaResZ_->Fill(zCandRef->theta() - zMCMatch->theta());
165  h_etaResZ_->Fill(zCandRef->eta() - zMCMatch->eta());
166  h_rapidityResZ_->Fill(zCandRef->rapidity() - zMCMatch->rapidity());
167  const Candidate *dau0 = zMCMatch->daughter(0);
168  const Candidate *dau1 = zMCMatch->daughter(1);
169  for (unsigned int i0 = 0; i0 < dau0->numberOfDaughters(); ++i0) {
170  const Candidate *ddau0 = dau0->daughter(i0);
171  if (abs(ddau0->pdgId()) == 13 && ddau0->status() == 1) {
172  dau0 = ddau0;
173  break;
174  }
175  }
176  for (unsigned int i1 = 0; i1 < dau1->numberOfDaughters(); ++i1) {
177  const Candidate *ddau1 = dau1->daughter(i1);
178  if (abs(ddau1->pdgId()) == 13 && ddau1->status() == 1) {
179  dau1 = ddau1;
180  break;
181  }
182  }
183  assert(abs(dau0->pdgId()) == 13 && dau0->status() == 1);
184  assert(abs(dau1->pdgId()) == 13 && dau1->status() == 1);
185  double invMass = (dau0->p4() + dau1->p4()).mass();
186  h_invmMuMu_->Fill(invMass, weight);
187  h_mResZMuMu_->Fill(zCand.mass() - invMass);
188  h_mRatioZMuMu_->Fill(zCand.mass() / invMass);
189  }
190  }
191  h_nZMC_->Fill(gen->size());
192  for (unsigned int i = 0; i < gen->size(); ++i) {
193  const Candidate &genCand = (*gen)[i];
194  if ((genCand.pdgId() == 23) && (genCand.status() == 2)) //this is an intermediate Z0
195  cout << ">>> intermediate Z0 found, with " << genCand.numberOfDaughters() << " daughters" << endl;
196  if ((genCand.pdgId() == 23) && (genCand.status() == 3)) { //this is a Z0
197  cout << ">>> Z0 found, with " << genCand.numberOfDaughters() << " daughters" << endl;
198  h_mZMC_->Fill(genCand.mass(), weight);
199  h_ptZMC_->Fill(genCand.pt(), weight);
200  h_phiZMC_->Fill(genCand.phi(), weight);
201  h_thetaZMC_->Fill(genCand.theta(), weight);
202  h_etaZMC_->Fill(genCand.eta(), weight);
203  h_rapidityZMC_->Fill(genCand.rapidity(), weight);
204  Particle::LorentzVector pZ(0, 0, 0, 0);
205  int nMu = 0;
206  for (unsigned int j = 0; j < genCand.numberOfDaughters(); ++j) {
207  const Candidate *dauGen = genCand.daughter(j);
208  /*
209  if((dauGen->pdgId() == 23) && (dauGen->status() == 2)) {
210  h_mZ2vs3MC_->Fill(genCand.mass() - dauGen->mass());
211  h_ptZ2vs3MC_->Fill(genCand.pt() - dauGen->pt());
212  h_phiZ2vs3MC_->Fill(genCand.phi() - dauGen->phi());
213  h_thetaZ2vs3MC_->Fill(genCand.theta() - dauGen->theta());
214  h_etaZ2vs3MC_->Fill(genCand.eta() - dauGen->eta());
215  h_rapidityZ2vs3MC_->Fill(genCand.rapidity() - dauGen->rapidity());
216  }
217  */
218  if ((abs(dauGen->pdgId()) == 13) && (dauGen->numberOfDaughters() != 0)) {
219  //we are looking for photons of final state radiation
220  cout << ">>> The muon " << j << " has " << dauGen->numberOfDaughters() << " daughters" << endl;
221  for (unsigned int k = 0; k < dauGen->numberOfDaughters(); ++k) {
222  const Candidate *dauMuGen = dauGen->daughter(k);
223  cout << ">>> Mu " << j << " daughter MC " << k << " PDG Id " << dauMuGen->pdgId() << ", status "
224  << dauMuGen->status() << ", charge " << dauMuGen->charge() << endl;
225  if (abs(dauMuGen->pdgId()) == 13 && dauMuGen->status() == 1) {
226  pZ += dauMuGen->p4();
227  nMu++;
228  }
229  }
230  }
231  }
232  assert(nMu == 2);
233  double mZ = pZ.mass();
234  h_invmMuMuMC_->Fill(mZ, weight);
235  h_mResZMuMuMC_->Fill(genCand.mass() - mZ);
236  h_mRatioZMuMuMC_->Fill(genCand.mass() / mZ);
237  }
238  }
239 }

References funct::abs(), cms::cuda::assert(), reco::Candidate::charge(), gather_cfg::cout, reco::Candidate::daughter(), reco::Candidate::eta(), relval_steps::gen(), genToken_, edm::HepMCProduct::GetEvent(), h_etaResZ_, h_etaZ_, h_etaZMC_, h_invmMuMu_, h_invmMuMuMC_, h_mRatioZMuMu_, h_mRatioZMuMuMC_, h_mResZ_, h_mResZMuMu_, h_mResZMuMuMC_, h_mZ_, h_mZMC_, h_nZ_, h_nZMC_, h_phiResZ_, h_phiZ_, h_phiZMC_, h_ptResZ_, h_ptZ_, h_ptZMC_, h_rapidityResZ_, h_rapidityZ_, h_rapidityZMC_, h_thetaResZ_, h_thetaZ_, h_thetaZMC_, h_weight_histo, hepMCProductToken_, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, isMCatNLO_, edm::Ref< C, T, F >::isNonnull(), dqmiolumiharvest::j, dqmdumpme::k, EgHLTOffHistBins_cfi::mass, reco::Candidate::mass(), match(), matchToken_, reco::Candidate::numberOfDaughters(), reco::Candidate::p4(), reco::Candidate::pdgId(), reco::Candidate::phi(), reco::Candidate::pt(), reco::Candidate::rapidity(), reco::Candidate::status(), reco::Candidate::theta(), mps_merge::weight, HLT_FULL_cff::weights, z, and zToken_.

Member Data Documentation

◆ angMax_

double ZMCHistogrammer::angMax_
private

Definition at line 21 of file ZMCHistogrammer.cc.

Referenced by ZMCHistogrammer().

◆ genToken_

edm::EDGetTokenT<reco::CandidateView> ZMCHistogrammer::genToken_
private

Definition at line 17 of file ZMCHistogrammer.cc.

Referenced by analyze().

◆ h_etaResZ_

TH1F * ZMCHistogrammer::h_etaResZ_
private

Definition at line 27 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_etaZ_

TH1F * ZMCHistogrammer::h_etaZ_
private

Definition at line 22 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_etaZMC_

TH1F * ZMCHistogrammer::h_etaZMC_
private

Definition at line 24 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_invmMuMu_

TH1F* ZMCHistogrammer::h_invmMuMu_
private

Definition at line 23 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_invmMuMuMC_

TH1F* ZMCHistogrammer::h_invmMuMuMC_
private

Definition at line 25 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_mRatioZMuMu_

TH1F * ZMCHistogrammer::h_mRatioZMuMu_
private

Definition at line 28 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_mRatioZMuMuMC_

TH1F * ZMCHistogrammer::h_mRatioZMuMuMC_
private

Definition at line 29 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_mResZ_

TH1F* ZMCHistogrammer::h_mResZ_
private

Definition at line 27 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_mResZMuMu_

TH1F* ZMCHistogrammer::h_mResZMuMu_
private

Definition at line 28 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_mResZMuMuMC_

TH1F* ZMCHistogrammer::h_mResZMuMuMC_
private

Definition at line 29 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_mZ_

TH1F * ZMCHistogrammer::h_mZ_
private

Definition at line 22 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_mZMC_

TH1F * ZMCHistogrammer::h_mZMC_
private

Definition at line 24 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_nZ_

TH1F* ZMCHistogrammer::h_nZ_
private

Definition at line 22 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_nZMC_

TH1F* ZMCHistogrammer::h_nZMC_
private

Definition at line 24 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_phiResZ_

TH1F * ZMCHistogrammer::h_phiResZ_
private

Definition at line 27 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_phiZ_

TH1F * ZMCHistogrammer::h_phiZ_
private

Definition at line 22 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_phiZMC_

TH1F * ZMCHistogrammer::h_phiZMC_
private

Definition at line 24 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_ptResZ_

TH1F * ZMCHistogrammer::h_ptResZ_
private

Definition at line 27 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_ptZ_

TH1F * ZMCHistogrammer::h_ptZ_
private

Definition at line 22 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_ptZMC_

TH1F * ZMCHistogrammer::h_ptZMC_
private

Definition at line 24 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_rapidityResZ_

TH1F * ZMCHistogrammer::h_rapidityResZ_
private

Definition at line 27 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_rapidityZ_

TH1F * ZMCHistogrammer::h_rapidityZ_
private

Definition at line 22 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_rapidityZMC_

TH1F * ZMCHistogrammer::h_rapidityZMC_
private

Definition at line 24 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_thetaResZ_

TH1F * ZMCHistogrammer::h_thetaResZ_
private

Definition at line 27 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_thetaZ_

TH1F * ZMCHistogrammer::h_thetaZ_
private

Definition at line 22 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_thetaZMC_

TH1F * ZMCHistogrammer::h_thetaZMC_
private

Definition at line 24 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ h_weight_histo

TH1F * ZMCHistogrammer::h_weight_histo
private

Definition at line 25 of file ZMCHistogrammer.cc.

Referenced by analyze(), and ZMCHistogrammer().

◆ hepMCProductToken_

edm::EDGetTokenT<edm::HepMCProduct> ZMCHistogrammer::hepMCProductToken_
private

Definition at line 19 of file ZMCHistogrammer.cc.

Referenced by analyze().

◆ isMCatNLO_

bool ZMCHistogrammer::isMCatNLO_
private

Definition at line 30 of file ZMCHistogrammer.cc.

Referenced by analyze().

◆ massMax_

double ZMCHistogrammer::massMax_
private

Definition at line 21 of file ZMCHistogrammer.cc.

Referenced by ZMCHistogrammer().

◆ massResMax_

double ZMCHistogrammer::massResMax_
private

Definition at line 21 of file ZMCHistogrammer.cc.

Referenced by ZMCHistogrammer().

◆ matchToken_

edm::EDGetTokenT<std::vector<reco::GenParticleRef> > ZMCHistogrammer::matchToken_
private

Definition at line 18 of file ZMCHistogrammer.cc.

Referenced by analyze().

◆ nbinsAng_

unsigned int ZMCHistogrammer::nbinsAng_
private

Definition at line 20 of file ZMCHistogrammer.cc.

Referenced by ZMCHistogrammer().

◆ nbinsMass_

unsigned int ZMCHistogrammer::nbinsMass_
private

Definition at line 20 of file ZMCHistogrammer.cc.

Referenced by ZMCHistogrammer().

◆ nbinsMassRes_

unsigned int ZMCHistogrammer::nbinsMassRes_
private

Definition at line 20 of file ZMCHistogrammer.cc.

Referenced by ZMCHistogrammer().

◆ nbinsPt_

unsigned int ZMCHistogrammer::nbinsPt_
private

Definition at line 20 of file ZMCHistogrammer.cc.

Referenced by ZMCHistogrammer().

◆ ptMax_

double ZMCHistogrammer::ptMax_
private

Definition at line 21 of file ZMCHistogrammer.cc.

Referenced by ZMCHistogrammer().

◆ zToken_

edm::EDGetTokenT<reco::CandidateView> ZMCHistogrammer::zToken_
private

Definition at line 16 of file ZMCHistogrammer.cc.

Referenced by analyze().

reco::Candidate::daughter
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode)
ZMCHistogrammer::massMax_
double massMax_
Definition: ZMCHistogrammer.cc:21
ZMCHistogrammer::h_rapidityResZ_
TH1F * h_rapidityResZ_
Definition: ZMCHistogrammer.cc:27
ZMCHistogrammer::h_mRatioZMuMu_
TH1F * h_mRatioZMuMu_
Definition: ZMCHistogrammer.cc:28
ZMCHistogrammer::nbinsAng_
unsigned int nbinsAng_
Definition: ZMCHistogrammer.cc:20
mps_fire.i
i
Definition: mps_fire.py:428
ZMCHistogrammer::zToken_
edm::EDGetTokenT< reco::CandidateView > zToken_
Definition: ZMCHistogrammer.cc:16
ZMCHistogrammer::h_phiZMC_
TH1F * h_phiZMC_
Definition: ZMCHistogrammer.cc:24
reco::Candidate::mass
virtual double mass() const =0
mass
ZMCHistogrammer::nbinsMassRes_
unsigned int nbinsMassRes_
Definition: ZMCHistogrammer.cc:20
reco::Candidate::eta
virtual double eta() const =0
momentum pseudorapidity
TFileDirectory::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileDirectory.h:53
ZMCHistogrammer::angMax_
double angMax_
Definition: ZMCHistogrammer.cc:21
mps_merge.weight
weight
Definition: mps_merge.py:88
gather_cfg.cout
cout
Definition: gather_cfg.py:144
testProducerWithPsetDescEmpty_cfi.i1
i1
Definition: testProducerWithPsetDescEmpty_cfi.py:45
reco::Candidate::pt
virtual double pt() const =0
transverse momentum
cms::cuda::assert
assert(be >=bs)
reco::Candidate::status
virtual int status() const =0
status word
TFileDirectory
Definition: TFileDirectory.h:24
ZMCHistogrammer::h_thetaZMC_
TH1F * h_thetaZMC_
Definition: ZMCHistogrammer.cc:24
edm::Handle
Definition: AssociativeIterator.h:50
ZMCHistogrammer::h_nZ_
TH1F * h_nZ_
Definition: ZMCHistogrammer.cc:22
ZMCHistogrammer::h_ptZMC_
TH1F * h_ptZMC_
Definition: ZMCHistogrammer.cc:24
reco::Candidate::rapidity
virtual double rapidity() const =0
rapidity
reco::Candidate::theta
virtual double theta() const =0
momentum polar angle
HepMC::GenEvent
Definition: hepmc_rootio.cc:9
edm::Ref< GenParticleCollection >
ZMCHistogrammer::h_etaZMC_
TH1F * h_etaZMC_
Definition: ZMCHistogrammer.cc:24
ZMCHistogrammer::h_phiResZ_
TH1F * h_phiResZ_
Definition: ZMCHistogrammer.cc:27
ZMCHistogrammer::h_weight_histo
TH1F * h_weight_histo
Definition: ZMCHistogrammer.cc:25
ZMCHistogrammer::h_mResZMuMu_
TH1F * h_mResZMuMu_
Definition: ZMCHistogrammer.cc:28
ZMCHistogrammer::h_invmMuMu_
TH1F * h_invmMuMu_
Definition: ZMCHistogrammer.cc:23
ZMCHistogrammer::matchToken_
edm::EDGetTokenT< std::vector< reco::GenParticleRef > > matchToken_
Definition: ZMCHistogrammer.cc:18
reco::Candidate::charge
virtual int charge() const =0
electric charge
HLT_FULL_cff.weights
weights
Definition: HLT_FULL_cff.py:99178
DDAxes::z
reco::Candidate::numberOfDaughters
virtual size_type numberOfDaughters() const =0
number of daughters
ZMCHistogrammer::h_mRatioZMuMuMC_
TH1F * h_mRatioZMuMuMC_
Definition: ZMCHistogrammer.cc:29
dqmdumpme.k
k
Definition: dqmdumpme.py:60
gen
Definition: PythiaDecays.h:13
ZMCHistogrammer::h_rapidityZ_
TH1F * h_rapidityZ_
Definition: ZMCHistogrammer.cc:22
ZMCHistogrammer::h_invmMuMuMC_
TH1F * h_invmMuMuMC_
Definition: ZMCHistogrammer.cc:25
ZMCHistogrammer::nbinsPt_
unsigned int nbinsPt_
Definition: ZMCHistogrammer.cc:20
TFileService::mkdir
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
Definition: TFileService.h:69
ZMCHistogrammer::genToken_
edm::EDGetTokenT< reco::CandidateView > genToken_
Definition: ZMCHistogrammer.cc:17
ZMCHistogrammer::h_mZ_
TH1F * h_mZ_
Definition: ZMCHistogrammer.cc:22
ZMCHistogrammer::h_etaZ_
TH1F * h_etaZ_
Definition: ZMCHistogrammer.cc:22
ZMCHistogrammer::h_phiZ_
TH1F * h_phiZ_
Definition: ZMCHistogrammer.cc:22
ZMCHistogrammer::h_thetaResZ_
TH1F * h_thetaResZ_
Definition: ZMCHistogrammer.cc:27
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
match
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
edm::Service< TFileService >
ZMCHistogrammer::nbinsMass_
unsigned int nbinsMass_
Definition: ZMCHistogrammer.cc:20
ZMCHistogrammer::h_ptResZ_
TH1F * h_ptResZ_
Definition: ZMCHistogrammer.cc:27
ZMCHistogrammer::h_etaResZ_
TH1F * h_etaResZ_
Definition: ZMCHistogrammer.cc:27
edm::HepMCProduct::GetEvent
const HepMC::GenEvent * GetEvent() const
Definition: HepMCProduct.h:34
ZMCHistogrammer::h_nZMC_
TH1F * h_nZMC_
Definition: ZMCHistogrammer.cc:24
reco::Candidate::pdgId
virtual int pdgId() const =0
PDG identifier.
ZMCHistogrammer::h_thetaZ_
TH1F * h_thetaZ_
Definition: ZMCHistogrammer.cc:22
ZMCHistogrammer::ptMax_
double ptMax_
Definition: ZMCHistogrammer.cc:21
reco::Candidate
Definition: Candidate.h:27
ZMCHistogrammer::massResMax_
double massResMax_
Definition: ZMCHistogrammer.cc:21
reco::JetExtendedAssociation::LorentzVector
math::PtEtaPhiELorentzVectorF LorentzVector
Definition: JetExtendedAssociation.h:25
ZMCHistogrammer::h_mResZMuMuMC_
TH1F * h_mResZMuMuMC_
Definition: ZMCHistogrammer.cc:29
ZMCHistogrammer::h_ptZ_
TH1F * h_ptZ_
Definition: ZMCHistogrammer.cc:22
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34
ZMCHistogrammer::h_mZMC_
TH1F * h_mZMC_
Definition: ZMCHistogrammer.cc:24
edm::RefToBase< Candidate >
relval_steps.gen
def gen(fragment, howMuch)
Production test section ####.
Definition: relval_steps.py:509
reco::Candidate::p4
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
ZMCHistogrammer::isMCatNLO_
bool isMCatNLO_
Definition: ZMCHistogrammer.cc:30
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:153
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
ZMCHistogrammer::hepMCProductToken_
edm::EDGetTokenT< edm::HepMCProduct > hepMCProductToken_
Definition: ZMCHistogrammer.cc:19
reco::Candidate::phi
virtual double phi() const =0
momentum azimuthal angle
ZMCHistogrammer::h_rapidityZMC_
TH1F * h_rapidityZMC_
Definition: ZMCHistogrammer.cc:24
edm::InputTag
Definition: InputTag.h:15
weight
Definition: weight.py:1
ZMCHistogrammer::h_mResZ_
TH1F * h_mResZ_
Definition: ZMCHistogrammer.cc:27
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27