EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EtmAzimuthalScan.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EtmAzimuthalScan.h
1 
2 #include <TH2D.h>
3 #include <TVector3.h>
4 
5 #ifndef _ETM_AZIMUTHAL_SCAN_
6 #define _ETM_AZIMUTHAL_SCAN_
7 
9 
10 class EtmAzimuthalScan: public TObject {
11  public:
12  // FIXME: default binning hardcoded; ok;
13  EtmAzimuthalScan(double etamin = 0.0, double etamax = 0.0,
14  unsigned ntheta = 25, unsigned nphi = 120);
16 
17  EtmAzimuthalScan *SetVertexSigma(double sigma) { mVertexSigma = sigma; return this; };
18  EtmAzimuthalScan *SetStat(unsigned stat) { mStat = stat; return this; };
19 
20  EtmAzimuthalScan *SetBfield(double field);
21  EtmAzimuthalScan *SetBfield(const char *fname);
23 
24  void DoIt(const char *fout);
25 
26  private:
27  TVector3 GetBfield(const TVector3 &xx) const;
28 
29  // Radiation length in [%], length available for Si tracker in [cm],
30  // |Bt|*dl integral over this length in [T*m];
31  TH2D *mRL, *mZL, *mBdl;
32 
35 
37 
38  ClassDef(EtmAzimuthalScan, 1)
39 };
40 
41 #endif