|
|
Go to the documentation of this file.
9 #include "G4LogicalVolume.hh"
10 #include "G4LogicalVolumeStore.hh"
11 #include "G4ParticleTable.hh"
14 #include "G4VProcess.hh"
16 #include "G4PhysicalConstants.hh"
17 #include "G4SystemOfUnits.hh"
66 <<
" with three constants kB = " <<
birk1 <<
", C1 = " <<
birk2 <<
", C2 = " <<
birk3
67 <<
"\nAHCalSD:: Threshold for storing"
72 double destep = aStep->GetTotalEnergyDeposit();
73 double wt2 = aStep->GetTrack()->GetWeight();
74 double weight = (wt2 > 0.0) ? wt2 : 1.0;
83 double edep =
weight * destep;
88 const G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
89 const G4VTouchable* touch = preStepPoint->GetTouchable();
91 int depth = (touch->GetReplicaNumber(1));
96 int col = (jncol == 0) ? incol : -incol;
97 int row = (jnrow == 0) ? inrow : -inrow;
101 <<
" column = " <<
col <<
" packed index = 0x" << std::hex <<
index <<
std::dec;
104 <<
" Row " << row <<
" Col " <<
col <<
" Depth " <<
depth;
121 <<
" Column " <<
col <<
" Depth " <<
depth <<
" OK " << rcode;
~AHCalSD() override=default
bool unpackIndex(const uint32_t &idx, int &row, int &col, int &depth)
int irow() const
get the row number
uint32_t setDetUnitId(const G4Step *step) override
static constexpr int kRow_
double getAttenuation(const G4Step *aStep, double birk1, double birk2, double birk3) const
double getEnergyDeposit(const G4Step *) override
int depth() const
get the layer number
double getEnergyDeposit() const
int icol() const
get the column number
#define DEFINE_SENSITIVEDETECTOR(type)
static constexpr int kSignRowColumn_
static constexpr int kColumn_
Constants used.
AHCalSD AHcalSensitiveDetector
bool filterHit(CaloG4Hit *, double) override
constexpr uint32_t rawId() const
get the raw id
AHCalSD(const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
def gen(fragment, howMuch)
Production test section ####.
static constexpr int kRowColumn_
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
static constexpr int kSign_