Analyze the Data
Definition at line 70 of file HLTMCtruth.cc.
References _Monte, abs, reco::Candidate::daughter(), reco::Candidate::eta(), eta(), i, edm::HandleBase::isValid(), j, 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, reco::Candidate::pdgId(), reco::Candidate::phi(), reco::Candidate::pt(), ptEleMax, pthatf, ptMuMax, alignCSCRings::r, mathSSE::sqrt(), reco::Candidate::status(), reco::Candidate::vx(), reco::Candidate::vy(), reco::Candidate::vz(), vdt::x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
Referenced by HLTBitAnalyzer::analyze(), and HLTAnalyzer::analyze().
101 for (
unsigned int j=0;
j<simTracks->size();
j++) {
102 int pdgid = simTracks->at(
j).type();
103 if (
abs(pdgid)!=13)
continue;
104 double pt = simTracks->at(
j).momentum().pt();
105 if (pt<5.0)
continue;
106 double eta = simTracks->at(
j).momentum().eta();
107 if (
abs(eta)>2.5)
continue;
108 if (simTracks->at(
j).noVertex())
continue;
109 int vertIndex = simTracks->at(
j).vertIndex();
110 double x = simVertices->at(vertIndex).position().x();
111 double y = simVertices->at(vertIndex).position().y();
112 double r =
sqrt(x*x+y*y);
113 if (r>150.)
continue;
114 double z = simVertices->at(vertIndex).position().z();
115 if (
abs(z)>300.)
continue;
121 std::vector<PileupSummaryInfo>::const_iterator PVI;
122 for(PVI = PupInfo->begin(); PVI != PupInfo->end(); ++PVI) {
124 int BX = PVI->getBunchCrossing();
125 npvtrue = PVI->getTrueNumInteractions();
126 npuvert = PVI->getPU_NumInteractions();
139 for (
size_t i = 0;
i < mctruth->size(); ++
i) {
153 for (
size_t j=0;
j != idg; ++
j){
155 if ((d.
pdgId()==11)||(d.
pdgId()==-11)){wel += 1;}
156 if ((d.
pdgId()==13)||(d.
pdgId()==-13)){wmu += 1;}
161 if (
mcpid[nmc]==23) {
163 for (
size_t j=0;
j != idg; ++
j){
165 if (d.
pdgId()==11){zee += 1;}
166 if (d.
pdgId()==-11){zee += 2;}
167 if (d.
pdgId()==13){zmumu += 1;}
168 if (d.
pdgId()==-13){zmumu += 2;}
175 if (((
mcpid[nmc]==11)||(
mcpid[nmc]==-11))&&(
mcpt[nmc]>5.0)) {el3 += 1;}
177 if (
mcpid[nmc]==-5) {mab += 1;}
178 if (
mcpid[nmc]==5) {mbb += 1;}
198 if((zee%3)==0){
nzee = zee/3;}
200 if ((zmumu%3)==0){
nzmumu = zmumu/3;}
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual double pt() const =0
transverse momentum
virtual int status() const =0
status word
virtual double vx() const =0
x coordinate of vertex position
virtual double vy() const =0
y coordinate of vertex position
virtual size_type numberOfDaughters() const =0
number of daughters
virtual int pdgId() const =0
PDG identifier.
virtual double vz() const =0
z coordinate of vertex position
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity