Analyze the Data
Definition at line 74 of file HLTMCtruth.cc.
References _Gen, _Monte, funct::abs(), L1TStage2uGTEmulatorClient_cff::BX, ztail::d, reco::Candidate::daughter(), PVValHelper::eta, reco::Candidate::eta(), mps_fire::i, edm::HandleBase::isValid(), dqmiolumiharvest::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(), DiDispStaMuonMonitor_cfi::pt, reco::Candidate::pt(), ptEleMax, pthatf, ptMuMax, alignCSCRings::r, mathSSE::sqrt(), reco::Candidate::status(), reco::Candidate::vx(), reco::Candidate::vy(), reco::Candidate::vz(), histoStyle::weight, weightf, weightsignf, x, y, and z.
Referenced by HLTBitAnalyzer::analyze().
106 std::vector<PileupSummaryInfo>::const_iterator PVI;
107 for (PVI = PupInfo->begin(); PVI != PupInfo->end(); ++PVI) {
108 int BX = PVI->getBunchCrossing();
109 npvtrue = PVI->getTrueNumInteractions();
110 npuvert = PVI->getPU_NumInteractions();
120 for (
auto const&
j : *simTracks) {
121 int pdgid =
j.type();
122 if (
abs(pdgid) != 13)
124 double pt =
j.momentum().pt();
127 double eta =
j.momentum().eta();
132 int vertIndex =
j.vertIndex();
133 double x = simVertices->at(vertIndex).position().x();
134 double y = simVertices->at(vertIndex).position().y();
135 double r =
sqrt(x * x + y * y);
138 double z = simVertices->at(vertIndex).position().z();
147 for (
size_t i = 0;
i < mctruth->size(); ++
i) {
159 if ((
mcpid[nmc] == 24) || (
mcpid[nmc] == -24)) {
161 for (
size_t j = 0;
j != idg; ++
j) {
163 if ((d.
pdgId() == 11) || (d.
pdgId() == -11)) {
166 if ((d.
pdgId() == 13) || (d.
pdgId() == -13)) {
173 if (
mcpid[nmc] == 23) {
175 for (
size_t j = 0;
j != idg; ++
j) {
177 if (d.
pdgId() == 11) {
180 if (d.
pdgId() == -11) {
183 if (d.
pdgId() == 13) {
186 if (d.
pdgId() == -13) {
195 if (((
mcpid[nmc] == 11) || (
mcpid[nmc] == -11)) && (
mcpt[nmc] > 2.5)) {
199 if (
mcpid[nmc] == -5) {
202 if (
mcpid[nmc] == 5) {
206 if ((
mcpid[nmc] == 13) || (
mcpid[nmc] == -13)) {
211 if ((
mcpid[nmc] == 11) || (
mcpid[nmc] == -11)) {
228 if ((zee % 3) == 0) {
232 if ((zmumu % 3) == 0) {
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