Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Shifter.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Shifter.h
1 //Shifter code
2 #ifndef FILLSPACECHARGEMAPS_SHIFTER_H
3 #define FILLSPACECHARGEMAPS_SHIFTER_H
4 
5 #include <string>
6 
7 class TFile;
8 class TVector3;
9 class TH3;
10 
11 class Shifter
12 {
13  public:
14  explicit Shifter(const std::string &truthfilename, const std::string &correctionfilename = "");
15 
16  TVector3 Shift(const TVector3 &position);
17  TVector3 ShiftForward(const TVector3 &position); //only shift with forward histogram
18  TVector3 ShiftBack(const TVector3 &position); //
19  TFile *forward = nullptr;
20  TFile *back = nullptr;
21  TFile *average = nullptr;
22  bool hasTruth = false;
23  bool hasCorrection = false;
24  TH3 *hX = nullptr;
25  TH3 *hY = nullptr;
26  TH3 *hZ = nullptr;
27  TH3 *hR = nullptr;
28  TH3 *hPhi = nullptr;
29  TH3 *hXave = nullptr;
30  TH3 *hYave = nullptr;
31  TH3 *hZave = nullptr;
32  TH3 *hRave = nullptr;
33  TH3 *hPhiave = nullptr;
34  TH3 *hXBack = nullptr;
35  TH3 *hYBack = nullptr;
36  TH3 *hZBack = nullptr;
37 };
38 
39 #endif