ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimROOTAnalSilRing.hh
Go to the documentation of this file.
1 // - AUTHOR: Hector Alvarez-Pol 04/2008
2 /******************************************************************
3  * Copyright (C) 2005-2016, Hector Alvarez-Pol *
4  * All rights reserved. *
5  * *
6  * License according to GNU LESSER GPL (see lgpl-3.0.txt). *
7  * For the list of contributors see CREDITS. *
8  ******************************************************************/
9 
10 #ifndef ActarSimROOTAnalSilRing_h
11 #define ActarSimROOTAnalSilRing_h 1
12 
13 #include "ActarSimROOTAnalysis.hh"
14 
15 #include "ActarSimSilRingHit.hh"
17 
18 class G4VPhysicalVolume;
19 class G4Event;
20 class G4Run;
21 class G4Track;
22 class G4Step;
23 
24 #include "G4ClassificationOfNewTrack.hh"
25 #include "G4TrackStatus.hh"
26 #include "G4Types.hh"
27 #include "G4PrimaryParticle.hh"
28 
29 class TH1D;
30 class TH2D;
31 class TTree;
32 class TBranch;
33 class TFile;
34 class TClonesArray;
35 
37 private:
38  char* dirName;
39 
40  ActarSimSilRingHit** theSilRingHit; ///< Pointer to the hits in the silicon ring
41  TClonesArray* silRingHitCA; ///< ClonesArray of the hits in the silicon ring
42 
43  TFile* simFile; ///< Local pointer to simFile
44  TTree* eventTree; ///< Local pointer to the event tree
45 
46  TBranch* silRingHitsBranch; ///< Local branch for the silicon hits
47 
48  G4int theRunID; ///< Run ID
49  G4int theEventID; ///< Event ID
50 
51 public:
54 
55  G4int GetTheEventID(){return theEventID;}
56  void SetTheEventID(G4int id){theEventID = id;}
57  G4int GetTheRunID(){return theRunID;}
58  void SetTheRunID(G4int id){theRunID = id;}
59 
61  void SetSilRingHitsBranch(TBranch* aBranch) {silRingHitsBranch= aBranch;}
62 
63  TClonesArray* getSilRingHitsCA(void){return silRingHitCA;}
64  void SetSilRingHitsCA(TClonesArray* CA) {silRingHitCA = CA;}
65 
66  void GeneratePrimaries(const G4Event*);
67 
68  void BeginOfRunAction(const G4Run*);
69  //void EndOfRunAction(const G4Run*);
70 
71  void BeginOfEventAction(const G4Event*);
72  void EndOfEventAction(const G4Event*);
73 
74  void FillingHits(const G4Event*);
75 
78  G4int mode);
79 
80  void UserSteppingAction(const G4Step*);
81 };
82 #endif
TClonesArray * getSilRingHitsCA(void)
void BeginOfRunAction(const G4Run *)
Actions to perform in the silicon anal at the begining of the run.
~ActarSimROOTAnalSilRing()
Destructor. Makes nothing.
void AddSilRingHit(ActarSimSilRingHit *cHit, ActarSimSilRingGeantHit *gHit, G4int mode)
void BeginOfEventAction(const G4Event *)
Actions to perform in the silicon anal at the begining of the event.
TFile * simFile
Local pointer to simFile.
void SetSilRingHitsBranch(TBranch *aBranch)
void FillingHits(const G4Event *)
TBranch * silRingHitsBranch
Local branch for the silicon hits.
ActarSimSilRingHit ** theSilRingHit
Pointer to the hits in the silicon ring.
void EndOfEventAction(const G4Event *)
void UserSteppingAction(const G4Step *)
Actions to perform in the ACTAR gas detector analysis after each step.
void GeneratePrimaries(const G4Event *)
Actions to perform in the silicon anal when generating the primaries.
TTree * eventTree
Local pointer to the event tree.
void SetSilRingHitsCA(TClonesArray *CA)
TClonesArray * silRingHitCA
ClonesArray of the hits in the silicon ring.