10 #ifndef ActarSimROOTAnalysis_h 11 #define ActarSimROOTAnalysis_h 1 13 class G4VPhysicalVolume;
19 #include "G4ClassificationOfNewTrack.hh" 20 #include "G4TrackStatus.hh" 22 #include "G4PrimaryParticle.hh" 26 #include "TClonesArray.h" 170 void Construct(
const G4VPhysicalVolume*);
void EndOfRunAction(const G4Run *)
Actions to perform in the analysis at the end of the run.
TClonesArray * theDataCA
ClonesArray of the data objects.
ActarSimData * GetTheData()
void GeneratePrimaries(const G4Event *, G4double, G4double, G4double, G4double)
ActarSimROOTAnalysis()
Constructor.
ActarSimROOTAnalSciRing * sciRingAnal
Pointer to detector specific (scintillator ring) analysis class.
void SetTheData(ActarSimData *data)
G4String GetBeamInteractionFlag()
void ConstructProcess()
Actions to perform in the analysis during the processes construction.
TH1D * hPrimEnergy
Histogram of primary energy.
G4int theEventID
Particle Event ID.
void SetStoreTracksFlag(G4String val)
ActarSimROOTAnalGas * gasAnal
Pointer to detector specific (gas chamber) analysis class.
void SetBeamInteractionFlag(G4String val)
void EndOfEventAction(const G4Event *)
Actions to perform in the analysis at the end of the event.
void PostUserTrackingAction(const G4Track *, G4TrackStatus *)
Actions to perform in the analysis after the user tracking.
G4int plaAnalIncludedFlag
Flag to turn on(1)/off(0) the plastic analysis.
void SetTheEventID(G4int id)
void SetStoreHistogramsFlag(G4String val)
void ClassifyNewTrack(const G4Track *, G4ClassificationOfNewTrack *)
Actions to perform in the analysis when classifying new tracks.
TFile * simFile
The ROOT file.
G4String GetStoreSimpleTracksFlag()
void SetStoreEventsFlag(G4String val)
void SetMinStrideLength(Double_t value)
Setter of the minimum stride length in the gas.
G4String GetStoreTracksFlag()
G4int sciAnalIncludedFlag
Flag to turn on(1)/off(0) the scintillator analysis.
G4int sciRingAnalIncludedFlag
Flag to turn on(1)/off(0) the scintillator ring analysis.
void UserSteppingAction(const G4Step *)
Actions to perform in the analysis after each step.
ActarSimROOTAnalSilRing * silRingAnal
Pointer to detector specific (silicon ring) analysis class.
G4int silRingAnalIncludedFlag
Flag to turn on(1)/off(0) the silicon ring analysis.
G4int theRunID
Particle Run ID.
G4String storeTrackHistosFlag
Flag to turn "on"/"off" the storage of histograms related to the tracks.
G4String beamInteractionFlag
Flag to turn "on"/"off" the beam interaction analysis.
void SetTheRunID(G4int id)
TClonesArray * primaryInfoCA
ClonesArray of primaries info objects.
G4String storeSimpleTracksFlag
Flag to turn "on"/"off" the storage of simple tracks.
void InitAnalysisForExistingDetectors()
TH2F * hRecoilIonKinematic
Histogram with Cine Kinematic results for recoil ions.
void SetStoreTrackHistosFlag(G4String val)
void BeginOfEventAction(const G4Event *)
Actions to perform in the analysis at the beginning of the event.
TTree * eventTree
Events tree.
G4String storeHistogramsFlag
Flag to turn "on"/"off" the storage of general histograms.
G4String GetStoreHistogramsFlag()
G4String storeEventsFlag
Flag to turn "on"/"off" the storage fo events.
TH2D * hPrimEnergyVsTheta
Histogram of primary Energy vs Theta angle.
ActarSimPrimaryInfo ** thePrimaryInfo
Primary particles data.
void Construct(const G4VPhysicalVolume *)
Things to do while contructing...
time_t LastDoItTime
Used in OnceAWhileDoIt method for recursivity.
ActarSimROOTAnalSci * sciAnal
Pointer to detector specific (scintillator) analysis class.
G4int gasAnalIncludedFlag
Flag to turn on(1)/off(0) the gas chamber analysis.
ActarSimROOTAnalysis * gActarSimROOTAnalysis
Global pointer to this soliton.
void SetCuts()
Actions to perform in the analysis during the cut setting.
void PreUserTrackingAction(const G4Track *)
Actions to perform in the analysis before the user tracking.
void GenerateBeam(const G4Event *)
Defining any beam related histogram or information in the output file.
void OnceAWhileDoIt(const G4bool DoItNow=false)
Recursive controller.
ActarSimData * theData
Pointer to data object.
TH1D * hPrimTheta
Histogram of primary Theta angle.
void BeginOfRunAction(const G4Run *)
Actions to perform in the analysis at the beginning of the run.
void SetEventTree(TTree *tree)
void SetStoreSimpleTracksFlag(G4String val)
ActarSimROOTAnalPla * plaAnal
Pointer to detector specific (plastic) analysis class.
G4int GetSciRingAnalStatus()
TH2F * hScatteredIonKinematic
Histogram with Cine Kinematic results for scattered ions.
char * newDirName
Directory name within ROOT file.
G4int silAnalIncludedFlag
Flag to turn on(1)/off(0) the silicon analysis.
G4String GetStoreEventsFlag()
ActarSimBeamInfo * GetBeamInfo()
TClonesArray * beamInfoCA
ClonesArray of the beam info objects.
TH1D * hPrimPhi
Histogram of primary Phi angle.
void SetSimFile(TFile *file)
~ActarSimROOTAnalysis()
Constructor. Save and close Files.
G4String GetStoreTrackHistosFlag()
G4String storeTracksFlag
Flag to turn "on"/"off" the storage of complete tracks.
void SetTracksTree(TTree *tree)
TTree * tracksTree
Tracks tree.
ActarSimBeamInfo * pBeamInfo
Pointer to beam information object.
ActarSimAnalysisMessenger * analMessenger
Pointer to the corresponding messenger.
G4int GetSilRingAnalStatus()
ActarSimROOTAnalSil * silAnal
Pointer to detector specific (silicon) analysis class.
void ConstructParticle()
Actions to perform in the analysis during the particle construction.