Shower.h
Go to the documentation of this file.
1 //
2 // Shower.hpp
3 // garsoft-mrb
4 //
5 // Created by Brian Rebel on 10/6/16.
6 // Copyright © 2016 Brian Rebel. All rights reserved.
7 // Additions by Tom Junk, 2018
8 //
9 
10 #ifndef Shower_hpp
11 #define Shower_hpp
12 
13 #include <stdio.h>
14 #include "RtypesCore.h"
15 #include <stdint.h>
16 
17 namespace gar {
18  namespace rec {
19 
20  class Shower {
21 
22  public:
23  Shower();
24 
25  // let the compiler provide the dtor
26 
27  private:
28 
29  float fEnergy; ///< energy of the shower
30  float fVertex[3]; ///< Shower vertex position
31  float fVtxDir[3]; ///< Shower vertex direction
32  double fTime; ///< Timestamp
33 
34 #ifndef __GCCXML__
35 
36  public:
37 
38  Shower(float energy,
39  float *vtx,
40  float *vtxDir,
41  double time);
42 
43  const float* Vertex() const;
44  const float* VtxDir() const;
45  float const& Energy() const;
46  double Time() const;
47 
48 #endif
49 
50  };
51 
52  inline const float* Shower::Vertex() const { return fVertex; }
53  inline const float* Shower::VtxDir() const { return fVtxDir; }
54  inline float const& Shower::Energy() const { return fEnergy; }
55  inline double Shower::Time() const { return fTime; }
56 
57  } // rec
58 } // gar
59 
60 
61 #endif /* Shower_hpp */
62 
rec
Definition: tracks.py:88
float fVertex[3]
Shower vertex position.
Definition: Shower.h:30
double Time() const
Definition: Shower.h:55
const float * VtxDir() const
Definition: Shower.h:53
const float * Vertex() const
Definition: Shower.h:52
float const & Energy() const
Definition: Shower.h:54
float fVtxDir[3]
Shower vertex direction.
Definition: Shower.h:31
double fTime
Timestamp.
Definition: Shower.h:32
General GArSoft Utilities.
float fEnergy
energy of the shower
Definition: Shower.h:29