Skip to content
Snippets Groups Projects
Commit c5f5526e authored by hallc-online's avatar hallc-online Committed by Mark K Jones
Browse files

Update THcHallCSpectrometer

Add in offsets for xptar, yptar and delta

Add in delta correction as function of xpfp and central
  momentum for HMS. This corrects for a problem in setting Q3 current.
  There was an unknown zero offset in the Q3 current.
  This was determined by T. Horn in 2003.
parent 2a597ecc
No related branches found
No related tags found
No related merge requests found
...@@ -203,6 +203,7 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date ) ...@@ -203,6 +203,7 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date )
{"_oopcentral_offset", &fOopCentralOffset, kDouble }, {"_oopcentral_offset", &fOopCentralOffset, kDouble },
{"pcentral_offset", &fPCentralOffset, kDouble }, {"pcentral_offset", &fPCentralOffset, kDouble },
{"pcentral", &fPcentral, kDouble }, {"pcentral", &fPcentral, kDouble },
{"satcorr", &fSatCorr, kDouble, 0, 1},
{"theta_lab", &fTheta_lab, kDouble }, {"theta_lab", &fTheta_lab, kDouble },
{"partmass", &fPartMass, kDouble }, {"partmass", &fPartMass, kDouble },
{"phi_lab", &fPhi_lab, kDouble, 0, 1}, {"phi_lab", &fPhi_lab, kDouble, 0, 1},
...@@ -236,6 +237,7 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date ) ...@@ -236,6 +237,7 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date )
fSelUsingScin = 0; fSelUsingScin = 0;
fSelUsingPrune = 0; fSelUsingPrune = 0;
fPhi_lab = 0.; fPhi_lab = 0.;
fSatCorr=0.;
gHcParms->LoadParmValues((DBRequest*)&list,prefix); gHcParms->LoadParmValues((DBRequest*)&list,prefix);
EnforcePruneLimits(); EnforcePruneLimits();
...@@ -261,7 +263,6 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date ) ...@@ -261,7 +263,6 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date )
// Check that these offsets are in radians // Check that these offsets are in radians
fTheta_lab=fTheta_lab + fThetaCentralOffset*TMath::RadToDeg(); fTheta_lab=fTheta_lab + fThetaCentralOffset*TMath::RadToDeg();
Double_t ph = fPhi_lab+fPhiOffset*TMath::RadToDeg(); Double_t ph = fPhi_lab+fPhiOffset*TMath::RadToDeg();
cout << "Central angles = " << fTheta_lab << endl;
// SetCentralAngles method in podd THaSpectrometer // SetCentralAngles method in podd THaSpectrometer
// fTheta_lab and ph are geographical angles, converts to spherical coordinates // fTheta_lab and ph are geographical angles, converts to spherical coordinates
// Need to set fTheta_lab to negative for spectrometer like HMS on beam right // Need to set fTheta_lab to negative for spectrometer like HMS on beam right
...@@ -426,10 +427,14 @@ void THcHallCSpectrometer::CalculateTargetQuantities(THaTrack* track,Double_t& g ...@@ -426,10 +427,14 @@ void THcHallCSpectrometer::CalculateTargetQuantities(THaTrack* track,Double_t& g
sum[k] += term*fReconTerms[iterm].Coeff[k]; sum[k] += term*fReconTerms[iterm].Coeff[k];
} }
} }
xptar=sum[0]; xptar=sum[0] + fPhiOffset;
ytar=sum[1]; ytar=sum[1];
yptar=sum[2]; yptar=sum[2] + fThetaOffset;
delta=sum[3]; delta=sum[3] + fDeltaOffset;
if (fSatCorr == 2000) {
Double_t p0corr = 0.82825*fPcentral-1.223 ;
delta = delta + p0corr*xptar;
}
} }
// //
//_____________________________________________________________________________ //_____________________________________________________________________________
......
...@@ -85,6 +85,7 @@ protected: ...@@ -85,6 +85,7 @@ protected:
Double_t fPruneChiBeta; Double_t fPruneChiBeta;
Double_t fPruneFpTime; Double_t fPruneFpTime;
Double_t fPruneNPMT; Double_t fPruneNPMT;
Double_t fSatCorr;
Int_t fGoodTrack; Int_t fGoodTrack;
Int_t fSelUsingScin; Int_t fSelUsingScin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment