#include <ZdcShowerLibrary.h>
Classes | |
struct | Hit |
Public Member Functions | |
int | encodePartID (G4int parCode) |
int | getEnergyFromLibrary (const G4ThreeVector &posHit, const G4ThreeVector &momDir, double energy, G4int parCode, HcalZDCDetId::Section section, bool side, int channel) |
std::vector< Hit > & | getHits (G4Step *aStep, bool &ok) |
void | initRun (G4ParticleTable *theParticleTable) |
int | photonFluctuation (double eav, double esig, double edis) |
ZdcShowerLibrary (std::string &name, const DDCompactView &cpv, edm::ParameterSet const &p) | |
~ZdcShowerLibrary () | |
Private Attributes | |
G4int | anuePDG |
G4int | anumuPDG |
G4int | anutauPDG |
G4int | emPDG |
G4int | epPDG |
G4int | etaPDG |
G4int | gammaPDG |
G4int | geantinoPDG |
std::vector < ZdcShowerLibrary::Hit > | hits |
int | npe |
G4int | nuePDG |
G4int | numuPDG |
G4int | nutauPDG |
G4int | pi0PDG |
bool | verbose |
Definition at line 23 of file ZdcShowerLibrary.h.
ZdcShowerLibrary::ZdcShowerLibrary | ( | std::string & | name, |
const DDCompactView & | cpv, | ||
edm::ParameterSet const & | p | ||
) |
Definition at line 19 of file ZdcShowerLibrary.cc.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hits, and npe.
ZdcShowerLibrary::~ZdcShowerLibrary | ( | ) |
Definition at line 29 of file ZdcShowerLibrary.cc.
int ZdcShowerLibrary::encodePartID | ( | G4int | parCode | ) |
Definition at line 284 of file ZdcShowerLibrary.cc.
References emPDG, epPDG, and gammaPDG.
Referenced by getEnergyFromLibrary(), and getHits().
int ZdcShowerLibrary::getEnergyFromLibrary | ( | const G4ThreeVector & | posHit, |
const G4ThreeVector & | momDir, | ||
double | energy, | ||
G4int | parCode, | ||
HcalZDCDetId::Section | section, | ||
bool | side, | ||
int | channel | ||
) |
Definition at line 166 of file ZdcShowerLibrary.cc.
References encodePartID(), fact, GeV, LogDebug, photonFluctuation(), funct::pow(), theXChannelBoundaries, and X0.
Referenced by getHits().
std::vector< ZdcShowerLibrary::Hit > & ZdcShowerLibrary::getHits | ( | G4Step * | aStep, |
bool & | ok | ||
) |
Definition at line 56 of file ZdcShowerLibrary.cc.
References ZdcShowerLibrary::Hit::DeEM, ZdcShowerLibrary::Hit::DeHad, ZdcShowerLibrary::Hit::depth, HLT_25ns14e33_v1_cff::depth, ZdcShowerLibrary::Hit::detID, HcalZDCDetId::EM, encodePartID(), relval_parameters_module::energy, ZdcShowerLibrary::Hit::entryLocal, geantinoPDG, getEnergyFromLibrary(), HcalZDCDetId::HAD, hits, i, LogDebug, npe, ZdcShowerLibrary::Hit::position, theXChannelBoundaries, theZHadChannelBoundaries, theZSectionBoundaries, ZdcShowerLibrary::Hit::time, X0, Y0, and Z0.
Referenced by ZdcSD::getFromLibrary().
void ZdcShowerLibrary::initRun | ( | G4ParticleTable * | theParticleTable | ) |
int ZdcShowerLibrary::photonFluctuation | ( | double | eav, |
double | esig, | ||
double | edis | ||
) |
Definition at line 274 of file ZdcShowerLibrary.cc.
Referenced by getEnergyFromLibrary().
|
private |
Definition at line 59 of file ZdcShowerLibrary.h.
Referenced by initRun().
|
private |
Definition at line 59 of file ZdcShowerLibrary.h.
Referenced by initRun().
|
private |
Definition at line 59 of file ZdcShowerLibrary.h.
Referenced by initRun().
|
private |
Definition at line 57 of file ZdcShowerLibrary.h.
Referenced by encodePartID(), and initRun().
|
private |
Definition at line 57 of file ZdcShowerLibrary.h.
Referenced by encodePartID(), and initRun().
|
private |
Definition at line 58 of file ZdcShowerLibrary.h.
Referenced by initRun().
|
private |
Definition at line 57 of file ZdcShowerLibrary.h.
Referenced by encodePartID(), and initRun().
|
private |
Definition at line 59 of file ZdcShowerLibrary.h.
|
private |
Definition at line 62 of file ZdcShowerLibrary.h.
Referenced by getHits(), and ZdcShowerLibrary().
|
private |
Definition at line 61 of file ZdcShowerLibrary.h.
Referenced by getHits(), and ZdcShowerLibrary().
|
private |
Definition at line 58 of file ZdcShowerLibrary.h.
Referenced by initRun().
|
private |
Definition at line 58 of file ZdcShowerLibrary.h.
Referenced by initRun().
|
private |
Definition at line 58 of file ZdcShowerLibrary.h.
Referenced by initRun().
|
private |
Definition at line 58 of file ZdcShowerLibrary.h.
Referenced by initRun().
|
private |
Definition at line 56 of file ZdcShowerLibrary.h.