Definition at line 5 of file ZMassHistogrammer.cc.
Implements edm::EDAnalyzer.
Definition at line 38 of file ZMassHistogrammer.cc.
References reco::Candidate::charge(), gather_cfg::cout, reco::Candidate::daughter(), relval_steps::gen(), gen_, h_mZ_, h_mZMC_, i, reco::Candidate::mass(), reco::Candidate::numberOfDaughters(), reco::Candidate::pdgId(), reco::Candidate::status(), detailsBasic3DVector::z, and z_.
39 cout <<
">>> Z Mass analyze" << endl;
42 event.getByLabel(
z_, z);
43 event.getByLabel(
gen_, gen);
44 for(
unsigned int i = 0;
i < z->size(); ++
i) {
48 for(
unsigned int i = 0;
i < gen->size(); ++
i) {
50 if((genCand.
pdgId() == 23) && (genCand.
status() == 2))
52 <<
" daughters" << endl;
53 if((genCand.
pdgId() == 23)&&(genCand.
status() == 3)) {
55 <<
" daughters" << endl;
61 cout <<
">>> daughter MC 0 PDG Id " << dauGen0->
pdgId()
62 <<
", status " << dauGen0->
status()
63 <<
", charge " << dauGen0->
charge()
65 cout <<
">>> daughter MC 1 PDG Id " << dauGen1->
pdgId()
66 <<
", status " << dauGen1->
status()
67 <<
", charge " << dauGen1->
charge()
69 cout <<
">>> daughter MC 2 PDG Id " << dauGen2->
pdgId()
70 <<
", status " << dauGen2->
status()
71 <<
", charge " << dauGen2->
charge() << endl;
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual double mass() const =0
mass
virtual int status() const =0
status word
virtual size_type numberOfDaughters() const =0
number of daughters
virtual int charge() const =0
electric charge
virtual int pdgId() const =0
PDG identifier.