Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FieldMaps.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FieldMaps.h
1 #ifndef __FIELDMAPS_H__
2 #define __FIELDMAPS_H__
3 
4 //===========================================================
8 //===========================================================
9 
10 #include "TH3F.h"
11 
12 class FieldMaps {
13  public:
14  FieldMaps();
15  virtual ~FieldMaps();
16  void ReadFile();
17  void SetDebugLevel(int n) {fDebug=n;}
18  void TPCDimensions(float irad, float orad, float hzet) {fInnerRadius=irad; fOutterRadius=orad; fHalfLength=hzet;}
19  void TPCGridSize(int nr, int np, int nz) {fNRadialSteps=nr; fNAzimuthalSteps=np; fNLongitudinalSteps=nz;}
22  void MirrorZ() {fMirrorZ=true;}
23  void Make(int n=-1);
24  virtual void ComputeE()=0;
25 
26  protected:
27  void InitMaps();
28  void SaveMaps();
29  float ReadCharge(float rprime, float phiprime, float zprime, float dr, float dphi,float dz);
30 
31  int fDebug;
33 
34  TH3F *fEr;
35  TH3F *fEp;
36  TH3F *fEz;
37  TH3F *fRho;
38 
39  float fInnerRadius;
41  float fHalfLength;
47  bool fMirrorZ;
48 };
49 
50 #endif /* __FIELDMAPS_H__ */