#include <HiBasicGenTest.h>
Definition at line 18 of file HiBasicGenTest.h.
HiBasicGenTest::~HiBasicGenTest |
( |
| ) |
|
|
virtual |
Implements edm::EDAnalyzer.
Definition at line 65 of file HiBasicGenTest.cc.
References b, begin, DeDxDiscriminatorTools::charge(), end, eta(), edm::Event::getByLabel(), AlCaHLTBitMon_ParallelJobs::p, phi, Pi, and pi.
70 const HepMC::GenEvent *evt = mc->GetEvent();
71 const HepMC::HeavyIon *hi = evt->heavy_ion();
73 double ip = hi->impact_parameter();
74 double phi0 = hi->event_plane_angle();
81 if(ip < 5.045) cbin=0;
82 else if (ip < 7.145 && ip > 5.045) cbin=1;
83 else if (ip < 15.202 && ip > 14.283) cbin=2;
90 HepMC::GenEvent::particle_const_iterator
begin = evt->particles_begin();
91 HepMC::GenEvent::particle_const_iterator
end = evt->particles_end();
92 for(HepMC::GenEvent::particle_const_iterator it = begin; it !=
end; ++it){
95 if((*it)->status() != 1)
continue;
98 int pdg_id = (*it)->pdg_id();
100 int charge =
static_cast<int>(part->charge());
101 if(charge==0)
continue;
103 float eta = (*it)->momentum().eta();
104 float phi = (*it)->momentum().phi();
105 float pt = (*it)->momentum().perp();
112 if(p > pi) p = p - 2*
pi;
113 if(p < -1*pi) p = p + 2*
pi;
MonitorElement * dnchdpt[3]
edm::ESHandle< ParticleDataTable > pdt
MonitorElement * dnchdeta[3]
MonitorElement * dnchdphi[3]
HepPDT::ParticleData ParticleData
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void HiBasicGenTest::beginJob |
( |
void |
| ) |
|
|
virtual |
Setting the DQM top directories
Booking the ME's
Reimplemented from edm::EDAnalyzer.
Definition at line 25 of file HiBasicGenTest.cc.
References b.
32 for(
int ibin=0; ibin<3; ibin++) {
33 dnchdeta[ibin] =
dbe->
book1D(Form(
"dnchdeta%d",ibin),
";#eta;dN^{ch}/d#eta", 100, -6.0, 6.0);
34 dnchdpt[ibin] =
dbe->
book1D(Form(
"dnchdpt%d",ibin),
";p_{T};dN^{ch}/dp_{T}", 200, 0.0, 100.0);
35 b[ibin] =
dbe->
book1D(Form(
"b%d",ibin),
";b[fm];events",100, 0.0, 20.0);
36 dnchdphi[ibin] =
dbe->
book1D(Form(
"dnchdphi%d",ibin),
";#phi;dN^{ch}/d#phi",100, -3.2, 3.2);
40 dbe->
tag(
b[ibin]->getFullname(),3+ibin*4);
44 rp =
dbe->
book1D(
"phi0",
";#phi_{RP};events",100,-3.2,3.2);
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * dnchdpt[3]
void tag(MonitorElement *me, unsigned int myTag)
MonitorElement * dnchdeta[3]
MonitorElement * dnchdphi[3]
const std::string getFullname(void) const
get full name of ME including Pathname
void setCurrentFolder(const std::string &fullpath)
void HiBasicGenTest::endJob |
( |
void |
| ) |
|
|
virtual |