ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimBeamInfo.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 ActarSimBeamInfo_h
11 #define ActarSimBeamInfo_h 1
12 
13 #include "TROOT.h" //for including Rtypes.h
14 
15 #include "TObject.h"
16 
17 class ActarSimBeamInfo : public TObject {
18 private:
19  Double_t energyEntrance; ///< Energy at the gas chamber entrance
20  Double_t energyVertex; ///< Energy at the reaction vertex
21 
22  Double_t thetaEntrance; ///< Theta emission angle at entrance
23  Double_t phiEntrance; ///< Phi emission angle at entrance
24  Double_t thetaVertex; ///< Theta vertex angle at the reaction vertex
25  Double_t phiVertex; ///< Phi vertex angle at the reaction vertex
26 
27  Double_t xEntrance; ///< X beam at entrance position
28  Double_t yEntrance; ///< Y beam at entrance position
29  Double_t zEntrance; ///< Z beam at entrance position
30 
31  Double_t xVertex; ///< X beam at reaction vertex position
32  Double_t yVertex; ///< Y beam at reaction vertex position
33  Double_t zVertex; ///< Z beam at reaction vertex position
34 
35  Double_t timeVertex; ///< Time at reaction vertex postion
36 
37  Double_t mass; ///< Mass of beam
38  Double_t charge; ///< Charge of beam
39 
40  Int_t eventID; ///< EventID
41  Int_t runID; ///< RunID
42 
43  /// Informs of ion beam status. Used for the dynamical vertex generation
44  /// in ActarSimPrimaryGeneratorAction.
45  /// Values are 0: ion ready for being tracked. Default value after object creation.
46  /// 1: ion under tracking.
47  /// 2: ion reached Z0, the vertex position.
48  Int_t status; //!
49 
50 public:
53 
54  inline Double_t GetEnergyEntrance() const { return energyEntrance; }
55  inline Double_t GetEnergyVertex() const { return energyVertex; }
56 
57  inline Double_t GetThetaEntrance() const { return thetaEntrance; }
58  inline Double_t GetPhiEntrance() const { return phiEntrance; }
59 
60  inline Double_t GetThetaVertex() const { return thetaVertex; }
61  inline Double_t GetPhiVertex() const { return phiVertex; }
62 
63  inline Double_t GetXEntrance() const { return xEntrance; }
64  inline Double_t GetYEntrance() const { return yEntrance; }
65  inline Double_t GetZEntrance() const { return zEntrance; }
66 
67  inline Double_t GetXVertex() const { return xVertex; }
68  inline Double_t GetYVertex() const { return yVertex; }
69  inline Double_t GetZVertex() const { return zVertex; }
70 
71  inline Double_t GetTimeVertex() const { return timeVertex; }
72 
73  inline Double_t GetMass() const { return mass; }
74  inline Double_t GetCharge() const { return charge; }
75  inline Double_t GetEventID() const { return eventID; }
76  inline Double_t GetRunID() const { return runID; }
77 
78  inline Int_t GetStatus() const { return status; }
79 
80  inline void SetEnergyEntrance(Double_t e) { energyEntrance = e; }
81  inline void SetEnergyVertex(Double_t e) { energyVertex = e; }
82 
83  inline void SetThetaEntrance(Double_t t) { thetaEntrance = t; }
84  inline void SetPhiEntrance(Double_t p) { phiEntrance = p; }
85 
86  inline void SetThetaVertex(Double_t t) { thetaVertex = t; }
87  inline void SetPhiVertex(Double_t p) { phiVertex = p; }
88 
89  inline void SetXEntrance(Double_t x) { xEntrance = x; }
90  inline void SetYEntrance(Double_t y) { yEntrance = y; }
91  inline void SetZEntrance(Double_t z) { zEntrance = z; }
92 
93  inline void SetXVertex(Double_t x) { xVertex = x; }
94  inline void SetYVertex(Double_t y) { yVertex = y; }
95  inline void SetZVertex(Double_t z) { zVertex = z; }
96 
97  inline void SetTimeVertex(Double_t t) { timeVertex = t; }
98 
99  inline void SetMass(Double_t m) { mass = m; }
100  inline void SetCharge(Double_t c) { charge = c; }
101  inline void SetEventID(UInt_t eID) { eventID = eID; }
102  inline void SetRunID(UInt_t rID) { runID = rID; }
103 
104  inline void SetStatus(Int_t s) { status = s; }
105 
106  void SetPositionEntrance(Double_t ,Double_t ,Double_t );
107  void SetAnglesEntrance(Double_t ,Double_t );
108  void SetPositionVertex(Double_t ,Double_t ,Double_t );
109  void SetAnglesVertex(Double_t ,Double_t );
110 
111  void print(void);
112 
113  ClassDef(ActarSimBeamInfo,1) //ROOT CINT
114 };
115 #endif
Double_t GetThetaEntrance() const
Double_t GetTimeVertex() const
Double_t GetXVertex() const
Double_t energyEntrance
Energy at the gas chamber entrance.
Int_t runID
RunID.
Double_t GetRunID() const
void SetTimeVertex(Double_t t)
void SetCharge(Double_t c)
Double_t GetYVertex() const
Double_t xEntrance
X beam at entrance position.
void SetPhiVertex(Double_t p)
void SetRunID(UInt_t rID)
void SetXVertex(Double_t x)
void SetEnergyEntrance(Double_t e)
void SetXEntrance(Double_t x)
Double_t GetZVertex() const
Double_t phiVertex
Phi vertex angle at the reaction vertex.
Double_t GetXEntrance() const
Double_t thetaEntrance
Theta emission angle at entrance.
void SetPhiEntrance(Double_t p)
Double_t GetEventID() const
~ActarSimBeamInfo()
Destructor (makes nothing)
void SetStatus(Int_t s)
Double_t GetPhiEntrance() const
Double_t thetaVertex
Theta vertex angle at the reaction vertex.
Double_t timeVertex
Time at reaction vertex postion.
Double_t phiEntrance
Phi emission angle at entrance.
void SetMass(Double_t m)
Double_t GetPhiVertex() const
void SetThetaEntrance(Double_t t)
void SetAnglesVertex(Double_t, Double_t)
Sets the angles at vertex.
Double_t charge
Charge of beam.
Double_t zEntrance
Z beam at entrance position.
Double_t GetZEntrance() const
void SetPositionVertex(Double_t, Double_t, Double_t)
Sets the position of the reaction vertex.
Int_t eventID
EventID.
void SetAnglesEntrance(Double_t, Double_t)
Sets the angles at entrance.
Double_t GetEnergyVertex() const
Double_t yEntrance
Y beam at entrance position.
void SetPositionEntrance(Double_t, Double_t, Double_t)
Sets the position at entrance of the chamber.
Double_t yVertex
Y beam at reaction vertex position.
Double_t GetYEntrance() const
Int_t GetStatus() const
void print(void)
Prints the complete state of the class members.
void SetYVertex(Double_t y)
void SetZEntrance(Double_t z)
void SetZVertex(Double_t z)
Double_t GetThetaVertex() const
void SetThetaVertex(Double_t t)
void SetYEntrance(Double_t y)
Double_t GetCharge() const
Double_t energyVertex
Energy at the reaction vertex.
Double_t zVertex
Z beam at reaction vertex position.
Double_t GetEnergyEntrance() const
Double_t xVertex
X beam at reaction vertex position.
Double_t mass
Mass of beam.
void SetEnergyVertex(Double_t e)
Double_t GetMass() const
void SetEventID(UInt_t eID)