|
const HepMC::GenParticle * | GetFinal (const HepMC::GenParticle *p) |
|
bool | isFirst (const HepMC::GenParticle *p) |
|
Definition at line 50 of file BasicHepMCValidation.h.
◆ ParticleMonitor()
BasicHepMCValidation::ParticleMonitor::ParticleMonitor |
( |
std::string |
name_, |
|
|
int |
pdgid_, |
|
|
DQMStore::IBooker & |
i, |
|
|
bool |
nlog_ = false |
|
) |
| |
|
inline |
Definition at line 52 of file BasicHepMCValidation.h.
58 name +
"Number",
"Number of " +
name +
"'s per event", 20, 0, 20,
"No. of " +
name,
"Number of Events");
61 "Number of " +
name +
"'s per event",
65 "log_{10}(No. of " +
name +
")",
69 "log_{10}(P) of the " +
name +
"s",
73 "log_{10}(P) (log_{10}(GeV))",
76 eta_init =
dqm.book1dHisto(
name +
"Eta",
"#eta of the " +
name +
"s", 100, -5., 5.,
"#eta",
"Number of " +
name);
79 "#phi of the " +
name +
"s",
83 "Log_{10}(life-time^{final}) (log_{10}(s))",
87 "log_{10}(P^{final}) of " +
name +
"s at end of decay chain",
91 "log_{10}(P^{final}) (log_{10}(GeV))",
95 "Log_{10}(life-time^{final}) of " +
name +
"s at end of decay chain",
99 "Log_{10}(life-time^{final}) (log_{10}(s))",
100 "Number of " +
name);
References eta_init, mps_fire::i, lifetime_final, lifetime_init, name, nlog, numberPerEvent, p_final, and p_init.
◆ ~ParticleMonitor()
BasicHepMCValidation::ParticleMonitor::~ParticleMonitor |
( |
| ) |
|
|
inline |
◆ Fill()
bool BasicHepMCValidation::ParticleMonitor::Fill |
( |
const HepMC::GenParticle * |
p, |
|
|
double |
weight |
|
) |
| |
|
inline |
Definition at line 105 of file BasicHepMCValidation.h.
106 if (
p->pdg_id() ==
pdgid) {
113 if (
p->production_vertex() &&
p->end_vertex()) {
114 TVector3
PV(
p->production_vertex()->point3d().x(),
115 p->production_vertex()->point3d().y(),
116 p->production_vertex()->point3d().z());
117 TVector3
SV(
p->end_vertex()->point3d().x(),
p->end_vertex()->point3d().y(),
p->end_vertex()->point3d().z());
118 TVector3 DL =
SV -
PV;
119 double c(2.99792458E8), Ltau(DL.Mag() / 100) ,
beta(
p->momentum().rho() /
p->momentum().m());
120 double lt = Ltau / (
c *
beta);
123 if (
pf->end_vertex()) {
125 pf->end_vertex()->point3d().x(),
pf->end_vertex()->point3d().y(),
pf->end_vertex()->point3d().z());
127 Ltau = DL.Mag() / 100;
128 lt = Ltau / (
c *
beta);
References zMuMuMuonUserData::beta, HltBtagPostValidation_cff::c, count, eta_init, dqm::impl::MonitorElement::Fill(), GenParticle::GenParticle, GetFinal(), isFirst(), lifetime_final, lifetime_init, AlCaHLTBitMon_ParallelJobs::p, p_final, p_init, pdgid, packedPFCandidateRefMixer_cfi::pf, nanoDQM_cfi::PV, nanoDQM_cfi::SV, and mps_merge::weight.
◆ FillCount()
void BasicHepMCValidation::ParticleMonitor::FillCount |
( |
double |
weight | ) |
|
|
inline |
◆ GetFinal()
const HepMC::GenParticle* BasicHepMCValidation::ParticleMonitor::GetFinal |
( |
const HepMC::GenParticle * |
p | ) |
|
|
inlineprivate |
Definition at line 164 of file BasicHepMCValidation.h.
166 for (
unsigned int iMix = 0; iMix < 10; iMix++) {
167 bool foundSimilar =
false;
168 if (aPart->end_vertex()) {
169 if (aPart->end_vertex()->particles_out_size() != 0) {
170 for (HepMC::GenVertex::particles_out_const_iterator
d = aPart->end_vertex()->particles_out_const_begin();
171 d != aPart->end_vertex()->particles_out_const_end();
173 if (
abs((*d)->pdg_id()) ==
abs(aPart->pdg_id())) {
References funct::abs(), ztail::d, GenParticle::GenParticle, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by Fill().
◆ isFirst()
bool BasicHepMCValidation::ParticleMonitor::isFirst |
( |
const HepMC::GenParticle * |
p | ) |
|
|
inlineprivate |
◆ PDGID()
int BasicHepMCValidation::ParticleMonitor::PDGID |
( |
| ) |
|
|
inline |
◆ count
unsigned int BasicHepMCValidation::ParticleMonitor::count |
|
private |
◆ eta_init
◆ lifetime_final
MonitorElement * BasicHepMCValidation::ParticleMonitor::lifetime_final |
|
private |
◆ lifetime_init
◆ name
std::string BasicHepMCValidation::ParticleMonitor::name |
|
private |
◆ nlog
bool BasicHepMCValidation::ParticleMonitor::nlog |
|
private |
◆ numberPerEvent
MonitorElement * BasicHepMCValidation::ParticleMonitor::numberPerEvent |
|
private |
◆ p_final
◆ p_init
◆ pdgid
int BasicHepMCValidation::ParticleMonitor::pdgid |
|
private |
MonitorElement * lifetime_init
MonitorElement * eta_init
MonitorElement * numberPerEvent
MonitorElement * lifetime_final
bool isFirst(const HepMC::GenParticle *p)
const HepMC::GenParticle * GetFinal(const HepMC::GenParticle *p)