PandaRoot
PndEmcReader.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 // ----- PndEmcReader header file -----
15 // ----- Created 14/08/06 by S.Spataro -----
16 // -------------------------------------------------------------------------
17 //#pragma once
18 #ifndef PNDEMCREADER_H
19 #define PNDEMCREADER_H
20 
21 #include <vector>
22 #include "TString.h"
23 
24 class DataG4 {
25 
26  public:
28  : crystal(0), row(0), module(0), theta(0), phi(0), tau(0), posX(0), posY(0), posZ(0), pDz(0), pTheta(0), pPhi(0), pDy1(0), pDx1(0), pDx2(0), pAlp1(0), pDy2(0), pDx3(0),
29  pDx4(0), pAlp2(0)
30  {
31  }
32  ~DataG4() {}
33 
35  double theta, phi, tau;
36  double posX, posY, posZ;
38 };
39 
40 class PndEmcReader {
41 
42  public:
43  PndEmcReader(TString name);
44  ~PndEmcReader();
45 
46  std::vector<DataG4> g4data;
47 
48  TString sName;
49  void fill_vector();
50  int GetMaxModules();
51  int GetMaxRows(int module);
52  int GetMaxCrystals(int module, int row);
53  int GetMinModules();
54  int GetMinRows(int module);
55  int GetMinCrystals(int module, int row);
56  DataG4 GetData(int module, int row, int crystal);
57 };
58 #endif // PNDEMCREADER_H
double pDx3
Definition: PndEmcReader.h:37
double tau
Definition: PndEmcReader.h:35
TString sName
Definition: PndEmcReader.h:48
double pAlp2
Definition: PndEmcReader.h:37
double pDz
Definition: PndEmcReader.h:37
double pDx2
Definition: PndEmcReader.h:37
double phi
Definition: PndEmcReader.h:35
int module
Definition: PndEmcReader.h:34
int row
Definition: PndEmcReader.h:34
double pPhi
Definition: PndEmcReader.h:37
int crystal
Definition: PndEmcReader.h:34
double pDx4
Definition: PndEmcReader.h:37
double pDx1
Definition: PndEmcReader.h:37
double posX
Definition: PndEmcReader.h:36
double posZ
Definition: PndEmcReader.h:36
double pDy2
Definition: PndEmcReader.h:37
double pTheta
Definition: PndEmcReader.h:37
double pDy1
Definition: PndEmcReader.h:37
std::vector< DataG4 > g4data
Definition: PndEmcReader.h:46
double posY
Definition: PndEmcReader.h:36
double theta
Definition: PndEmcReader.h:35
double pAlp1
Definition: PndEmcReader.h:37