4 #include "CLHEP/Units/GlobalSystemOfUnits.h" 5 #include "G4LogicalVolumeStore.hh" 27 <<
" with three constants kB = " <<
birk1_ <<
", C1 = " <<
birk2_ <<
", C2 = " <<
birk3_;
31 auto const point = aStep->GetPreStepPoint();
34 double destep = aStep->GetTotalEnergyDeposit();
35 double wt2 = aStep->GetTrack()->GetWeight();
36 double weight = (wt2 > 0.0) ? wt2 : 1.0;
41 edm::LogVerbatim(
"HGCSim") <<
"HGCalTB16SD01: Detector " <<
point->GetTouchable()->GetVolume()->GetName() <<
" with " 42 <<
point->GetMaterial()->GetName() <<
" weight " <<
weight <<
":" << wt2;
48 const G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
49 const G4VTouchable* touch = preStepPoint->GetTouchable();
51 int det(1),
x(0),
y(0);
52 int lay = (touch->GetReplicaNumber(0));
68 uint32_t
idx = (det & 15) << 28;
69 idx += (lay & 127) << 21;
70 idx += (iy & 1) << 19;
76 edm::LogVerbatim(
"HGCSim") <<
"HGCalTB16SD01: Detector " << det <<
" Layer " << lay <<
" x " <<
x <<
" " << ix <<
" " 77 <<
ixx <<
" y " <<
y <<
" " << iy <<
" " <<
iyy <<
" ID " << std::hex <<
idx <<
std::dec;
83 det = (
idx >> 28) & 15;
84 lay = (
idx >> 21) & 127;
85 y = (
idx >> 10) & 511;
86 if (((
idx >> 19) & 1) == 1)
89 if (((
idx >> 9) & 1) == 1)
100 <<
" is initialized to : " <<
matScin_;
Log< level::Info, true > LogVerbatim
double getEnergyDeposit(const G4Step *) override
T getParameter(std::string const &) const
static void unpackIndex(const uint32_t &idx, int &det, int &lay, int &x, int &y)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
HGCalTB16SD01(const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
uint32_t setDetUnitId(const G4Step *step) override
double getAttenuation(const G4Step *aStep, double birk1, double birk2, double birk3) const
void initialize(const G4StepPoint *point)
static uint32_t packIndex(int det, int lay, int x, int y)
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point