FairRoot/PandaRoot
PndDiscSensorMCPoint.h
Go to the documentation of this file.
1 //-------------------------------------------------------------------------
2 // Author: Oliver Merle (Oliver.Merle@exp2.physik.uni-giessen.de)
3 // Changes: Mustafa Schmidt (Mustafa.A.Schmidt@physik.uni-giessen.de)
4 // Date: 30.11.2015
5 // Description: Information of photons
6 //-------------------------------------------------------------------------
7 
8 #ifndef PNDDISCSENSORMCPOINT_HH
9 #define PNDDISCSENSORMCPOINT_HH
10 
11 
12 // Fairroot / PROOT headers
13 #include "FairMCPoint.h"
14 
15 // cpp headers
16 #include <math.h>
17 
18 
19 
20 class PndDiscSensorMCPoint : public FairMCPoint
21 {
22 public:
24 
25  PndDiscSensorMCPoint(Int_t track_id, // base
26  //Int_t event_id, // in FairMCEventHeader
27  Int_t det_id, // base
28  Int_t volume_id, // -- use some kind of volume identifier here (or just sensor copy number?)
29  Double_t const & internal_reflection_angle, // may be 0.0 if none registered (e.g. not created in radiator)
30  TVector3 const & pos_in, // base
31  TVector3 const & mom_in, // base
32  Double_t const & total_tof, // base
33  Double_t const & total_length, // base
34  Double_t const & energy_loss, // base
35  Double_t const & track_start_time // global time of track creation
36  );
37 
38  virtual ~PndDiscSensorMCPoint();
39 
40  virtual void Print(const Option_t* opt = 0) const;
42  Double_t ComputeWavelenght() { return 1.239841939E-6/sqrt(fPx*fPx+fPy*fPy+fPz*fPz); }
44 
45  Int_t volume_id;
48  Int_t my_track_id;
49 
50  TVector3 photon_entering_pos; // position of photon entering optics
51  TVector3 photon_entering_momentum; // momentum vector of photon entering optics
52 
53  ClassDef(PndDiscSensorMCPoint,4)
54 };
55 
56 
57 #endif // PNDDISCSENSORMCPOINT_HH
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
virtual void Print(const Option_t *opt=0) const
Double_t
const Double_t & GetTotalReflectionAngle()
FairMCPoint forces the implementation.