36 #include "G4HCofThisEvent.hh"
84 if(edep==0.)
return false;
106 std::vector<ExP01TrackerHit*> hitsVector;
109 G4cout <<
"\n-------->Storing hits in the ROOT file: in this event there are " << NbHits
110 <<
" hits in the tracker chambers: " <<
G4endl;
115 for (
G4int i=0;i<NbHits;i++)
static RootIO * GetInstance()
G4String SensitiveDetectorName
G4int GetCollectionID(G4String colName)
virtual void Initialize(G4HCofThisEvent *)
const char * name(G4int ptype)
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
Hit implementation for the persistency example.
Definition of the ExP01TrackerSD class.
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
const G4ThreeVector & GetPosition() const
ExP01TrackerHitsCollection * fTrackerCollection
void Write(std::vector< ExP01TrackerHit * > *)
virtual void EndOfEvent(G4HCofThisEvent *)
void SetEdep(G4double de)
G4double GetTotalEnergyDeposit() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4THitsCollection< ExP01TrackerHit > ExP01TrackerHitsCollection
void SetPos(G4ThreeVector xyz)
void SetChamberNb(G4int chamb)
G4StepPoint * GetPostStepPoint() const
static G4SDManager * GetSDMpointer()
virtual G4int GetReplicaNumber(G4int depth=0) const
Definition of the RootIO class.
G4CollectionNameVector collectionName
G4Track * GetTrack() const
virtual G4bool ProcessHits(G4Step *, G4TouchableHistory *)
void SetTrackID(G4int track)