ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimROOTAnalPla.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 ActarSimROOTAnalPla_h
11 #define ActarSimROOTAnalPla_h 1
12 
13 #include "ActarSimROOTAnalysis.hh"
14 
15 class ActarSimPlaHit;
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* plaHitsBranch; ///< Local branch for plastics
44 
45  ActarSimPlaHit** thePlaHit; ///< Pointer to the hits in the plastic
46  TClonesArray* plaHitCA; ///< ClonesArray of the hits in the plastic
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:
54 
57 
58  G4int GetTheEventID(){return theEventID;}
59  void SetTheEventID(G4int id){theEventID = id;}
60  G4int GetTheRunID(){return theRunID;}
61  void SetTheRunID(G4int id){theRunID = id;}
62 
63  TBranch* GetPlaHitsBranch(){return plaHitsBranch;}
64  void SetPlaHitsBranch(TBranch* aBranch) {plaHitsBranch= aBranch;}
65 
66  TClonesArray* getPlaHitsCA(void){return plaHitCA;}
67  void SetPlaHitsCA(TClonesArray* CA) {plaHitCA = CA;}
68 
69  void FillingHits(const G4Event *anEvent);
71 
72  void GeneratePrimaries(const G4Event*);
73 
74  void BeginOfRunAction(const G4Run*);
75  //void EndOfRunAction(const G4Run*);
76 
77  void BeginOfEventAction(const G4Event*);
78  void EndOfEventAction(const G4Event*);
79 
80  void UserSteppingAction(const G4Step*);
81 };
82 #endif
void SetPlaHitsCA(TClonesArray *CA)
void SetTheRunID(G4int id)
TBranch * plaHitsBranch
Local branch for plastics.
void SetTheEventID(G4int id)
ActarSimROOTAnalPla()
Constructor.
void FillingHits(const G4Event *anEvent)
Defining the ActarSimSciHits from the ActarSimSciGeantHits.
TTree * eventTree
Local pointer to the event tree.
void AddCalPlaHit(ActarSimPlaHit *, ActarSimPlaGeantHit *, G4int)
void SetPlaHitsBranch(TBranch *aBranch)
TFile * simFile
Local pointer to simFile.
G4int theEventID
Event ID.
TClonesArray * plaHitCA
ClonesArray of the hits in the plastic.
void BeginOfEventAction(const G4Event *)
Actions to perform in the scintillator anal at the begining of the event.
ActarSimPlaHit ** thePlaHit
Pointer to the hits in the plastic.
void GeneratePrimaries(const G4Event *)
Actions to perform in the scintillator anal when generating the primaries.
~ActarSimROOTAnalPla()
Destructor. Makes nothing.
void UserSteppingAction(const G4Step *)
Actions to perform in the scintillator detector analysis after each step.
TClonesArray * getPlaHitsCA(void)
void BeginOfRunAction(const G4Run *)
Actions to perform in the scintillator anal at the begining of the run.
void EndOfEventAction(const G4Event *)
Actions to perform in the scintillator anal at the beginning of the run.