|
const HepMC::GenParticle * | GetFinal (const HepMC::GenParticle *p) |
|
bool | isFirst (const HepMC::GenParticle *p) |
|
Definition at line 52 of file BasicHepMCValidation.h.
BasicHepMCValidation::ParticleMonitor::ParticleMonitor |
( |
std::string |
name_, |
|
|
int |
pdgid_, |
|
|
DQMStore::IBooker & |
i, |
|
|
bool |
nlog_ = false |
|
) |
| |
|
inline |
Definition at line 54 of file BasicHepMCValidation.h.
References DQMHelper::book1dHisto(), eta_init, lifetime_final, lifetime_init, name, nlog, numberPerEvent, p_final, and p_init.
59 20, 0, 20,
"No. of "+
name,
"Number of Events");
63 20, 0, 20,
"log_{10}(No. of "+
name+
")",
"Number of Events");
65 p_init = dqm.book1dHisto(
name+
"Momentum",
"log_{10}(P) of the "+
name+
"s",
66 60, -2, 4,
"log_{10}(P) (log_{10}(GeV))",
"Number of "+
name );
69 100, -5., 5.,
"#eta",
"Number of "+
name);
72 100, -15, -5,
"Log_{10}(life-time^{final}) (log_{10}(s))",
"Number of "+
name);
74 p_final = dqm.book1dHisto(
name+
"MomentumFinal",
"log_{10}(P^{final}) of "+
name+
"s at end of decay chain",
75 60, -2, 4,
"log_{10}(P^{final}) (log_{10}(GeV))",
"Number of "+
name);
77 lifetime_final=dqm.book1dHisto(
name+
"LifeTimeFinal",
"Log_{10}(life-time^{final}) of "+
name+
"s at end of decay chain",
78 100,-15,-5,
"Log_{10}(life-time^{final}) (log_{10}(s))",
"Number of "+
name);
MonitorElement * lifetime_final
MonitorElement * eta_init
MonitorElement * lifetime_init
MonitorElement * numberPerEvent
BasicHepMCValidation::ParticleMonitor::~ParticleMonitor |
( |
| ) |
|
|
inline |
bool BasicHepMCValidation::ParticleMonitor::Fill |
( |
const HepMC::GenParticle * |
p, |
|
|
double |
weight |
|
) |
| |
|
inline |
Definition at line 83 of file BasicHepMCValidation.h.
References beta, trackerHits::c, count, eta_init, MonitorElement::Fill(), configurableAnalysis::GenParticle, GetFinal(), isFirst(), lifetime_final, lifetime_init, lt, p_final, p_init, pdgid, and histoStyle::weight.
91 if(
p->production_vertex() &&
p->end_vertex()){
92 TVector3 PV(
p->production_vertex()->point3d().x(),
p->production_vertex()->point3d().y(),
p->production_vertex()->point3d().z());
93 TVector3 SV(
p->end_vertex()->point3d().x(),
p->end_vertex()->point3d().y(),
p->end_vertex()->point3d().z());
95 double c(2.99792458E8),Ltau(DL.Mag()/100),
beta(
p->momentum().rho()/
p->momentum().m());
99 TVector3 SVf(pf->end_vertex()->point3d().x(),pf->end_vertex()->point3d().y(),pf->end_vertex()->point3d().z());
bool isFirst(const HepMC::GenParticle *p)
MonitorElement * lifetime_final
MonitorElement * eta_init
const HepMC::GenParticle * GetFinal(const HepMC::GenParticle *p)
MonitorElement * lifetime_init
< trclass="colgroup">< tdclass="colgroup"colspan=5 > DT local reconstruction</td ></tr >< tr >< td >< ahref="classDTRecHit1DPair.html"> DTRecHit1DPair</a ></td >< td >< ahref="DataFormats_DTRecHit.html"> edm::RangeMap & lt
void BasicHepMCValidation::ParticleMonitor::FillCount |
( |
double |
weight | ) |
|
|
inline |
const HepMC::GenParticle* BasicHepMCValidation::ParticleMonitor::GetFinal |
( |
const HepMC::GenParticle * |
p | ) |
|
|
inlineprivate |
Definition at line 131 of file BasicHepMCValidation.h.
References funct::abs(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by Fill().
133 if(
p->end_vertex()->particles_out_size()!=0){
134 for(HepMC::GenVertex::particles_out_const_iterator d=
p->end_vertex()->particles_out_const_begin(); d!=
p->end_vertex()->particles_out_const_end();d++){
135 if(
abs((*d)->pdg_id())==
abs(
p->pdg_id())){
Abs< T >::type abs(const T &t)
const HepMC::GenParticle * GetFinal(const HepMC::GenParticle *p)
bool BasicHepMCValidation::ParticleMonitor::isFirst |
( |
const HepMC::GenParticle * |
p | ) |
|
|
inlineprivate |
Definition at line 122 of file BasicHepMCValidation.h.
References funct::abs(), and m.
Referenced by Fill().
123 if(
p->production_vertex()){
124 for(HepMC::GenVertex::particles_in_const_iterator
m=
p->production_vertex()->particles_in_const_begin();
m!=
p->production_vertex()->particles_in_const_end();
m++){
125 if(
abs((*m)->pdg_id())==
abs(
p->pdg_id()))
return false;
Abs< T >::type abs(const T &t)
int BasicHepMCValidation::ParticleMonitor::PDGID |
( |
| ) |
|
|
inline |
unsigned int BasicHepMCValidation::ParticleMonitor::count |
|
private |
MonitorElement * BasicHepMCValidation::ParticleMonitor::lifetime_final |
|
private |
std::string BasicHepMCValidation::ParticleMonitor::name |
|
private |
bool BasicHepMCValidation::ParticleMonitor::nlog |
|
private |
MonitorElement * BasicHepMCValidation::ParticleMonitor::numberPerEvent |
|
private |
int BasicHepMCValidation::ParticleMonitor::pdgid |
|
private |