#include <CSCGasCollisions.h>
Public Member Functions | |
CSCGasCollisions (const edm::ParameterSet &pset) | |
bool | dumpGasCollisions (void) const |
bool | saveGasCollisions (void) const |
void | setParticleDataTable (const ParticleDataTable *pdt) |
void | simulate (const PSimHit &, std::vector< LocalPoint > &clusters, std::vector< int > &electrons, CLHEP::HepRandomEngine *) |
virtual | ~CSCGasCollisions () |
Static Public Attributes | |
static const int | MAX_STEPS = 400 |
static const int | N_ENERGY = 63 |
static const int | N_ENTRIES = N_GAMMA*N_ENERGY |
static const int | N_GAMMA = 21 |
Private Member Functions | |
void | fillCollisionsForThisGamma (float, std::vector< float > &) const |
float | generateEnergyLoss (double avCollisions, double anmin, double anmax, const std::vector< float > &collisions, CLHEP::HepRandomEngine *) const |
double | generateStep (double avCollisions, CLHEP::HepRandomEngine *) const |
void | ionize (double energyTransferred, LocalPoint startHere) const |
float | lnEnergyLoss (float, const std::vector< float > &) const |
void | readCollisionTable () |
void | writeSummary (int n_try, int n_steps, double sum_steps, float dedx, const PSimHit &simhit) const |
Private Attributes | |
double | clusterExtent |
double | deCut |
bool | dumpGasCollisions_ |
double | eion |
double | ework |
double | gasDensity |
const std::string | me |
bool | saveGasCollisions_ |
std::vector< float > | theCollisionTable |
CSCCrossGap * | theCrossGap |
std::vector< float > | theEnergyBins |
std::vector< float > | theGammaBins |
const ParticleDataTable * | theParticleDataTable |
Class to handle CSC gas ionization simulation during digitization.
This class contains the port of the old CMSIM/ORCA Fortran routine mc_clus.F, and the GEANT3 code it relied on. Of course the version here is much improved :)
Definition at line 27 of file CSCGasCollisions.h.
CSCGasCollisions::CSCGasCollisions | ( | const edm::ParameterSet & | pset | ) |
Definition at line 54 of file CSCGasCollisions.cc.
References clusterExtent, deCut, dumpGasCollisions(), dumpGasCollisions_, eion, ework, gasDensity, edm::ParameterSet::getUntrackedParameter(), me, readCollisionTable(), and saveGasCollisions().
|
virtual |
Definition at line 79 of file CSCGasCollisions.cc.
References me, and theCrossGap.
|
inline |
Definition at line 38 of file CSCGasCollisions.h.
References dumpGasCollisions_.
Referenced by CSCGasCollisions(), generateEnergyLoss(), generateStep(), and simulate().
|
private |
Definition at line 555 of file CSCGasCollisions.cc.
References bigger, i, LogTrace, me, N_ENERGY, N_GAMMA, theCollisionTable, and theGammaBins.
Referenced by simulate().
|
private |
Definition at line 301 of file CSCGasCollisions.cc.
References CSCCrossGap::addEloss(), CSCCrossGap::beta2(), dumpGasCollisions(), create_public_lumi_plots::exp, CSCCrossGap::gamma(), lnEnergyLoss(), dqm-mbProfile::log, LogTrace, me, and theCrossGap.
Referenced by simulate().
|
private |
Definition at line 286 of file CSCGasCollisions.cc.
References CSCCrossGap::addStep(), dumpGasCollisions(), LogTrace, me, relval_parameters_module::step, and theCrossGap.
Referenced by simulate().
|
private |
Definition at line 323 of file CSCGasCollisions.cc.
References CSCCrossGap::addCluster(), CSCCrossGap::addElectrons(), CSCCrossGap::addElectronToBack(), clusterExtent, eion, ework, gasDensity, LogTrace, me, CSCCrossGap::noOfClusters(), CSCCrossGap::noOfElectrons(), funct::pow(), theCrossGap, and CSCCrossGap::unitVector().
Referenced by simulate().
|
private |
Definition at line 515 of file CSCGasCollisions.cc.
References spr::find(), LogTrace, me, and theEnergyBins.
Referenced by generateEnergyLoss().
|
private |
Definition at line 84 of file CSCGasCollisions.cc.
References Exception, validate-o2o-wbm::f1, groupFilesInBlocks::fin, i, j, LogTrace, me, N_ENERGY, N_ENTRIES, N_GAMMA, FileInPath::name(), fed_dqm_sourceclient-live_cfg::path, theCollisionTable, theEnergyBins, and theGammaBins.
Referenced by CSCGasCollisions().
|
inline |
Definition at line 39 of file CSCGasCollisions.h.
References saveGasCollisions_.
Referenced by CSCGasCollisions().
void CSCGasCollisions::setParticleDataTable | ( | const ParticleDataTable * | pdt | ) |
Definition at line 153 of file CSCGasCollisions.cc.
References theParticleDataTable.
Referenced by CSCWireHitSim::setParticleDataTable().
void CSCGasCollisions::simulate | ( | const PSimHit & | simhit, |
std::vector< LocalPoint > & | clusters, | ||
std::vector< int > & | electrons, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 159 of file CSCGasCollisions.cc.
References assert(), deCut, dumpGasCollisions(), eion, CSCCrossGap::electrons(), PSimHit::energyLoss(), PSimHit::entryPoint(), PSimHit::exitPoint(), create_public_lumi_plots::exp, fillCollisionsForThisGamma(), generateEnergyLoss(), generateStep(), CSCCrossGap::ionClusters(), ionize(), CSCCrossGap::length(), CSCCrossGap::logGamma(), LogTrace, ResonanceBuilder::mass, MAX_STEPS, me, N_ENERGY, PSimHit::pabs(), PSimHit::particleType(), relval_parameters_module::step, theCrossGap, theParticleDataTable, CSCCrossGap::unitVector(), and writeSummary().
Referenced by CSCWireHitSim::getIonizationClusters().
|
private |
Definition at line 403 of file CSCGasCollisions.cc.
References bigger, eion, CSCCrossGap::electrons(), HI_PhotonSkim_cff::electrons, CSCCrossGap::eLossPerStep(), PSimHit::energyLoss(), PSimHit::entryPoint(), PSimHit::exitPoint(), spr::find(), i, CSCCrossGap::ionClusters(), MAX_STEPS, PSimHit::pabs(), PSimHit::particleType(), CSCCrossGap::stepLengths(), relval_machine::steps, and theCrossGap.
Referenced by simulate().
|
private |
Definition at line 69 of file CSCGasCollisions.h.
Referenced by CSCGasCollisions(), and ionize().
|
private |
Definition at line 66 of file CSCGasCollisions.h.
Referenced by CSCGasCollisions(), and simulate().
|
private |
Definition at line 78 of file CSCGasCollisions.h.
Referenced by CSCGasCollisions(), and dumpGasCollisions().
|
private |
Definition at line 67 of file CSCGasCollisions.h.
Referenced by CSCGasCollisions(), ionize(), simulate(), and writeSummary().
|
private |
Definition at line 68 of file CSCGasCollisions.h.
Referenced by CSCGasCollisions(), and ionize().
|
private |
Definition at line 60 of file CSCGasCollisions.h.
Referenced by CSCGasCollisions(), and ionize().
|
static |
Definition at line 44 of file CSCGasCollisions.h.
Referenced by simulate(), and writeSummary().
|
private |
Definition at line 59 of file CSCGasCollisions.h.
Referenced by CSCGasCollisions(), fillCollisionsForThisGamma(), generateEnergyLoss(), generateStep(), ionize(), lnEnergyLoss(), readCollisionTable(), simulate(), and ~CSCGasCollisions().
|
static |
Definition at line 42 of file CSCGasCollisions.h.
Referenced by fillCollisionsForThisGamma(), readCollisionTable(), and simulate().
Definition at line 43 of file CSCGasCollisions.h.
Referenced by readCollisionTable().
|
static |
Definition at line 41 of file CSCGasCollisions.h.
Referenced by fillCollisionsForThisGamma(), and readCollisionTable().
|
private |
Definition at line 77 of file CSCGasCollisions.h.
Referenced by saveGasCollisions().
|
private |
Definition at line 73 of file CSCGasCollisions.h.
Referenced by fillCollisionsForThisGamma(), and readCollisionTable().
|
private |
Definition at line 75 of file CSCGasCollisions.h.
Referenced by generateEnergyLoss(), generateStep(), ionize(), simulate(), writeSummary(), and ~CSCGasCollisions().
|
private |
Definition at line 72 of file CSCGasCollisions.h.
Referenced by lnEnergyLoss(), and readCollisionTable().
|
private |
Definition at line 71 of file CSCGasCollisions.h.
Referenced by fillCollisionsForThisGamma(), and readCollisionTable().
|
private |
Definition at line 76 of file CSCGasCollisions.h.
Referenced by setParticleDataTable(), and simulate().