Analyze the Data
Definition at line 74 of file HLTMCtruth.cc.
References _Gen, _Monte, funct::abs(), rpcdqm::BX, edmIntegrityCheck::d, reco::Candidate::daughter(), PVValHelper::eta, reco::Candidate::eta(), mps_fire::i, edm::HandleBase::isValid(), mceta, mcphi, mcpid, mcpt, mcstatus, mcvx, mcvy, mcvz, nab, nbb, nel3, nmcpart, nmu3, npubx0, npuvertbx0, reco::Candidate::numberOfDaughters(), nwenu, nwmunu, nzee, nzmumu, AlCaHLTBitMon_ParallelJobs::p, BPhysicsValidation_cfi::pdgid, reco::Candidate::pdgId(), reco::Candidate::phi(), EnergyCorrector::pt, reco::Candidate::pt(), ptEleMax, pthatf, ptMuMax, alignCSCRings::r, tkConvValidator_cfi::simTracks, HGCalValidator_cfi::simVertices, edm::View< T >::size(), mathSSE::sqrt(), reco::Candidate::status(), reco::Candidate::vx(), reco::Candidate::vy(), reco::Candidate::vz(), mps_merge::weight, weightf, weightsignf, x, y, and z.
Referenced by HLTBitAnalyzer::analyze().
107 std::vector<PileupSummaryInfo>::const_iterator PVI;
108 for(PVI = PupInfo->begin(); PVI != PupInfo->end(); ++PVI) {
110 int BX = PVI->getBunchCrossing();
111 npvtrue = PVI->getTrueNumInteractions();
112 npuvert = PVI->getPU_NumInteractions();
123 for (
auto const & j : *simTracks) {
124 int pdgid = j.type();
125 if (
abs(pdgid)!=13)
continue;
126 double pt = j.momentum().pt();
127 if (pt<5.0)
continue;
128 double eta = j.momentum().eta();
129 if (
abs(eta)>2.5)
continue;
130 if (j.noVertex())
continue;
131 int vertIndex = j.vertIndex();
132 double x = simVertices->at(vertIndex).position().x();
133 double y = simVertices->at(vertIndex).position().y();
134 double r =
sqrt(x*x+y*y);
135 if (r>200.)
continue;
136 double z = simVertices->at(vertIndex).position().z();
137 if (
abs(z)>400.)
continue;
146 for (
size_t i = 0;
i < mctruth->
size(); ++
i) {
160 for (
size_t j=0; j != idg; ++j){
162 if ((d.
pdgId()==11)||(d.
pdgId()==-11)){wel += 1;}
163 if ((d.
pdgId()==13)||(d.
pdgId()==-13)){wmu += 1;}
168 if (
mcpid[nmc]==23) {
170 for (
size_t j=0; j != idg; ++j){
172 if (d.
pdgId()==11){zee += 1;}
173 if (d.
pdgId()==-11){zee += 2;}
174 if (d.
pdgId()==13){zmumu += 1;}
175 if (d.
pdgId()==-13){zmumu += 2;}
182 if (((
mcpid[nmc]==11)||(
mcpid[nmc]==-11))&&(
mcpt[nmc]>2.5)) {el3 += 1;}
184 if (
mcpid[nmc]==-5) {mab += 1;}
185 if (
mcpid[nmc]==5) {mbb += 1;}
205 if((zee%3)==0){
nzee = zee/3;}
207 if ((zmumu%3)==0){
nzmumu = zmumu/3;}
virtual double vx() const =0
x coordinate of vertex position
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual double vy() const =0
y coordinate of vertex position
virtual int status() const =0
status word
virtual int pdgId() const =0
PDG identifier.
Abs< T >::type abs(const T &t)
virtual double eta() const =0
momentum pseudorapidity
virtual double pt() const =0
transverse momentum
virtual double vz() const =0
z coordinate of vertex position
virtual size_type numberOfDaughters() const =0
number of daughters
virtual double phi() const =0
momentum azimuthal angle