PandaRoot
PndHypGeReader.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- CbmHypGeReader header file -----
15 // ----- // roginal Author: S.Spataro
16 //------ modified 15/05/07 by A.Sanchez -----
17 // -------------------------------------------------------------------------
18 
19 #ifndef PNDHYPGEREADER_HH
20 #define PNDHYPGEREADER_HH 1
21 
22 #include <vector>
23 #include "TString.h"
24 #include "TVector3.h"
25 using namespace std;
26 
27 class DataG4 {
28 
29  public:
30  DataG4() {}
31  ~DataG4() {}
32 
33  int crystal;
34  double theta, phi, tau;
35  double posX, posY, posZ;
36 };
37 
39 
40  public:
41  PndHypGeReader(TString name);
42  ~PndHypGeReader();
43 
44  vector<DataG4> g4data;
45 
46  TString sName;
47  void fill_vector();
48  // int GetMaxModules();
49  // int GetMaxRows(int module);
50  // int GetMaxCrystals(int module, int row);
51  DataG4 GetData(int crystal);
52 };
53 
54 #endif // PNDHYPGEREADER_HH
STL namespace.
vector< DataG4 > g4data