#include <HiBasicGenTest.h>
Definition at line 21 of file HiBasicGenTest.h.
◆ HiBasicGenTest()
◆ ~HiBasicGenTest()
HiBasicGenTest::~HiBasicGenTest |
( |
| ) |
|
|
override |
◆ analyze()
Reimplemented from DQMEDAnalyzer.
Definition at line 42 of file HiBasicGenTest.cc.
46 const HepMC::HeavyIon*
hi = evt->heavy_ion();
52 double ip =
hi->impact_parameter();
53 phi0 =
hi->event_plane_angle();
62 else if (ip < 7.145 && ip > 5.045)
64 else if (ip < 15.202 && ip > 14.283)
74 HepMC::GenEvent::particle_const_iterator begin = evt->particles_begin();
75 HepMC::GenEvent::particle_const_iterator
end = evt->particles_end();
76 for (HepMC::GenEvent::particle_const_iterator it = begin; it !=
end; ++it) {
78 if ((*it)->status() != 1)
82 int pdg_id = (*it)->pdg_id();
88 float eta = (*it)->momentum().eta();
89 float phi = (*it)->momentum().phi();
90 float pt = (*it)->momentum().perp();
96 double p =
phi - phi0;
References b, ALCARECOTkAlJpsiMuMu_cff::charge, mps_fire::end, PVValHelper::eta, iEvent, CaloTowersParam_cfi::mc, AlCaHLTBitMon_ParallelJobs::p, HiggsValidation_cfi::pdg_id, Pi, pi, and DiDispStaMuonMonitor_cfi::pt.
◆ bookHistograms()
Setting the DQM top directories
Booking the ME's
Implements DQMEDAnalyzer.
Definition at line 23 of file HiBasicGenTest.cc.
28 for (
int ibin = 0; ibin < 3; ibin++) {
29 dnchdeta[ibin] = ibooker.
book1D(Form(
"dnchdeta%d", ibin),
";#eta;dN^{ch}/d#eta", 100, -6.0, 6.0);
31 dnchdpt[ibin] = ibooker.
book1D(Form(
"dnchdpt%d", ibin),
";p_{T};dN^{ch}/dp_{T}", 200, 0.0, 100.0);
33 b[ibin] = ibooker.
book1D(Form(
"b%d", ibin),
";b[fm];events", 100, 0.0, 20.0);
34 dnchdphi[ibin] = ibooker.
book1D(Form(
"dnchdphi%d", ibin),
";#phi;dN^{ch}/d#phi", 100, -3.2, 3.2);
37 rp = ibooker.
book1D(
"phi0",
";#phi_{RP};events", 100, -3.2, 3.2);
References b, dqm::implementation::IBooker::book1D(), and dqm::implementation::NavigatorBase::setCurrentFolder().
◆ dqmBeginRun()
◆ dnchdeta
◆ dnchdphi
◆ dnchdpt
◆ generatorToken_
◆ pdt
◆ rp
HepPDT::ParticleData ParticleData
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())