Analyze the Data
Definition at line 69 of file HLTMCtruth.cc.
References _Monte, funct::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, reco::Candidate::numberOfDaughters(), nwenu, nwmunu, nzee, nzmumu, AlCaHLTBitMon_ParallelJobs::p, reco::Candidate::pdgId(), reco::Candidate::phi(), EnergyCorrector::pt, reco::Candidate::pt(), ptEleMax, pthatf, ptMuMax, alignCSCRings::r, mathSSE::sqrt(), reco::Candidate::status(), reco::Candidate::vx(), reco::Candidate::vy(), reco::Candidate::vz(), x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
Referenced by HLTAnalyzer::analyze().
93 for (
unsigned int j=0;
j<simTracks->size();
j++) {
94 int pdgid = simTracks->at(
j).type();
95 if (
abs(pdgid)!=13)
continue;
96 double pt = simTracks->at(
j).momentum().pt();
98 double eta = simTracks->at(
j).momentum().eta();
99 if (
abs(eta)>2.5)
continue;
100 if (simTracks->at(
j).noVertex())
continue;
101 int vertIndex = simTracks->at(
j).vertIndex();
102 double x = simVertices->at(vertIndex).position().x();
103 double y = simVertices->at(vertIndex).position().y();
104 double r =
sqrt(x*x+y*y);
105 if (r>150.)
continue;
106 double z = simVertices->at(vertIndex).position().z();
107 if (
abs(z)>300.)
continue;
115 for (
size_t i = 0;
i < mctruth->size(); ++
i) {
129 for (
size_t j=0;
j != idg; ++
j){
131 if ((d.
pdgId()==11)||(d.
pdgId()==-11)){wel += 1;}
132 if ((d.
pdgId()==13)||(d.
pdgId()==-13)){wmu += 1;}
137 if (
mcpid[nmc]==23) {
139 for (
size_t j=0;
j != idg; ++
j){
141 if (d.
pdgId()==11){zee += 1;}
142 if (d.
pdgId()==-11){zee += 2;}
143 if (d.
pdgId()==13){zmumu += 1;}
144 if (d.
pdgId()==-13){zmumu += 2;}
151 if (((
mcpid[nmc]==11)||(
mcpid[nmc]==-11))&&(
mcpt[nmc]>2.5)) {el3 += 1;}
153 if (
mcpid[nmc]==-5) {mab += 1;}
154 if (
mcpid[nmc]==5) {mbb += 1;}
174 if((zee%3)==0){
nzee = zee/3;}
176 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
Abs< T >::type abs(const T &t)
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