ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimData.hh
Go to the documentation of this file.
1 // - AUTHOR: Hector Alvarez-Pol 05/2005
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 ActarSimData_h
11 #define ActarSimData_h 1
12 
13 #include "TROOT.h" //for including Rtypes.h
14 #include "TObject.h"
15 
16 class ActarSimData: public TObject {
17 private:
18  Double_t thetaPrim1; ///< Polar angle for first primary
19  Double_t thetaPrim2; ///< Polar angle for second primary
20  Double_t phiPrim1; ///< Azimuthal angle for first primary
21  Double_t phiPrim2; ///< Azimuthal angle for second primary
22  Double_t energyPrim1; ///< Energy for first primary
23  Double_t energyPrim2; ///< Energy for second primary
24  Double_t energyOnGasPrim1; ///< Energy deposited in the gas for first primary
25  Double_t energyOnGasPrim2; ///< Energy deposited in the gas for second primary
26  Double_t stepSumLengthOnGasPrim1; ///< Sum of steps length in the gas for first primary
27  Double_t stepSumLengthOnGasPrim2; ///< Sum of steps length in the gas for second primary
28  Int_t eventID; ///< Event number
29  Int_t runID; ///< Run number
30 
31 public:
32  ActarSimData();
33  virtual ~ActarSimData();
34 
35  Double_t GetThetaPrim1(){return thetaPrim1;}
36  Double_t GetThetaPrim2(){return thetaPrim2;}
37  Double_t GetPhiPrim1(){return phiPrim1;}
38  Double_t GetPhiPrim2(){return phiPrim2;}
39  Double_t GetEnergyPrim1(){return energyPrim1;}
40  Double_t GetEnergyPrim2(){return energyPrim2;}
45  Int_t GetEventID(){return eventID;}
46  Int_t GetRunID(){return runID;}
47 
48  void SetThetaPrim1(Double_t theta){thetaPrim1 = theta;}
49  void SetThetaPrim2(Double_t theta){thetaPrim2 = theta;}
50  void SetPhiPrim1(Double_t phi){phiPrim1 = phi;}
51  void SetPhiPrim2(Double_t phi){phiPrim2 = phi;}
52  void SetEnergyPrim1(Double_t energy){energyPrim1 = energy;}
53  void SetEnergyPrim2(Double_t energy){energyPrim2 = energy;}
54  void SetEnergyOnGasPrim1(Double_t energy){energyOnGasPrim1 = energy;}
55  void SetEnergyOnGasPrim2(Double_t energy){energyOnGasPrim2 = energy;}
56  void SetStepSumLengthOnGasPrim1(Double_t step){stepSumLengthOnGasPrim1 = step;}
57  void SetStepSumLengthOnGasPrim2(Double_t step){stepSumLengthOnGasPrim2 = step;}
58  void SetEventID(Int_t ev){eventID = ev;}
59  void SetRunID(Int_t ev){runID = ev;}
60 
61  ClassDef(ActarSimData,1) //ROOT CINT
62 };
63 #endif
void SetStepSumLengthOnGasPrim1(Double_t step)
Definition: ActarSimData.hh:56
void SetEnergyOnGasPrim2(Double_t energy)
Definition: ActarSimData.hh:55
Double_t thetaPrim1
Polar angle for first primary.
Definition: ActarSimData.hh:18
Int_t runID
Run number.
Definition: ActarSimData.hh:29
Double_t thetaPrim2
Polar angle for second primary.
Definition: ActarSimData.hh:19
Double_t stepSumLengthOnGasPrim2
Sum of steps length in the gas for second primary.
Definition: ActarSimData.hh:27
void SetEnergyPrim1(Double_t energy)
Definition: ActarSimData.hh:52
Double_t stepSumLengthOnGasPrim1
Sum of steps length in the gas for first primary.
Definition: ActarSimData.hh:26
void SetStepSumLengthOnGasPrim2(Double_t step)
Definition: ActarSimData.hh:57
Double_t GetEnergyOnGasPrim1()
Definition: ActarSimData.hh:41
void SetPhiPrim2(Double_t phi)
Definition: ActarSimData.hh:51
Double_t GetPhiPrim2()
Definition: ActarSimData.hh:38
Double_t phiPrim2
Azimuthal angle for second primary.
Definition: ActarSimData.hh:21
Double_t GetStepSumLengthOnGasPrim2()
Definition: ActarSimData.hh:44
Double_t GetThetaPrim2()
Definition: ActarSimData.hh:36
Int_t GetRunID()
Definition: ActarSimData.hh:46
virtual ~ActarSimData()
Destructor.
Definition: ActarSimData.cc:39
Double_t energyOnGasPrim1
Energy deposited in the gas for first primary.
Definition: ActarSimData.hh:24
void SetThetaPrim2(Double_t theta)
Definition: ActarSimData.hh:49
void SetRunID(Int_t ev)
Definition: ActarSimData.hh:59
Int_t eventID
Event number.
Definition: ActarSimData.hh:28
void SetPhiPrim1(Double_t phi)
Definition: ActarSimData.hh:50
void SetEnergyPrim2(Double_t energy)
Definition: ActarSimData.hh:53
void SetEventID(Int_t ev)
Definition: ActarSimData.hh:58
Double_t GetPhiPrim1()
Definition: ActarSimData.hh:37
Double_t energyOnGasPrim2
Energy deposited in the gas for second primary.
Definition: ActarSimData.hh:25
Double_t GetStepSumLengthOnGasPrim1()
Definition: ActarSimData.hh:43
Double_t GetEnergyPrim2()
Definition: ActarSimData.hh:40
Int_t GetEventID()
Definition: ActarSimData.hh:45
Double_t energyPrim2
Energy for second primary.
Definition: ActarSimData.hh:23
Double_t phiPrim1
Azimuthal angle for first primary.
Definition: ActarSimData.hh:20
Double_t GetEnergyPrim1()
Definition: ActarSimData.hh:39
void SetThetaPrim1(Double_t theta)
Definition: ActarSimData.hh:48
void SetEnergyOnGasPrim1(Double_t energy)
Definition: ActarSimData.hh:54
Double_t GetThetaPrim1()
Definition: ActarSimData.hh:35
Double_t energyPrim1
Energy for first primary.
Definition: ActarSimData.hh:22
Double_t GetEnergyOnGasPrim2()
Definition: ActarSimData.hh:42