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++)
G4int GetCollectionID(G4String colName)
const G4VTouchable * GetTouchable() const
void SetPos(G4ThreeVector xyz)
G4THitsCollection< ExP01TrackerHit > ExP01TrackerHitsCollection
G4StepPoint * GetPreStepPoint() const
virtual void Initialize(G4HCofThisEvent *)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
Hit implementation for the persistency example.
G4String SensitiveDetectorName
void Write(std::vector< ExP01TrackerHit * > *)
void insert(G4String str)
const G4ThreeVector & GetPosition() const
void SetChamberNb(G4int chamb)
Definition of the RootIO class.
G4Track * GetTrack() const
G4double GetTotalEnergyDeposit() const
G4StepPoint * GetPostStepPoint() const
void SetTrackID(G4int track)
virtual void EndOfEvent(G4HCofThisEvent *)
static G4SDManager * GetSDMpointer()
G4CollectionNameVector collectionName
virtual G4int GetReplicaNumber(G4int depth=0) const
G4GLOB_DLL std::ostream G4cout
virtual G4bool ProcessHits(G4Step *, G4TouchableHistory *)
Definition of the ExP01TrackerSD class.
ExP01TrackerHitsCollection * fTrackerCollection
void SetEdep(G4double de)
static RootIO * GetInstance()