|
|
Go to the documentation of this file.
5 #include "G4SDManager.hh"
8 #include "G4VProcess.hh"
10 #include "G4Cerenkov.hh"
11 #include "G4ParticleTable.hh"
12 #include "CLHEP/Units/GlobalSystemOfUnits.h"
13 #include "CLHEP/Units/GlobalPhysicalConstants.h"
14 #include "Randomize.hh"
15 #include "G4Poisson.hh"
38 edm::LogVerbatim(
"ForwardSim") <<
"***************************************************\n"
40 <<
"* Constructing a TotemT2ScintSD with name " <<
name <<
" *\n"
42 <<
"***************************************************";
45 <<
" with three constants kB = " <<
birk1_ <<
", C1 = " <<
birk2_
50 auto const prePoint = aStep->GetPreStepPoint();
51 auto const touch = prePoint->GetTouchable();
53 int iphi = (touch->GetReplicaNumber(0)) % 10;
54 int lay = (touch->GetReplicaNumber(0) / 10) % 10 + 1;
55 int zside = (((touch->GetReplicaNumber(1)) == 1) ? 1 : -1);
62 edm::LogVerbatim(
"ForwardSim") <<
"TotemT2ScintSD: updates numbering scheme for " << GetName();
68 double destep = aStep->GetTotalEnergyDeposit();
70 double edep =
weight * destep;
uint32_t setDetUnitId(const G4Step *step) override
std::unique_ptr< TotemT2ScintNumberingScheme > numberingScheme
double getAttenuation(const G4Step *aStep, double birk1, double birk2, double birk3) const
TotemT2ScintSD(const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
void setNumberingScheme(TotemT2ScintNumberingScheme *scheme)
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
double getEnergyDeposit(const G4Step *) override