23 #include "G4StepPoint.hh" 24 #include "G4VPhysicalVolume.hh" 40 SetVerboseLevel(verbn);
52 edm::LogInfo(
"FastTimerSim") <<
"FastTimerSD: Instantiation completed for " 53 << name <<
" of type " <<
type_;
64 int iz = (global.z() > 0) ? 1 : -1;
65 std::pair<int,int> izphi = ((
ftcons) ? ((
type_ == 1) ?
68 (std::pair<int,int>(0,0)));
72 <<
"Volume " << aStep->GetPreStepPoint()->GetPhysicalVolume()->GetName()
74 <<
" Iz(eta)phi " << izphi.first <<
":" << izphi.second <<
":" 75 << iz <<
" id " << std::hex <<
id <<
std::dec;
88 edm::LogError(
"FastTimerSim") <<
"FastTimerSD : Cannot find FastTimeDDDConstants";
89 throw cms::Exception(
"Unknown",
"FastTimerSD") <<
"Cannot find FastTimeDDDConstants\n";
93 <<
"FastTimerSD::Initialized with FastTimeDDDConstants\n";
102 const std::vector<double> & fvec = value.
doubles();
103 int nval = fvec.size();
105 edm::LogError(
"FastTimerSim") <<
"FastTimerSD : # of " << str
106 <<
" bins " << nval <<
" < 1 ==> illegal";
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)
FastTimerSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
std::pair< int, int > getEtaPhi(double r, double phi) const
const G4ThreeVector & getLocalEntryPoint() const
constexpr uint32_t rawId() const
get the raw id
Compact representation of the geometrical detector hierarchy.
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
void update(const BeginOfJob *) override
This routine will be called when the appropriate signal arrives.
const FastTimeDDDConstants * ftcons
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
std::pair< int, int > getZPhi(double z, double phi) const
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::...
Abs< T >::type abs(const T &t)
uint32_t setDetUnitId(const G4Step *) override
const G4ThreeVector & getGlobalEntryPoint() const
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &)
DDsvalues_type mergedSpecifics() const
bool firstChild()
set the current node to the first child ...