22 #include "G4StepPoint.hh" 38 SetVerboseLevel(verbn);
49 if (name ==
"FastTimerHitsBarrel") {
52 }
else if (name ==
"FastTimerHitsEndcap") {
64 << name <<
" of type " <<
type;
84 const std::vector<double> & fvec = value.
doubles();
85 int nval = fvec.size();
88 <<
" bins " << nval <<
" < 1 ==> illegal";
99 if (scheme !=
nullptr) {
100 edm::LogInfo(
"MtdSim") <<
"MtdSD: updates numbering scheme for " 110 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
111 int theSize = touch->GetHistoryDepth()+1;
115 for (
int ii = 0;
ii < theSize ;
ii++) {
118 edm::LogInfo(
"MtdSim") <<
"MtdSD::getBaseNumber(): Adding level " <<
ii 119 <<
": " << touch->GetVolume(
ii)->GetName() <<
"[" 120 << touch->GetReplicaNumber(
ii) <<
"]";
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const std::vector< double > & doubles() const
a reference to the double-valued values stored in the given instance of DDValue
void setTimeFactor(double)
Compact representation of the geometrical detector hierarchy.
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
static TrackerG4SimHitNumberingScheme & numberingScheme(const DDCompactView &cpv, const GeometricDet &det)
Detector identifier base class for the MIP Timing Layer.
uint32_t setDetUnitId(const G4Step *) override
virtual uint32_t getUnitID(const MTDBaseNumber &baseNumber) const =0
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
MtdSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
MTDBaseNumber theBaseNumber
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
void getBaseNumber(const G4Step *)
void setNumberingScheme(MTDNumberingScheme *)
MTDNumberingScheme * numberingScheme
void setSize(const int &size)
DDsvalues_type mergedSpecifics() const
void addLevel(const std::string &name, const int ©Number)
bool firstChild()
set the current node to the first child ...
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &)