Skip to content
Snippets Groups Projects
Commit 5bfe7520 authored by Stephen A. Wood's avatar Stephen A. Wood
Browse files

Get spectrometer angle and momentum for Hall C style parameters

  Parameters are retrieved in THcHallCSpectrometer::ReadDatabase
  Geometry information saved with
     SetCentralAngles and fPointOffset.SetXYX
parent 0f2b41de
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,3 @@
#A1 2202 pedestal
ebeam = 4.02187
H.theta = 19.99
H.pcentral = 2.074
S.theta = -32.32
S.pcentral = 1.73
......@@ -152,7 +152,14 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date )
cout << " fPcentral = " << fPCentral << " " <<fPCentralOffset << endl;
cout << " fThate_lab = " << fTheta_lab << " " <<fThetaCentralOffset << endl;
fPCentral= fPCentral*(1.+fPCentralOffset/100.);
fTheta_lab=fTheta_lab + fThetaCentralOffset*(180./3.14159);
// Check that these offsets are in radians
fTheta_lab=fTheta_lab + fThetaCentralOffset*TMath::RadToDeg();
Double_t ph = 0.0+fPhiOffset*TMath::RadToDeg();
SetCentralAngles(fTheta_lab, ph, false);
Double_t off_x = 0.0, off_y = 0.0, off_z = 0.0;
fPointingOffset.SetXYZ( off_x, off_y, off_z );
//
ifstream ifile;
ifile.open(reconCoeffFilename.c_str());
......@@ -415,5 +422,14 @@ Int_t THcHallCSpectrometer::TrackTimes( TClonesArray* Tracks ) {
return 0;
}
//_____________________________________________________________________________
Int_t THcHallCSpectrometer::ReadRunDatabase( const TDatime& date )
{
// Override THaSpectrometer with nop method. All needed kinamatics
// read in ReadDatabase.
return kOK;
}
//_____________________________________________________________________________
ClassImp(THcHallCSpectrometer)
......@@ -22,6 +22,8 @@ public:
virtual Int_t TrackCalc();
virtual Int_t TrackTimes( TClonesArray* tracks );
virtual Int_t ReadRunDatabase( const TDatime& date );
Bool_t SetTrSorting( Bool_t set = kFALSE );
Bool_t GetTrSorting() const;
......
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