#include <HFShowerLibrary.h>
Classes | |
struct | BranchCache |
struct | BranchReader |
struct | FileParams |
struct | Hit |
struct | Params |
struct | VersionInfo |
Public Member Functions | |
std::vector< Hit > | fillHits (const G4ThreeVector &p, const G4ThreeVector &v, int parCode, double parEnergy, bool &ok, double weight, double time, bool onlyLong=false) |
std::vector< Hit > | getHits (const G4Step *aStep, bool &ok, double weight, bool onlyLong=false) |
HFShowerLibrary (const std::string &name, const HcalDDDSimConstants *hcons, const HcalSimulationParameters *hps, edm::ParameterSet const &p) | |
HFShowerLibrary (Params const &, FileParams const &, HFFibre::Params) | |
~HFShowerLibrary () | |
Private Types | |
enum | FileFormat { FileFormat::kOld, FileFormat::kNew, FileFormat::kNewV3 } |
Private Member Functions | |
HFShowerPhotonCollection | extrapolate (int, double) |
HFShowerPhotonCollection | getRecord (int, int) const |
HFShowerLibrary (const HcalDDDSimConstants *hcons, const HcalSimulationParameters *hps, edm::ParameterSet const &hfShower, edm::ParameterSet const &hfShowerLibrary) | |
HFShowerPhotonCollection | interpolate (int, double) |
VersionInfo | loadEventInfo (TBranch *, int fileVersion) |
bool | rInside (double r) const |
void | storePhoton (HFShowerPhoton const &iPhoton, HFShowerPhotonCollection &iPhotons) const |
Private Attributes | |
bool | applyFidCut_ |
double | backProb_ |
double | dphi_ |
BranchReader | emBranch_ |
bool | equalizeTimeShift_ |
int | evtPerBin_ |
HFFibre | fibre_ |
std::vector< double > | gpar_ |
BranchReader | hadBranch_ |
std::unique_ptr< TFile > | hf_ |
int | nMomBin_ |
std::vector< double > | pmom_ |
double | probMax_ |
double | rMax_ |
double | rMin_ |
int | totEvents_ |
bool | verbose_ |
Definition at line 28 of file HFShowerLibrary.h.
|
strongprivate |
Enumerator | |
---|---|
kOld | |
kNew | |
kNewV3 |
Definition at line 90 of file HFShowerLibrary.h.
HFShowerLibrary::HFShowerLibrary | ( | const std::string & | name, |
const HcalDDDSimConstants * | hcons, | ||
const HcalSimulationParameters * | hps, | ||
edm::ParameterSet const & | p | ||
) |
Definition at line 77 of file HFShowerLibrary.cc.
HFShowerLibrary::~HFShowerLibrary | ( | ) |
HFShowerLibrary::HFShowerLibrary | ( | Params const & | iParams, |
FileParams const & | iFileParams, | ||
HFFibre::Params | iFibreParams | ||
) |
Definition at line 87 of file HFShowerLibrary.cc.
References cms::cuda::assert(), backProb_, HFShowerLibrary::FileParams::branchEvInfo_, HFShowerLibrary::FileParams::cacheBranches_, visDQMUpload::context, dphi_, emBranch_, HFShowerLibrary::FileParams::emBranchName_, equalizeTimeShift_, edmPickEvents::event, evtPerBin_, Exception, DQMFileSaver_cfi::fileFormat, HFShowerLibrary::FileParams::fileName_, HFShowerLibrary::FileParams::fileVersion_, hadBranch_, HFShowerLibrary::FileParams::hadBranchName_, hf_, mps_fire::i, info(), kNew, kNewV3, kOld, HFShowerLibrary::VersionInfo::libVers_, HFShowerLibrary::VersionInfo::listVersion_, loadEventInfo(), nMomBin_, hltrates_dqm_sourceclient-live_cfg::offset, or, pmom_, probMax_, rMax_, rMin_, AlCaHLTBitMon_QueryRunRegistry::string, totEvents_, and verbose_.
|
private |
Definition at line 69 of file HFShowerLibrary.cc.
|
private |
Definition at line 656 of file HFShowerLibrary.cc.
References evtPerBin_, getRecord(), createfilelist::int, dqmiolumiharvest::j, nMomBin_, l1ctLayer1_cff::nPhoton, displacedMuons_cfi::photon, BPHMonitor_cfi::photons, pmom_, alignCSCRings::r, storePhoton(), totEvents_, and w().
Referenced by fillHits().
std::vector< HFShowerLibrary::Hit > HFShowerLibrary::fillHits | ( | const G4ThreeVector & | p, |
const G4ThreeVector & | v, | ||
int | parCode, | ||
double | parEnergy, | ||
bool & | ok, | ||
double | weight, | ||
double | time, | ||
bool | onlyLong = false |
||
) |
Definition at line 243 of file HFShowerLibrary.cc.
References funct::abs(), applyFidCut_, HFFibre::attLength(), backProb_, funct::cos(), HFShowerLibrary::Hit::depth, LEDCalibrationChannels::depth, dphi_, equalizeTimeShift_, JetChargeProducer_cfi::exp, extrapolate(), fibre_, gpar_, mps_fire::i, createfilelist::int, interpolate(), G4TrackToParticleID::isGammaElectronPositron(), G4TrackToParticleID::isStableHadron(), nMomBin_, convertSQLiteXML::ok, AlCaHLTBitMon_ParallelJobs::p, displacedMuons_cfi::photon, pmom_, HFShowerLibrary::Hit::position, probMax_, alignCSCRings::r, diffTwoXMLs::r1, diffTwoXMLs::r2, rInside(), funct::sin(), remoteMonitoring_LASER_era2018_cfg::threshold, HFShowerLibrary::Hit::time, funct::true, HFFibre::tShift(), geometryCSVtoXML::xx, geometryCSVtoXML::yy, hit::z, HFFibre::zShift(), gpuVertexFinder::zv, and geometryCSVtoXML::zz.
Referenced by getHits().
std::vector< HFShowerLibrary::Hit > HFShowerLibrary::getHits | ( | const G4Step * | aStep, |
bool & | ok, | ||
double | weight, | ||
bool | onlyLong = false |
||
) |
Definition at line 202 of file HFShowerLibrary.cc.
References funct::cos(), fillHits(), gpar_, funct::sin(), and HLT_2023v12_cff::track.
|
private |
Definition at line 527 of file HFShowerLibrary.cc.
References emBranch_, HFShowerLibrary::BranchReader::getRecord(), hadBranch_, dqmiolumiharvest::j, l1ctLayer1_cff::nPhoton, and AlCaHarvesting_cff::record.
Referenced by extrapolate(), and interpolate().
|
private |
Definition at line 575 of file HFShowerLibrary.cc.
References evtPerBin_, getRecord(), createfilelist::int, dqmiolumiharvest::j, nMomBin_, l1ctLayer1_cff::nPhoton, displacedMuons_cfi::photon, BPHMonitor_cfi::photons, pmom_, alignCSCRings::r, storePhoton(), totEvents_, and w().
Referenced by fillHits().
|
private |
Definition at line 544 of file HFShowerLibrary.cc.
References MicroEventContent_cff::branch, evtPerBin_, mps_fire::i, HFShowerLibrary::VersionInfo::libVers_, HFShowerLibrary::VersionInfo::listVersion_, nMomBin_, pmom_, and totEvents_.
Referenced by HFShowerLibrary().
|
private |
Definition at line 411 of file HFShowerLibrary.cc.
References alignCSCRings::r, rMax_, and rMin_.
Referenced by fillHits().
|
private |
Definition at line 722 of file HFShowerLibrary.cc.
Referenced by extrapolate(), and interpolate().
|
private |
Definition at line 139 of file HFShowerLibrary.h.
Referenced by fillHits().
|
private |
Definition at line 144 of file HFShowerLibrary.h.
Referenced by fillHits(), and HFShowerLibrary().
|
private |
Definition at line 145 of file HFShowerLibrary.h.
Referenced by fillHits(), and HFShowerLibrary().
|
private |
Definition at line 136 of file HFShowerLibrary.h.
Referenced by getRecord(), and HFShowerLibrary().
|
private |
Definition at line 143 of file HFShowerLibrary.h.
Referenced by fillHits(), and HFShowerLibrary().
|
private |
Definition at line 140 of file HFShowerLibrary.h.
Referenced by extrapolate(), HFShowerLibrary(), interpolate(), and loadEventInfo().
|
private |
Definition at line 133 of file HFShowerLibrary.h.
Referenced by fillHits().
|
private |
Definition at line 146 of file HFShowerLibrary.h.
Referenced by fillHits(), and getHits().
|
private |
Definition at line 137 of file HFShowerLibrary.h.
Referenced by getRecord(), and HFShowerLibrary().
|
private |
Definition at line 134 of file HFShowerLibrary.h.
Referenced by HFShowerLibrary(), and ~HFShowerLibrary().
|
private |
Definition at line 140 of file HFShowerLibrary.h.
Referenced by extrapolate(), fillHits(), HFShowerLibrary(), interpolate(), and loadEventInfo().
|
private |
Definition at line 141 of file HFShowerLibrary.h.
Referenced by extrapolate(), fillHits(), HFShowerLibrary(), interpolate(), and loadEventInfo().
|
private |
Definition at line 144 of file HFShowerLibrary.h.
Referenced by fillHits(), and HFShowerLibrary().
|
private |
Definition at line 145 of file HFShowerLibrary.h.
Referenced by HFShowerLibrary(), and rInside().
|
private |
Definition at line 145 of file HFShowerLibrary.h.
Referenced by HFShowerLibrary(), and rInside().
|
private |
Definition at line 140 of file HFShowerLibrary.h.
Referenced by extrapolate(), HFShowerLibrary(), interpolate(), and loadEventInfo().
|
private |
Definition at line 139 of file HFShowerLibrary.h.
Referenced by HFShowerLibrary().