|
|
Go to the documentation of this file.
5 #include "CLHEP/Units/GlobalSystemOfUnits.h"
6 #include "G4LogicalVolumeStore.hh"
7 #include "G4Material.hh"
24 static uint32_t
packIndex(
int det,
int lay,
int x,
int y);
25 static void unpackIndex(
const uint32_t&
idx,
int& det,
int& lay,
int&
x,
int&
y);
56 <<
" with three constants kB = " <<
birk1_ <<
", C1 = " <<
birk2_ <<
", C2 = " <<
birk3_;
60 auto const point = aStep->GetPreStepPoint();
63 double destep = aStep->GetTotalEnergyDeposit();
64 double wt2 = aStep->GetTrack()->GetWeight();
65 double weight = (wt2 > 0.0) ? wt2 : 1.0;
70 edm::LogVerbatim(
"HGCSim") <<
"HGCalTB16SD01: Detector " <<
point->GetTouchable()->GetVolume()->GetName() <<
" with "
71 <<
point->GetMaterial()->GetName() <<
" weight " <<
weight <<
":" << wt2;
77 const G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
78 const G4VTouchable* touch = preStepPoint->GetTouchable();
80 int det(1),
x(0),
y(0);
81 int lay = (touch->GetReplicaNumber(0));
97 uint32_t
idx = (det & 15) << 28;
98 idx += (lay & 127) << 21;
99 idx += (iy & 1) << 19;
101 idx += (ix & 1) << 9;
105 edm::LogVerbatim(
"HGCSim") <<
"HGCalTB16SD01: Detector " << det <<
" Layer " << lay <<
" x " <<
x <<
" " << ix <<
" "
106 <<
ixx <<
" y " <<
y <<
" " << iy <<
" " <<
iyy <<
" ID " << std::hex <<
idx <<
std::dec;
112 det = (
idx >> 28) & 15;
113 lay = (
idx >> 21) & 127;
114 y = (
idx >> 10) & 511;
115 if (((
idx >> 19) & 1) == 1)
118 if (((
idx >> 9) & 1) == 1)
129 <<
" is initialized to : " <<
matScin_;
HGCalTB16SD01 HGCalTB1601SensitiveDetector
double getAttenuation(const G4Step *aStep, double birk1, double birk2, double birk3) const
static uint32_t packIndex(int det, int lay, int x, int y)
void initialize(const G4StepPoint *point)
static void unpackIndex(const uint32_t &idx, int &det, int &lay, int &x, int &y)
#define DEFINE_SENSITIVEDETECTOR(type)
~HGCalTB16SD01() override=default
double getEnergyDeposit(const G4Step *) override
HGCalTB16SD01(const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
*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
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
uint32_t setDetUnitId(const G4Step *step) override