ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimROOTAnalSciRing.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 ActarSimROOTAnalSciRing_h
11 #define ActarSimROOTAnalSciRing_h 1
12 
13 #include "ActarSimROOTAnalysis.hh"
14 
15 class ActarSimSciRingHit;
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* sciRingHitsBranch; ///< Local branch for the scintillator ring hits
44 
45  ActarSimSciRingHit** theSciRingHit; ///< Pointer to the hits in the scintillator ring
46  TClonesArray* sciRingHitCA; ///< ClonesArray of the hits in the scintillator ring
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 SetSciRingHitsBranch(TBranch* aBranch) {sciRingHitsBranch= aBranch;}
62 
63  TClonesArray* getSciRingHitsCA(void){return sciRingHitCA;}
64  void SetSciRingHitsCA(TClonesArray* CA) {sciRingHitCA = CA;}
65 
66  void FillingHits(const G4Event *anEvent);
68 
69  void GeneratePrimaries(const G4Event*);
70 
71  void BeginOfRunAction(const G4Run*);
72  //void EndOfRunAction(const G4Run*);
73 
74  void BeginOfEventAction(const G4Event*);
75  void EndOfEventAction(const G4Event*);
76 
77  void UserSteppingAction(const G4Step*);
78 };
79 #endif
void BeginOfRunAction(const G4Run *)
Actions to perform in the SciRingntillator anal at the begining of the run.
void UserSteppingAction(const G4Step *)
Actions to perform in the scintillator detector analysis after each step.
void GeneratePrimaries(const G4Event *)
Actions to perform in the SciRingntillator anal when generating the primaries.
void FillingHits(const G4Event *anEvent)
Defining the ActarSimSciHits from the ActarSimSciGeantHits.
void SetSciRingHitsCA(TClonesArray *CA)
void SetSciRingHitsBranch(TBranch *aBranch)
TFile * simFile
Local pointer to simFile.
TBranch * sciRingHitsBranch
Local branch for the scintillator ring hits.
TClonesArray * sciRingHitCA
ClonesArray of the hits in the scintillator ring.
TClonesArray * getSciRingHitsCA(void)
ActarSimSciRingHit ** theSciRingHit
Pointer to the hits in the scintillator ring.
void BeginOfEventAction(const G4Event *)
Actions to perform in the scintillator anal at the begining of the event.
void AddCalCrystalHit(ActarSimSciRingHit *, ActarSimSciRingGeantHit *, G4int)
TTree * eventTree
Local pointer to the event tree.
void EndOfEventAction(const G4Event *)
Actions to perform in the scintillator anal at the beginning of the run.
~ActarSimROOTAnalSciRing()
Destructor. Makes nothing.