PandaRoot
PndHypGeReader.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmHypGeReader header file -----
3 // ----- // roginal Author: S.Spataro
4 //------ modified 15/05/07 by A.Sanchez -----
5 // -------------------------------------------------------------------------
6 
7 #ifndef PNDHYPGEREADER_HH
8 #define PNDHYPGEREADER_HH 1
9 
10 #include <vector>
11 #include "TString.h"
12 #include "TVector3.h"
13 using namespace std;
14 
15 class DataG4 {
16 
17  public:
18  DataG4() {}
19  ~DataG4() {}
20 
21  int crystal;
22  double theta, phi, tau;
23  double posX, posY, posZ;
24 };
25 
27 
28  public:
29  PndHypGeReader(TString name);
30  ~PndHypGeReader();
31 
32  vector<DataG4> g4data;
33 
34  TString sName;
35  void fill_vector();
36  // int GetMaxModules();
37  // int GetMaxRows(int module);
38  // int GetMaxCrystals(int module, int row);
39  DataG4 GetData(int crystal);
40 };
41 
42 #endif // PNDHYPGEREADER_HH
STL namespace.
vector< DataG4 > g4data