ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimSciHit.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 ActarSimSciHit_h
11 #define ActarSimSciHit_h 1
12 
13 #include "TROOT.h" //for including Rtypes.h
14 
15 #include "TObject.h"
16 
17 class ActarSimSciHit : public TObject{
18 private:
19  UInt_t type; ///< Crystal type
20  UInt_t copy; ///< Crystal copy
21 
22  Double_t time; ///< Pulse time (w.r.t. vertex emission)
23  Double_t energy; ///< Total energy deposited
24 
25  UInt_t eventID; ///< Particle event ID
26  UInt_t runID; ///< Particle run ID
27 
28  UInt_t particleID; ///< Particle ID
29  Double_t particleCharge; ///< Particle charge
30  Double_t particleMass; ///< Particle mass
31 
32 public:
35 
36  void SetType(UInt_t ty){type = ty;}
37  void SetCopy(UInt_t co){copy = co;}
38 
39  void SetTime(Double_t ti){time = ti;}
40  void SetEnergy(Double_t ed){energy = ed;}
41 
42  void SetEventID(UInt_t ev){eventID = ev;}
43  void SetRunID(UInt_t run){runID = run;}
44 
45  void SetParticleID(UInt_t pdgID){particleID = pdgID;}
46  void SetParticleCharge(Double_t pdgCharge){particleCharge = pdgCharge;}
47  void SetParticleMass(Double_t pdgMass){particleMass = pdgMass;}
48 
49  Int_t GetType(){return type;}
50  Int_t GetCopy(){return copy;}
51 
52  Double_t GetEnergy(){return energy;}
53  Double_t GetTime(){return time;}
54 
55  UInt_t GetEventID(){return eventID;}
56  UInt_t GetRunID(){return runID;}
57 
58  UInt_t GetParticleID(){return particleID;}
59  Double_t GetParticleCharge(){return particleCharge;}
60  Double_t GetParticleMass(){return particleMass;}
61 
62  void print(void);
63 
64  ClassDef(ActarSimSciHit,1) //ROOT CINT
65 };
66 #endif
UInt_t particleID
Particle ID.
UInt_t runID
Particle run ID.
Double_t particleMass
Particle mass.
Double_t time
Pulse time (w.r.t. vertex emission)
Double_t GetTime()
Double_t GetParticleCharge()
void SetEnergy(Double_t ed)
void SetCopy(UInt_t co)
Double_t GetParticleMass()
void SetParticleID(UInt_t pdgID)
void SetType(UInt_t ty)
UInt_t GetEventID()
UInt_t eventID
Particle event ID.
void SetTime(Double_t ti)
void SetParticleCharge(Double_t pdgCharge)
void SetParticleMass(Double_t pdgMass)
UInt_t type
Crystal type.
Double_t particleCharge
Particle charge.
~ActarSimSciHit()
Destructor, nothing to do.
UInt_t GetParticleID()
UInt_t copy
Crystal copy.
void print(void)
Printing data information (commented out for the moment)
void SetEventID(UInt_t ev)
void SetRunID(UInt_t run)
Double_t energy
Total energy deposited.
Double_t GetEnergy()