44 CurrentHit(0), theTrack(0), CurrentPV(0), PreviousPV(0), UnitID(0),
45 PreviousUnitID(0), PreStepPoint(0), PostStepPoint(0),
46 theDescription(numberingScheme) {
50 G4cout <<
"*******************************************************" <<
G4endl;
52 G4cout <<
"* Constructing a CCaloSD with name " << name <<
G4endl;
54 G4cout <<
"*******************************************************" <<
G4endl;
88 if (aStep == NULL)
return true;
116 if (particleType ==
"e-" ||
117 particleType ==
"e+" ||
118 particleType ==
"gamma" ){
143 <<
" Maybe detector name changed"
194 G4cout <<
"CCaloSD: hit to be stored is NULL !!" <<
G4endl;
205 G4int currentCopyNo = -999;
206 G4int motherCopyNo = -999;
209 if ( theTouchable ) {
215 G4cout <<
"CCaloSD createNewHit for"
217 <<
" PVid = " << currentCopyNo
218 <<
" MVid = " << motherCopyNo
231 G4cout <<
" and created by " ;
317 G4double dapd = 0.5 * crlength - localPoint.
z();
318 if (dapd >= -0.1 || dapd <= crlength+0.1) {
320 weight = 1.05 - dapd * 0.0005;
322 G4cout <<
"CCaloSD, light coll curve : wrong distance to APD " << dapd
323 <<
" crlength = " << crlength
324 <<
" z of localPoint = " << localPoint.
z()
325 <<
" take weight = " << weight <<
G4endl;
328 G4cout <<
"CCaloSD, light coll curve : " << dapd
329 <<
" crlength = " << crlength
330 <<
" z of localPoint = " << localPoint.
z()
331 <<
" take weight = " << weight <<
G4endl;
G4int GetCollectionID(G4String colName)
void SetOrganization(CCalVOrganization *org)
unsigned int getUnitID() const
const G4VTouchable * GetTouchable() const
void addCalo(nameType name)
void setTimeSlice(double d)
CCaloSD(G4String aSDname, CCalVOrganization *numberingScheme)
static constexpr double MeV
virtual void PrintAllHits()
virtual unsigned int GetUnitID(const G4Step *aStep) const =0
G4int GetReplicaNumber(G4int depth=0) const
G4StepPoint * GetPreStepPoint() const
G4ThreeVector EntrancePoint
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
const G4String & GetParticleName() const
G4int GetHistoryDepth() const
G4VPhysicalVolume * GetPhysicalVolume() const
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4ParticleDefinition * GetDefinition() const
CCalVOrganization * theDescription
G4double curve_LY(G4StepPoint *stepPoint)
G4VPhysicalVolume * PreviousPV
void setIncidentEnergy(double e)
const G4VTouchable * GetTouchable() const
void EndOfEvent(G4HCofThisEvent *HCE)
void insert(G4String str)
const G4ThreeVector & GetPosition() const
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
const G4AffineTransform & GetTopTransform() const
G4Track * GetTrack() const
const G4String & GetProcessName() const
G4double GetTotalEnergyDeposit() const
G4double GetGlobalTime() const
int getTimeSliceID() const
G4StepPoint * GetPostStepPoint() const
G4double GetKineticEnergy() const
static constexpr double nanosecond
G4GLOB_DLL std::ostream G4cerr
void ResetForNewPrimary()
void getStepInfo(G4Step *aStep)
static G4SDManager * GetSDMpointer()
G4ThreeVector SetToLocal(G4ThreeVector globalPoint)
void Initialize(G4HCofThisEvent *HCE)
void setEntry(CLHEP::Hep3Vector xyz)
G4CollectionNameVector collectionName
G4THitsCollection< CCalG4Hit > CCalG4HitCollection
const G4VProcess * GetCreatorProcess() const
G4GLOB_DLL std::ostream G4cout
G4VPhysicalVolume * CurrentPV
void addEnergyDeposit(const CCalG4Hit &aHit)
virtual const G4NavigationHistory * GetHistory() const
G4StepPoint * PreStepPoint
void setUnitID(unsigned int i)
void StoreHit(CCalG4Hit *ahit)
const G4String & GetName() const
CCalG4HitCollection * theHC
G4StepPoint * PostStepPoint
unsigned int PreviousUnitID
G4int GetParentID() const
static CCalSDList * getInstance()
G4double GetTotalEnergy() const