ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimROOTAnalSil.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 ActarSimROOTAnalSil_h
11 #define ActarSimROOTAnalSil_h 1
12 
13 #include "ActarSimROOTAnalysis.hh"
14 
15 #include "ActarSimSilHit.hh"
16 #include "ActarSimSilGeantHit.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  ActarSimSilHit** theSilHit; ///< Pointer to the hits in the silicons
41  TClonesArray* silHitCA; ///< ClonesArray of the hits in the silicons
42 
43  TFile* simFile; ///< Local pointer to simFile
44  TTree* eventTree; ///< Local pointer to the event tree
45 
46  TBranch* silHitsBranch; ///< 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 
60  TBranch* GetSilHitsBranch(){return silHitsBranch;}
61  void SetSilHitsBranch(TBranch* aBranch) {silHitsBranch= aBranch;}
62 
63  TClonesArray* getSilHitsCA(void){return silHitCA;}
64  void SetSilHitsCA(TClonesArray* CA) {silHitCA = 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 
76  void AddSilHit(ActarSimSilHit* cHit,
77  ActarSimSilGeantHit* gHit,
78  G4int mode);
79 
80  void UserSteppingAction(const G4Step*);
81 };
82 #endif
TClonesArray * silHitCA
ClonesArray of the hits in the silicons.
void SetTheRunID(G4int id)
void BeginOfEventAction(const G4Event *)
Actions to perform in the silicon anal at the begining of the event.
G4int theEventID
Event ID.
ActarSimROOTAnalSil()
Constructor.
void EndOfEventAction(const G4Event *)
~ActarSimROOTAnalSil()
Destructor. Makes nothing.
TFile * simFile
Local pointer to simFile.
void SetTheEventID(G4int id)
TClonesArray * getSilHitsCA(void)
TBranch * silHitsBranch
Local branch for the silicon hits.
TTree * eventTree
Local pointer to the event tree.
void SetSilHitsCA(TClonesArray *CA)
void SetSilHitsBranch(TBranch *aBranch)
void AddSilHit(ActarSimSilHit *cHit, ActarSimSilGeantHit *gHit, G4int mode)
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.
void FillingHits(const G4Event *)
ActarSimSilHit ** theSilHit
Pointer to the hits in the silicons.
void BeginOfRunAction(const G4Run *)
Actions to perform in the silicon anal at the begining of the run.