#include <HCalSD.h>
Public Member Functions | |
virtual double | getEnergyDeposit (G4Step *) |
HCalSD (G4String, const DDCompactView &, SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *) | |
virtual bool | ProcessHits (G4Step *, G4TouchableHistory *) |
virtual uint32_t | setDetUnitId (G4Step *step) |
void | setNumberingScheme (HcalNumberingScheme *) |
virtual | ~HCalSD () |
Public Member Functions inherited from CaloSD | |
CaloSD (G4String aSDname, const DDCompactView &cpv, SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *, int tSlice=1, bool ignoreTkID=false) | |
virtual void | clear () |
virtual void | DrawAll () |
virtual void | EndOfEvent (G4HCofThisEvent *eventHC) |
void | fillHits (edm::PCaloHitContainer &, std::string n) |
virtual void | Initialize (G4HCofThisEvent *HCE) |
virtual void | PrintAll () |
virtual bool | ProcessHits (G4GFlashSpot *aSpot, G4TouchableHistory *) |
virtual | ~CaloSD () |
Public Member Functions inherited from SensitiveCaloDetector | |
SensitiveCaloDetector (std::string &iname, const DDCompactView &cpv, SensitiveDetectorCatalog &clg, edm::ParameterSet const &p) | |
Public Member Functions inherited from SensitiveDetector | |
virtual void | AssignSD (std::string &vname) |
Local3DPoint | ConvertToLocal3DPoint (const G4ThreeVector &point) |
Local3DPoint | FinalStepPosition (G4Step *s, coordinates) |
virtual std::vector< std::string > | getNames () |
Local3DPoint | InitialStepPosition (G4Step *s, coordinates) |
std::string | nameOfSD () |
void | NaNTrap (G4Step *step) |
void | Register () |
SensitiveDetector (std::string &iname, const DDCompactView &cpv, SensitiveDetectorCatalog &, edm::ParameterSet const &p) | |
virtual | ~SensitiveDetector () |
Public Member Functions inherited from Observer< const BeginOfRun * > | |
Observer () | |
void | slotForUpdate (const BeginOfRun *iT) |
virtual | ~Observer () |
Public Member Functions inherited from Observer< const BeginOfEvent * > | |
Observer () | |
void | slotForUpdate (const BeginOfEvent *iT) |
virtual | ~Observer () |
Public Member Functions inherited from Observer< const BeginOfTrack * > | |
Observer () | |
void | slotForUpdate (const BeginOfTrack *iT) |
virtual | ~Observer () |
Public Member Functions inherited from Observer< const EndOfTrack * > | |
Observer () | |
void | slotForUpdate (const EndOfTrack *iT) |
virtual | ~Observer () |
Public Member Functions inherited from Observer< const EndOfEvent * > | |
Observer () | |
void | slotForUpdate (const EndOfEvent *iT) |
virtual | ~Observer () |
Protected Member Functions | |
virtual bool | filterHit (CaloG4Hit *, double) |
virtual void | initRun () |
Protected Member Functions inherited from CaloSD | |
G4bool | checkHit () |
virtual void | clearHits () |
CaloG4Hit * | createNewHit () |
double | getAttenuation (G4Step *aStep, double birk1, double birk2, double birk3) |
virtual uint16_t | getDepth (G4Step *) |
int | getNumberOfHits () |
double | getResponseWt (G4Track *) |
virtual G4bool | getStepInfo (G4Step *aStep) |
virtual int | getTrackID (G4Track *) |
G4bool | hitExists () |
void | resetForNewPrimary (const G4ThreeVector &, double) |
G4ThreeVector | setToGlobal (const G4ThreeVector &, const G4VTouchable *) |
G4ThreeVector | setToLocal (const G4ThreeVector &, const G4VTouchable *) |
virtual void | update (const BeginOfRun *) |
This routine will be called when the appropriate signal arrives. More... | |
virtual void | update (const BeginOfEvent *) |
This routine will be called when the appropriate signal arrives. More... | |
virtual void | update (const BeginOfTrack *trk) |
This routine will be called when the appropriate signal arrives. More... | |
virtual void | update (const EndOfTrack *trk) |
This routine will be called when the appropriate signal arrives. More... | |
virtual void | update (const ::EndOfEvent *) |
void | updateHit (CaloG4Hit *) |
Protected Member Functions inherited from Observer< const EndOfEvent * > | |
virtual void | update (const EndOfEvent *)=0 |
This routine will be called when the appropriate signal arrives. More... | |
Private Member Functions | |
std::vector< double > | getDDDArray (const std::string &, const DDsvalues_type &) |
void | getFromLibrary (G4Step *step, double weight) |
void | getFromParam (G4Step *step, double weight) |
void | getHitFibreBundle (G4Step *step, bool type) |
void | getHitPMT (G4Step *step) |
std::vector< G4String > | getNames (DDFilteredView &) |
void | hitForFibre (G4Step *step, double weight) |
bool | isItConicalBundle (G4LogicalVolume *) |
bool | isItFibre (G4LogicalVolume *) |
bool | isItFibre (G4String) |
bool | isItHF (G4Step *) |
bool | isItHF (G4String) |
bool | isItinFidVolume (G4ThreeVector &) |
bool | isItPMT (G4LogicalVolume *) |
bool | isItScintillator (G4Material *) |
bool | isItStraightBundle (G4LogicalVolume *) |
double | layerWeight (int, const G4ThreeVector &, int, int) |
void | plotHF (G4ThreeVector &pos, bool emType) |
void | plotProfile (G4Step *step, const G4ThreeVector &pos, double edep, double time, int id) |
void | readWeightFromFile (std::string) |
uint32_t | setDetUnitId (int, const G4ThreeVector &, int, int) |
int | setTrackID (G4Step *step) |
Private Attributes | |
bool | applyFidCut |
double | betaThr |
double | birk1 |
double | birk2 |
double | birk3 |
double | deliveredLumi |
TH1F * | dist_ [9] |
double | eminHitHB |
double | eminHitHE |
double | eminHitHF |
double | eminHitHO |
std::vector< G4LogicalVolume * > | fibre1LV |
std::vector< G4LogicalVolume * > | fibre2LV |
std::vector< G4LogicalVolume * > | fibreLV |
std::vector< G4String > | fibreNames |
std::vector< double > | gpar |
std::vector< int > | hfLevels |
std::vector< G4LogicalVolume * > | hfLV |
std::vector< G4String > | hfNames |
HFShower * | hfshower |
TH1F * | hit_ [9] |
TH1F * | hzvem |
TH1F * | hzvhad |
std::vector< double > | layer0wt |
std::map< uint32_t, double > | layerWeights |
HEDarkening * | m_HEDarkening |
HFDarkening * | m_HFDarkening |
std::vector< G4Material * > | materials |
std::vector< G4String > | matNames |
G4int | mumPDG |
G4int | mupPDG |
HcalNumberingFromDDD * | numberingFromDDD |
HcalNumberingScheme * | numberingScheme |
std::vector< G4LogicalVolume * > | pmtLV |
HFShowerFibreBundle * | showerBundle |
HFShowerLibrary * | showerLibrary |
HFShowerParam * | showerParam |
HFShowerPMT * | showerPMT |
bool | testNumber |
TH1F * | time_ [9] |
bool | useBirk |
bool | useFibreBundle |
bool | useHF |
bool | useLayerWt |
bool | useParam |
bool | usePMTHit |
bool | useShowerLibrary |
Additional Inherited Members | |
Public Types inherited from SensitiveDetector | |
enum | coordinates { WorldCoordinates, LocalCoordinates } |
Protected Attributes inherited from CaloSD | |
int | checkHits |
double | correctT |
bool | corrTOFBeam |
CaloG4Hit * | currentHit |
CaloHitID | currentID |
float | edepositEM |
float | edepositHAD |
double | eminHit |
double | eminHitD |
G4int | emPDG |
double | energyCut |
G4ThreeVector | entranceLocal |
G4ThreeVector | entrancePoint |
G4int | epPDG |
bool | forceSave |
G4int | gammaPDG |
float | incidentEnergy |
double | kmaxIon |
double | kmaxNeutron |
double | kmaxProton |
const SimTrackManager * | m_trackManager |
G4ThreeVector | posGlobal |
G4StepPoint * | preStepPoint |
CaloHitID | previousID |
int | primIDSaved |
bool | runInit |
bool | suppressHeavy |
G4Track * | theTrack |
double | tmaxHit |
bool | useMap |
HCalSD::HCalSD | ( | G4String | name, |
const DDCompactView & | cpv, | ||
SensitiveDetectorCatalog & | clg, | ||
edm::ParameterSet const & | p, | ||
const SimTrackManager * | manager | ||
) |
Definition at line 38 of file HCalSD.cc.
References DDFilteredView::addFilter(), applyFidCut, betaThr, birk1, birk2, birk3, deliveredLumi, dist_, eminHitHB, eminHitHE, eminHitHF, eminHitHO, DDSpecificsFilter::equals, fibre1LV, fibre2LV, fibreLV, fibreNames, mergeVDriftHistosByStation::file, DDFilteredView::firstChild(), g, getDDDArray(), SensitiveDetector::getNames(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), gpar, hfLevels, hfLV, hfNames, hfshower, hit_, hzvem, hzvhad, i, edm::Service< T >::isAvailable(), isItFibre(), isItHF(), CaloSD::kmaxIon, CaloSD::kmaxNeutron, CaloSD::kmaxProton, tablePrinter::labels, layer0wt, testEve_cfg::level, fff_deleter::log, LogDebug, DDFilteredView::logicalPart(), m_HEDarkening, m_HFDarkening, TFileDirectory::make(), DDLogicalPart::material(), materials, matNames, DDFilteredView::mergedSpecifics(), TFileService::mkdir(), mumPDG, mupPDG, DDName::name(), SensitiveDetector::name, DDBase< N, C >::name(), DDFilteredView::next(), numberingFromDDD, pmtLV, readWeightFromFile(), DDSpecificsFilter::setCriteria(), setNumberingScheme(), showerBundle, showerLibrary, showerParam, showerPMT, AlCaHLTBitMon_QueryRunRegistry::string, CaloSD::suppressHeavy, groupFilesInBlocks::temp, testNumber, time_, indexGen::title, useBirk, useFibreBundle, useHF, useLayerWt, useParam, usePMTHit, useShowerLibrary, and relativeConstraints::value.
|
virtual |
Definition at line 382 of file HCalSD.cc.
References hfshower, m_HEDarkening, m_HFDarkening, numberingFromDDD, numberingScheme, showerBundle, showerLibrary, showerParam, and showerPMT.
|
protectedvirtual |
Reimplemented from CaloSD.
Definition at line 624 of file HCalSD.cc.
References eminHitHB, eminHitHE, eminHitHF, eminHitHO, CaloG4Hit::getEnergyDeposit(), CaloG4Hit::getUnitID(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, dtDQMClient_cfg::threshold, and CaloSD::tmaxHit.
|
private |
Definition at line 654 of file HCalSD.cc.
References DDfetch(), DDValue::doubles(), edm::hlt::Exception, LogDebug, and relativeConstraints::value.
Referenced by HCalSD().
|
virtual |
Reimplemented from CaloSD.
Definition at line 499 of file HCalSD.cc.
References birk1, birk2, birk3, HEDarkening::degradation(), deliveredLumi, cond::rpcobgas::detid, eta(), CaloSD::getAttenuation(), CaloSD::getResponseWt(), HcalDetId::ietaAbs(), isItScintillator(), TrackInformation::isPrimary(), ke, CaloSD::kmaxIon, CaloSD::kmaxNeutron, CaloSD::kmaxProton, layer0wt, layerWeight(), m_HEDarkening, phi, setDetUnitId(), CaloSD::suppressHeavy, testNumber, CaloSD::theTrack, HcalTestNumbering::unpackHcalIndex(), useBirk, useLayerWt, histoStyle::weight, and detailsBasic3DVector::z.
|
private |
Definition at line 770 of file HCalSD.cc.
References CaloSD::checkHit(), CaloSD::createNewHit(), CaloSD::currentHit, CaloSD::currentID, CaloSD::edepositEM, CaloSD::edepositHAD, CaloSD::emPDG, CaloSD::epPDG, CaloSD::gammaPDG, HFShowerLibrary::getHits(), GetVolume(), i, isItinFidVolume(), GetRecoTauVFromDQM_MC_cff::kk, convertSQLiteXML::ok, plotHF(), plotProfile(), CaloSD::posGlobal, CaloSD::preStepPoint, CaloSD::previousID, CaloSD::resetForNewPrimary(), setDetUnitId(), CaloHitID::setID(), setTrackID(), showerLibrary, CaloSD::theTrack, cond::rpcobgas::time, and CaloSD::updateHit().
Referenced by ProcessHits().
|
private |
Definition at line 885 of file HCalSD.cc.
References CaloSD::checkHit(), CaloSD::createNewHit(), CaloSD::currentHit, CaloSD::currentID, CaloSD::edepositEM, CaloSD::edepositHAD, HFShowerParam::getHits(), i, plotProfile(), CaloSD::posGlobal, CaloSD::preStepPoint, CaloSD::previousID, setDetUnitId(), CaloHitID::setID(), setTrackID(), showerParam, cond::rpcobgas::time, and CaloSD::updateHit().
Referenced by ProcessHits().
|
private |
Definition at line 991 of file HCalSD.cc.
References beta, CaloSD::checkHit(), CaloSD::createNewHit(), CaloSD::currentHit, CaloSD::currentID, CaloSD::edepositEM, CaloSD::edepositHAD, CaloSD::energyCut, HFShowerFibreBundle::getHits(), HFShowerFibreBundle::getRadius(), HcalNumberingScheme::getUnitID(), HcalForward, LogDebug, numberingFromDDD, numberingScheme, phi, plotProfile(), CaloSD::posGlobal, CaloSD::preStepPoint, CaloSD::previousID, CaloSD::resetForNewPrimary(), findQualityFiles::rr, CaloHitID::setID(), showerBundle, CaloSD::theTrack, cond::rpcobgas::time, tmp, HcalNumberingFromDDD::unitID(), and CaloSD::updateHit().
Referenced by ProcessHits().
|
private |
Definition at line 924 of file HCalSD.cc.
References beta, CaloSD::checkHit(), CaloSD::createNewHit(), CaloSD::currentHit, CaloSD::currentID, CaloSD::edepositEM, CaloSD::edepositHAD, CaloSD::energyCut, HFShowerPMT::getHits(), HFShowerPMT::getRadius(), HcalNumberingScheme::getUnitID(), HcalForward, LogDebug, numberingFromDDD, numberingScheme, phi, plotProfile(), CaloSD::posGlobal, CaloSD::preStepPoint, CaloSD::previousID, CaloSD::resetForNewPrimary(), findQualityFiles::rr, CaloHitID::setID(), showerPMT, CaloSD::theTrack, cond::rpcobgas::time, tmp, HcalNumberingFromDDD::unitID(), and CaloSD::updateHit().
Referenced by ProcessHits().
|
private |
Definition at line 679 of file HCalSD.cc.
References DDFilteredView::firstChild(), i, fff_deleter::log, DDFilteredView::logicalPart(), DDName::name(), DDBase< N, C >::name(), DDFilteredView::next(), convertSQLiteXML::ok, and tmp.
|
private |
Definition at line 833 of file HCalSD.cc.
References CaloSD::checkHit(), CaloSD::createNewHit(), CaloSD::currentHit, CaloSD::currentID, CaloSD::edepositEM, CaloSD::edepositHAD, CaloSD::emPDG, CaloSD::epPDG, CaloSD::gammaPDG, HFShower::getHits(), hfshower, i, isItinFidVolume(), plotHF(), plotProfile(), CaloSD::posGlobal, CaloSD::preStepPoint, CaloSD::previousID, setDetUnitId(), CaloHitID::setID(), setTrackID(), CaloSD::theTrack, cond::rpcobgas::time, and CaloSD::updateHit().
Referenced by ProcessHits().
|
protectedvirtual |
Reimplemented from CaloSD.
Definition at line 610 of file HCalSD.cc.
References hfshower, HFShower::initRun(), HFShowerParam::initRun(), HFShowerLibrary::initRun(), LogDebug, mumPDG, mupPDG, showerLibrary, and showerParam.
|
private |
|
private |
Definition at line 717 of file HCalSD.cc.
References fibreLV.
Referenced by HCalSD(), and ProcessHits().
|
private |
|
private |
|
private |
|
private |
Definition at line 753 of file HCalSD.cc.
References applyFidCut, archive::flag, and HFFibreFiducial::PMTNumber().
Referenced by getFromLibrary(), and hitForFibre().
|
private |
|
private |
|
private |
|
private |
Definition at line 1100 of file HCalSD.cc.
References HcalNumberingFromDDD::HcalID::etaR, HcalNumberingFromDDD::HcalID::lay, layerWeights, numberingFromDDD, HcalTestNumbering::packHcalIndex(), HcalNumberingFromDDD::HcalID::phis, HcalNumberingFromDDD::HcalID::subdet, tmp, HcalNumberingFromDDD::unitID(), and HcalNumberingFromDDD::HcalID::zside.
Referenced by getEnergyDeposit().
|
private |
Definition at line 1168 of file HCalSD.cc.
References funct::abs(), gpar, hzvem, and hzvhad.
Referenced by getFromLibrary(), and hitForFibre().
|
private |
Definition at line 1121 of file HCalSD.cc.
References funct::abs(), dist_, newFWLiteAna::found, hit_, customizeTrackingMonitorSeedNumber::idx, cuy::ii, LogDebug, n, SensitiveDetector::name, cond::rpcobgas::time, and time_.
Referenced by getFromLibrary(), getFromParam(), getHitFibreBundle(), getHitPMT(), hitForFibre(), and ProcessHits().
|
virtual |
Reimplemented from CaloSD.
Definition at line 395 of file HCalSD.cc.
References funct::abs(), CaloSD::createNewHit(), CaloSD::currentHit, HFDarkening::degradation(), deliveredLumi, HFDarkening::dose(), CaloSD::edepositEM, CaloSD::edepositHAD, getFromLibrary(), getFromParam(), getHitFibreBundle(), getHitPMT(), CaloSD::getNumberOfHits(), CaloSD::getStepInfo(), CaloSD::hitExists(), hitForFibre(), i, HFDarkening::int_lumi(), isItConicalBundle(), isItFibre(), isItHF(), isItPMT(), isItStraightBundle(), LogDebug, m_HFDarkening, mumPDG, mupPDG, SensitiveDetector::NaNTrap(), NULL, plotProfile(), alignCSCRings::r, showerBundle, showerPMT, useFibreBundle, useParam, usePMTHit, useShowerLibrary, histoStyle::weight, and detailsBasic3DVector::z.
|
private |
Definition at line 1074 of file HCalSD.cc.
References fileCollector2::fName, recoMuon::in, getDQMSummary::infile, layerWeights, HcalTestNumbering::packHcalIndex(), phi, useLayerWt, and ecaldqm::zside().
Referenced by HCalSD().
|
virtual |
Implements CaloSD.
Definition at line 589 of file HCalSD.cc.
References CaloSD::preStepPoint.
Referenced by getEnergyDeposit(), getFromLibrary(), getFromParam(), and hitForFibre().
|
private |
Definition at line 643 of file HCalSD.cc.
References HcalNumberingScheme::getUnitID(), numberingFromDDD, numberingScheme, tmp, and HcalNumberingFromDDD::unitID().
void HCalSD::setNumberingScheme | ( | HcalNumberingScheme * | scheme | ) |
Definition at line 602 of file HCalSD.cc.
References numberingScheme.
Referenced by HCalSD(), HcalTestAnalysis::update(), SimG4HcalValidation::update(), and HcalTB04Analysis::update().
|
private |
Definition at line 1054 of file HCalSD.cc.
References TrackInformation::getIDonCaloSurface(), CaloSD::preStepPoint, CaloSD::previousID, CaloSD::resetForNewPrimary(), CaloSD::theTrack, and CaloHitID::trackID().
Referenced by getFromLibrary(), getFromParam(), and hitForFibre().
|
private |
Definition at line 88 of file HCalSD.h.
Referenced by HCalSD(), and isItinFidVolume().
|
private |
Definition at line 87 of file HCalSD.h.
Referenced by getEnergyDeposit(), and HCalSD().
|
private |
Definition at line 87 of file HCalSD.h.
Referenced by getEnergyDeposit(), and HCalSD().
|
private |
Definition at line 87 of file HCalSD.h.
Referenced by getEnergyDeposit(), and HCalSD().
|
private |
Definition at line 90 of file HCalSD.h.
Referenced by getEnergyDeposit(), HCalSD(), and ProcessHits().
|
private |
Definition at line 98 of file HCalSD.h.
Referenced by HCalSD(), and plotProfile().
|
private |
Definition at line 89 of file HCalSD.h.
Referenced by filterHit(), and HCalSD().
|
private |
Definition at line 89 of file HCalSD.h.
Referenced by filterHit(), and HCalSD().
|
private |
Definition at line 89 of file HCalSD.h.
Referenced by filterHit(), and HCalSD().
|
private |
Definition at line 89 of file HCalSD.h.
Referenced by filterHit(), and HCalSD().
|
private |
Definition at line 96 of file HCalSD.h.
Referenced by HCalSD(), and isItStraightBundle().
|
private |
Definition at line 96 of file HCalSD.h.
Referenced by HCalSD(), and isItConicalBundle().
|
private |
Definition at line 96 of file HCalSD.h.
Referenced by HCalSD(), and isItFibre().
|
private |
Definition at line 94 of file HCalSD.h.
Referenced by HCalSD(), and isItFibre().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 98 of file HCalSD.h.
Referenced by HCalSD(), and plotProfile().
|
private |
|
private |
|
private |
Definition at line 92 of file HCalSD.h.
Referenced by getEnergyDeposit(), and HCalSD().
|
private |
Definition at line 97 of file HCalSD.h.
Referenced by layerWeight(), and readWeightFromFile().
|
private |
Definition at line 84 of file HCalSD.h.
Referenced by getEnergyDeposit(), HCalSD(), and ~HCalSD().
|
private |
Definition at line 85 of file HCalSD.h.
Referenced by HCalSD(), ProcessHits(), and ~HCalSD().
|
private |
Definition at line 95 of file HCalSD.h.
Referenced by HCalSD(), and isItScintillator().
|
private |
|
private |
Definition at line 91 of file HCalSD.h.
Referenced by HCalSD(), initRun(), and ProcessHits().
|
private |
Definition at line 91 of file HCalSD.h.
Referenced by HCalSD(), initRun(), and ProcessHits().
|
private |
Definition at line 77 of file HCalSD.h.
Referenced by getHitFibreBundle(), getHitPMT(), HCalSD(), layerWeight(), setDetUnitId(), and ~HCalSD().
|
private |
Definition at line 78 of file HCalSD.h.
Referenced by getHitFibreBundle(), getHitPMT(), setDetUnitId(), setNumberingScheme(), and ~HCalSD().
|
private |
|
private |
Definition at line 83 of file HCalSD.h.
Referenced by getHitFibreBundle(), HCalSD(), ProcessHits(), and ~HCalSD().
|
private |
|
private |
|
private |
Definition at line 82 of file HCalSD.h.
Referenced by getHitPMT(), HCalSD(), ProcessHits(), and ~HCalSD().
|
private |
Definition at line 86 of file HCalSD.h.
Referenced by getEnergyDeposit(), and HCalSD().
|
private |
Definition at line 98 of file HCalSD.h.
Referenced by HCalSD(), and plotProfile().
|
private |
Definition at line 86 of file HCalSD.h.
Referenced by getEnergyDeposit(), and HCalSD().
|
private |
Definition at line 86 of file HCalSD.h.
Referenced by HCalSD(), and ProcessHits().
|
private |
Definition at line 86 of file HCalSD.h.
Referenced by getEnergyDeposit(), HCalSD(), and readWeightFromFile().
|
private |
Definition at line 88 of file HCalSD.h.
Referenced by HCalSD(), and ProcessHits().
|
private |
Definition at line 86 of file HCalSD.h.
Referenced by HCalSD(), and ProcessHits().
|
private |
Definition at line 88 of file HCalSD.h.
Referenced by HCalSD(), and ProcessHits().