#include <ParticleParameters.h>
Collaboration diagram for FastShower::ParticleParameters:
Public Types | |
enum | Region { barrel, endcap, fcal, beyond } |
Public Methods | |
ParticleParameters () | |
constructors | |
ParticleParameters (double eta, double phi, double energy, int pdgId) | |
default constructor | |
ParticleParameters (double eta, double phi, double delPhi, double delEta, double energy, Region reg, int pdgId) | |
void | setEnergyLimiter (const EnergyLimiter *) |
all data////////////////////////////////////////////////////////////////////// | |
double | phi () const |
reset the energy limiter | |
double | eta () const |
phi of impact point | |
double | delPhi () const |
eta of impact point | |
double | delEta () const |
(cell0-impact point) phi | |
double | energy () const |
(cell0-impact point) eta | |
double | rawEnergy () const |
limited e | |
Region | region () const |
raw energy | |
unsigned short int | quadrant () const |
Endcap or barrel? | |
bool | isHadron () const |
cell0 quadrant | |
bool | isPhoton () const |
particle type info | |
bool | isElectron () const |
particle type info | |
void | fromIDebug (const IDebug *) const |
particle type info | |
void | dumpTrace () const |
for traceback | |
Private Methods | |
void | calcQuadrant () |
print traceback | |
Private Attributes | |
double | m_phi |
Fill in the quadrant number; IP = impact point. | |
double | m_eta |
Phi at IP (determines cell0). | |
double | m_delPhi |
eta at IP (determines cell0) | |
double | m_delEta |
phi dist, IP-> center points of cell0 | |
double | m_energy |
eta dist IP-> center points of cell0 | |
Region | m_region |
incomming particle energy | |
unsigned short int | m_quadrant |
endcap or barrel | |
SP< EnergyLimiter > | m_eLimiter |
quadrant struck in cell0; | |
ParticleType | m_particleType |
function object to limit energy range | |
SP< TraceBack > | m_traceBack |
particle ID relevant to showering |
Definition at line 36 of file ParticleParameters.h.
|
Definition at line 38 of file ParticleParameters.h.
|
|
constructors
Definition at line 8 of file ParticleParameters.cxx.
00008 : 00009 m_phi(0.), 00010 m_eta(0.), 00011 m_delPhi(0.), 00012 m_delEta(0.), 00013 m_energy(0.), 00014 m_region(barrel), 00015 m_eLimiter(new EnergyLimiter(DBL_EPSILON, DBL_MAX)), 00016 m_particleType(ParticleType()), 00017 m_traceBack(new TraceBack()){ 00018 } |
|
default constructor
|
|
Definition at line 20 of file ParticleParameters.cxx. References calcQuadrant().
00026 : 00027 m_phi(phi), m_eta(eta), m_delPhi(delPhi), m_delEta(delEta), 00028 m_energy(energy), m_region(reg), m_quadrant(0), 00029 m_eLimiter(new EnergyLimiter(DBL_EPSILON, DBL_MAX)), 00030 m_particleType(ParticleType(pdgId)), m_traceBack(new TraceBack()){ 00031 00032 this->calcQuadrant(); 00033 00034 } |
|
all data//////////////////////////////////////////////////////////////////////
Definition at line 80 of file ParticleParameters.h. References m_eLimiter. Referenced by FastShower::GridletForger::makeParameters(), and FastShower::Showerer::shower().
00080 { 00081 m_eLimiter=new EnergyLimiter(*el); 00082 } |
|
reset the energy limiter
Definition at line 85 of file ParticleParameters.h. References m_phi. Referenced by FastShower::GridletForger::makeGridlet(), and FastShower::operator<<().
00085 { return m_phi;} |
|
phi of impact point
Definition at line 88 of file ParticleParameters.h. References m_eta. Referenced by FastShower::GridletForger::makeGridlet(), FastShower::operator<<(), FastShower::SmearHardPhoton::value(), FastShower::SmearElectron::value(), FastShower::HadHcalEtaResponseEc::value(), FastShower::HadHcalEtaResponseBar::value(), FastShower::HadEcalEtaResponseEc::value(), FastShower::HadEcalEtaResponseBar::value(), and FastShower::EmEtaResponse::value().
00088 { return m_eta;} |
|
|
|
|
|
raw energy
Definition at line 105 of file ParticleParameters.h. References m_region. Referenced by FastShower::SoftPhotonEcAcceptor::accept(), FastShower::SoftPhotonBarAcceptor::accept(), FastShower::HardPhotonEcAcceptor::accept(), FastShower::HardPhotonBarAcceptor::accept(), FastShower::HadronEcAcceptor::accept(), FastShower::HadronBarAcceptor::accept(), FastShower::ElectronEcAcceptor::accept(), FastShower::ElectronBarAcceptor::accept(), FastShower::GridletForger::makeParameters(), and FastShower::operator<<().
00105 { 00106 return m_region; 00107 } |
|
Endcap or barrel?
Definition at line 110 of file ParticleParameters.h. References m_quadrant. Referenced by FastShower::HaloDepositor::deposit(), FastShower::CoreDepositor::deposit(), and FastShower::operator<<().
00110 { 00111 return m_quadrant;} |
|
cell0 quadrant
Definition at line 114 of file ParticleParameters.h. References FastShower::ParticleType::isHadron(), and m_particleType. Referenced by FastShower::HadronEcAcceptor::accept(), FastShower::HadronBarAcceptor::accept(), FastShower::GridletForger::makeParameters(), and FastShower::operator<<().
00114 { 00115 return m_particleType.isHadron(); 00116 } |
|
particle type info
Definition at line 119 of file ParticleParameters.h. References FastShower::ParticleType::isPhoton(), and m_particleType. Referenced by FastShower::SoftPhotonEcAcceptor::accept(), FastShower::SoftPhotonBarAcceptor::accept(), FastShower::HardPhotonEcAcceptor::accept(), FastShower::HardPhotonBarAcceptor::accept(), and FastShower::operator<<().
00119 { 00120 return m_particleType.isPhoton(); 00121 } |
|
particle type info
Definition at line 124 of file ParticleParameters.h. References FastShower::ParticleType::isElectron(), and m_particleType. Referenced by FastShower::ElectronEcAcceptor::accept(), FastShower::ElectronBarAcceptor::accept(), and FastShower::operator<<().
00124 { 00125 return m_particleType.isElectron(); 00126 } |
|
particle type info
Definition at line 43 of file ParticleParameters.cxx. References m_traceBack, FastShower::IDebug::name(), and FastShower::IDebug::text(). Referenced by FastShower::DepositorPtr::deposit(), and FastShower::ShowererPtr::shower().
00043 { 00044 m_traceBack->add( d->name()+" "+d->text() ); 00045 //this->dumpTrace(); 00046 } |
|
for traceback
Definition at line 48 of file ParticleParameters.cxx.
00048 { 00049 cout<<this; 00050 //m_traceBack->dump(); 00051 } |
|
print traceback
Definition at line 36 of file ParticleParameters.cxx. References m_delEta, m_delPhi, and m_quadrant. Referenced by ParticleParameters().
00036 { 00037 if(m_delPhi>=0. && m_delEta>=0. ) m_quadrant=0; 00038 if(m_delPhi>=0. && m_delEta< 0. ) m_quadrant=1; 00039 if(m_delPhi< 0. && m_delEta< 0. ) m_quadrant=2; 00040 if(m_delPhi< 0. && m_delEta>=0. ) m_quadrant=3; 00041 } |
|
Fill in the quadrant number; IP = impact point.
Definition at line 63 of file ParticleParameters.h. Referenced by phi(). |
|
Phi at IP (determines cell0).
Definition at line 64 of file ParticleParameters.h. Referenced by eta(). |
|
eta at IP (determines cell0)
Definition at line 65 of file ParticleParameters.h. Referenced by calcQuadrant(), and delPhi(). |
|
phi dist, IP-> center points of cell0
Definition at line 66 of file ParticleParameters.h. Referenced by calcQuadrant(), and delEta(). |
|
eta dist IP-> center points of cell0
Definition at line 67 of file ParticleParameters.h. Referenced by energy(), and rawEnergy(). |
|
incomming particle energy
Definition at line 68 of file ParticleParameters.h. Referenced by region(). |
|
endcap or barrel
Definition at line 69 of file ParticleParameters.h. Referenced by calcQuadrant(), and quadrant(). |
|
quadrant struck in cell0;
Definition at line 70 of file ParticleParameters.h. Referenced by energy(), and setEnergyLimiter(). |
|
function object to limit energy range
Definition at line 71 of file ParticleParameters.h. Referenced by isElectron(), isHadron(), and isPhoton(). |
|
particle ID relevant to showering
Definition at line 72 of file ParticleParameters.h. Referenced by fromIDebug(). |