File indexing completed on 2025-08-05 08:15:37
0001
0002 #ifndef FILLSPACECHARGEMAPS_SHIFTER_H
0003 #define FILLSPACECHARGEMAPS_SHIFTER_H
0004
0005 #include <string>
0006
0007 class TFile;
0008 class TVector3;
0009 class TH3;
0010
0011 class Shifter
0012 {
0013 public:
0014 explicit Shifter(const std::string &truthfilename, const std::string &correctionfilename = "");
0015
0016 TVector3 Shift(const TVector3 &position);
0017 TVector3 ShiftForward(const TVector3 &position);
0018 TVector3 ShiftBack(const TVector3 &position);
0019 TFile *forward = nullptr;
0020 TFile *back = nullptr;
0021 TFile *average = nullptr;
0022 bool hasTruth = false;
0023 bool hasCorrection = false;
0024 TH3 *hX = nullptr;
0025 TH3 *hY = nullptr;
0026 TH3 *hZ = nullptr;
0027 TH3 *hR = nullptr;
0028 TH3 *hPhi = nullptr;
0029 TH3 *hXave = nullptr;
0030 TH3 *hYave = nullptr;
0031 TH3 *hZave = nullptr;
0032 TH3 *hRave = nullptr;
0033 TH3 *hPhiave = nullptr;
0034 TH3 *hXBack = nullptr;
0035 TH3 *hYBack = nullptr;
0036 TH3 *hZBack = nullptr;
0037 };
0038
0039 #endif