ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimROOTAnalSci.hh
Go to the documentation of this file.
1 // - AUTHOR: Hector Alvarez-Pol 01/2006
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 ActarSimROOTAnalSci_h
11 #define ActarSimROOTAnalSci_h 1
12 
13 #include "ActarSimROOTAnalysis.hh"
14 
15 class ActarSimSciHit;
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  TFile* simFile; ///< Local pointer to simFile
41  TTree* eventTree; ///< Local pointer to the event tree
42 
43  TBranch* sciHitsBranch; ///< Local branch for scintillators
44 
45  ActarSimSciHit** theSciHit; ///< Pointer to the hits in the scintillators
46  TClonesArray* sciHitCA; ///< ClonesArray of the hits in the scintillators
47 
48  //G4PrimaryParticle* primary;//Storing the primary for accesing during UserStep NOT USED
49 
50  G4int theRunID; ///< Run ID
51  G4int theEventID; ///< Event ID
52 
53 public:
56 
57  G4int GetTheEventID(){return theEventID;}
58  void SetTheEventID(G4int id){theEventID = id;}
59  G4int GetTheRunID(){return theRunID;}
60  void SetTheRunID(G4int id){theRunID = id;}
61 
62  TBranch* GetSciHitsBranch(){return sciHitsBranch;}
63  void SetSciHitsBranch(TBranch* aBranch) {sciHitsBranch= aBranch;}
64 
65  TClonesArray* getSciHitsCA(void){return sciHitCA;}
66  void SetSciHitsCA(TClonesArray* CA) {sciHitCA = CA;}
67 
68  void FillingHits(const G4Event *anEvent);
70 
71  void GeneratePrimaries(const G4Event*);
72 
73  void BeginOfRunAction(const G4Run*);
74  //void EndOfRunAction(const G4Run*);
75 
76  void BeginOfEventAction(const G4Event*);
77  void EndOfEventAction(const G4Event*);
78 
79  void UserSteppingAction(const G4Step*);
80 };
81 #endif
void SetTheRunID(G4int id)
ActarSimROOTAnalSci()
Constructor.
~ActarSimROOTAnalSci()
Destructor. Makes nothing.
void EndOfEventAction(const G4Event *)
Actions to perform in the scintillator anal at the beginning of the run.
void UserSteppingAction(const G4Step *)
Actions to perform in the scintillator detector analysis after each step.
void BeginOfRunAction(const G4Run *)
Actions to perform in the scintillator anal at the begining of the run.
TBranch * sciHitsBranch
Local branch for scintillators.
void BeginOfEventAction(const G4Event *)
Actions to perform in the scintillator anal at the begining of the event.
void FillingHits(const G4Event *anEvent)
Defining the ActarSimSciHits from the ActarSimSciGeantHits.
void SetSciHitsBranch(TBranch *aBranch)
void SetSciHitsCA(TClonesArray *CA)
G4int theEventID
Event ID.
TClonesArray * sciHitCA
ClonesArray of the hits in the scintillators.
TTree * eventTree
Local pointer to the event tree.
void GeneratePrimaries(const G4Event *)
Actions to perform in the scintillator anal when generating the primaries.
ActarSimSciHit ** theSciHit
Pointer to the hits in the scintillators.
void AddCalCrystalHit(ActarSimSciHit *, ActarSimSciGeantHit *, G4int)
TClonesArray * getSciHitsCA(void)
TFile * simFile
Local pointer to simFile.
void SetTheEventID(G4int id)