34 #ifndef STSVTDRIFTVELOCITYMAKER_H
35 #define STSVTDRIFTVELOCITYMAKER_H
59 int mNHybridDriftVelocityHisto;
60 TH1D** mHybridDriftVelocityHisto;
61 TH2D** mHybridDriftVelocity2DHisto;
62 TH1D* mGlobalDriftVelocityHisto;
63 TH2D* mGlobalDriftVelocity2DHisto;
64 TH1D* mCalculatedDriftVelocity;
65 TH1D* mLaserSpotDistL07B3_1;
66 TH1D* mLaserSpotDistL15B3_1;
67 TH1D* mLaserSpotDistL15B3_2;
100 virtual Int_t
Make();
107 virtual Int_t SetSvtData();
108 virtual Int_t SetSvtRawData();
109 virtual Int_t SetSvtDriftVelocity();
110 virtual Int_t FillHistogramsRaw();
111 virtual Int_t FillHistogramsStEvent();
112 virtual Int_t CalcDriftVelocity();
113 virtual Int_t GetInjectorLine(
float peak);
114 virtual Int_t GetInjectorLine(
float* peak);
115 virtual Float_t GetClosestToLine(
float peak1,
float peak2);
116 virtual Float_t GetTimeZero(
int anode);
117 virtual Float_t GetDistanceInjectorLine(
int line);
118 virtual Float_t FitVelocity(
int nInjectorsFired,
float* peak,
float t0);
119 virtual Float_t CalcV1(
int anode,
float velocity);
120 virtual Float_t CalcV2(
int anode,
float velocity);
121 virtual Float_t CalcV3(
int anode,
float velocity);
122 virtual Int_t FillAllAnodes();
123 virtual Int_t WriteToDb(Text_t *timestamp);
124 TH1D* GetHybridHisto(
int i) {
return mHybridDriftVelocityHisto[i];};
125 TH2D* GetHybrid2DHisto(
int i) {
return mHybridDriftVelocity2DHisto[i];};
126 TH1D* GetGlobalHisto() {
return mGlobalDriftVelocityHisto;};
127 TH2D* GetGlobal2DHisto() {
return mGlobalDriftVelocity2DHisto;};
128 TH1D* GetFinalHisto() {
return mCalculatedDriftVelocity;};
129 TH1D* GetLaserSpotDistL07B3_1() {
return mLaserSpotDistL07B3_1;};
130 TH1D* GetLaserSpotDistL15B3_1() {
return mLaserSpotDistL15B3_1;};
131 TH1D* GetLaserSpotDistL15B3_2() {
return mLaserSpotDistL15B3_2;};
132 Int_t GetNumEvents() {
return mEventCounter;};
133 Int_t GetNumHits() {
return mHitCounter;};
134 Int_t GetNumTimeBins() {
return mNumTimeBins;};
135 Int_t GetMaximumTB() {
return mMaximumTB;};
136 Int_t GetMinimumTB() {
return mMinimumTB;};
137 bool DebugIsOn() {
return mDebug;};
138 bool DVCalcDoesMoveForward() {
return mMoveForward;};
139 double GetDVFraction() {
return mFraction;};
140 double GetDVT0Guess() {
return mT0Guess;};
141 void SetNumTimeBins(
const Int_t x) {mNumTimeBins = x;};
142 void SetMaximumTB(
const Int_t x) {mMaximumTB = x;};
143 void SetMinimumTB(
const Int_t x) {mMinimumTB = x;};
144 void SetDebug(
int x) {mDebug = (x!=0);};
145 void SetMoveForward(
const bool x) {mMoveForward = x;};
146 void SetFraction(
const double x) {mFraction = x;};
147 void SetT0Guess(
const double x) {mT0Guess = x;};