Skip to content
Snippets Groups Projects
Commit 64f87c9c authored by Mark Jones's avatar Mark Jones
Browse files

Fixed problems with DefineVariables in THcHallCSpectrometer

parent 919692ef
No related branches found
No related tags found
No related merge requests found
...@@ -109,17 +109,17 @@ THcHallCSpectrometer::~THcHallCSpectrometer() ...@@ -109,17 +109,17 @@ THcHallCSpectrometer::~THcHallCSpectrometer()
} }
//_____________________________________________________________________________ //_____________________________________________________________________________
Int_t THaSpectrometer::DefineVariables( EMode mode ) Int_t THcHallCSpectrometer::DefineVariables( EMode mode )
{ {
// Define/delete standard variables for a spectrometer (tracks etc.) // Define/delete standard variables for a spectrometer (tracks etc.)
// Can be overridden or extended by derived (actual) apparatuses // Can be overridden or extended by derived (actual) apparatuses
if( mode == kDefine && fIsSetup ) return kOK; if( mode == kDefine && fIsSetup ) return kOK;
THaSpectrometer::DefineVariables( mode ); fIsSetup = ( mode == kDefine );
// THaSpectrometer::DefineVariables( mode );
RVarDef vars[] = { RVarDef vars[] = {
{ "tr.beta", "Beta", "fTracks,THaTrack.GetBeta()"}, { "tr.beta", "Beta", "fTracks.THaTrack.GetBeta()"},
{ "tr.betachisq", "Chi2 of beta", "fTracks,THaTrack.GetBetaChi2()"}, { "tr.betachisq", "Chi2 of beta", "fTracks.THaTrack.GetBetaChi2()"},
{ 0 } { 0 }
}; };
...@@ -310,12 +310,11 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date ) ...@@ -310,12 +310,11 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date )
fNReconTerms++; fNReconTerms++;
good = getline(ifile,line).good(); good = getline(ifile,line).good();
} }
cout << "Read " << fNReconTerms << " matrix element terms" << endl; cout << "Read " << fNReconTerms << " matrix element terms" << endl;
if(!good) { if(!good) {
Error(here, "Error processing reconstruction coefficient file %s",reconCoeffFilename.c_str()); Error(here, "Error processing reconstruction coefficient file %s",reconCoeffFilename.c_str());
return kInitError; // Is this the right return code? return kInitError; // Is this the right return code?
} }
return kOK; return kOK;
} }
......
...@@ -46,6 +46,7 @@ public: ...@@ -46,6 +46,7 @@ public:
virtual Int_t TrackTimes( TClonesArray* tracks ); virtual Int_t TrackTimes( TClonesArray* tracks );
virtual Int_t ReadRunDatabase( const TDatime& date ); virtual Int_t ReadRunDatabase( const TDatime& date );
virtual Int_t DefineVariables( EMode mode = kDefine );
Bool_t SetTrSorting( Bool_t set = kFALSE ); Bool_t SetTrSorting( Bool_t set = kFALSE );
Bool_t GetTrSorting() const; 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