8 #include "G4LogicalVolume.hh" 9 #include "G4LogicalVolumeStore.hh" 10 #include "G4ParticleTable.hh" 13 #include "G4VProcess.hh" 15 #include "G4PhysicalConstants.hh" 16 #include "G4SystemOfUnits.hh" 46 :
CaloSD(name, cpv, clg, p, manager,
48 .getParameter<double>(
"TimeSliceUnit")),
60 <<
"AHCalSD:: Use of Birks law is set to " << useBirk
61 <<
" with three constants kB = " << birk1 <<
", C1 = " << birk2
62 <<
", C2 = " << birk3 <<
"\nAHCalSD:: Threshold for storing" 67 double destep = aStep->GetTotalEnergyDeposit();
68 double wt2 = aStep->GetTrack()->GetWeight();
69 double weight = (wt2 > 0.0) ? wt2 : 1.0;
77 double edep = weight * destep;
82 const G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
83 const G4VTouchable* touch = preStepPoint->GetTouchable();
85 int depth = (touch->GetReplicaNumber(1));
86 int incol = ((touch->GetReplicaNumber(0)) % 10);
87 int inrow = ((touch->GetReplicaNumber(0)) / 10) % 10;
88 int jncol = ((touch->GetReplicaNumber(0)) / 100) % 10;
89 int jnrow = ((touch->GetReplicaNumber(0)) / 1000) % 10;
90 int col = (jncol == 0) ? incol : -incol;
91 int row = (jnrow == 0) ? inrow : -inrow;
95 <<
"AHCalSD: det = " <<
HcalOther <<
" depth = " << depth
96 <<
" row = " << row <<
" column = " << col <<
" packed index = 0x" 100 <<
"Results from unpacker for 0x" << std::hex << index << std::dec
101 <<
" Flag " << flag <<
" Row " << row <<
" Col " << col <<
" Depth " 111 row = col = depth = 0;
119 <<
"AHCalSD: packed index = 0x" << std::hex << idx <<
std::dec <<
" Row " 120 << row <<
" Column " << col <<
" Depth " << depth <<
" OK " << rcode;
T getParameter(std::string const &) const
constexpr uint32_t rawId() const
get the raw id
~AHCalSD() override=default
int irow() const
get the row number
Compact representation of the geometrical detector hierarchy.
bool filterHit(CaloG4Hit *, double) override
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
int icol() const
get the column number
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
double getEnergyDeposit(const G4Step *) override
uint32_t setDetUnitId(const G4Step *step) override
def gen(fragment, howMuch)
Production test section ####.
AHCalSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
double getAttenuation(const G4Step *aStep, double birk1, double birk2, double birk3) const
AHCalSD AHcalSensitiveDetector
#define DEFINE_SENSITIVEDETECTOR(type)
bool unpackIndex(const uint32_t &idx, int &row, int &col, int &depth)
double getEnergyDeposit() const
constexpr Detector det() const
get the detector field from this detid