diff --git a/src/classes/Makefile.am b/src/classes/Makefile.am index e9480f77..aa515b86 100644 --- a/src/classes/Makefile.am +++ b/src/classes/Makefile.am @@ -17,7 +17,7 @@ h_sources = \ ../include/PRunDataHandler.h \ ../include/PRunListCollection.h \ ../include/PRunNonMusr.h \ - ../include/PRunRRF.h \ + ../include/PRunMuMinus.h \ ../include/PRunSingleHisto.h \ ../include/PStartupHandler.h \ ../include/PTheory.h \ @@ -51,7 +51,7 @@ cpp_sources = \ PRunDataHandler.cpp \ PRunListCollection.cpp \ PRunNonMusr.cpp \ - PRunRRF.cpp \ + PRunMuMinus.cpp \ PRunSingleHisto.cpp \ PStartupHandler.cpp \ PTheory.cpp \ diff --git a/src/classes/PFitterFcn.cpp b/src/classes/PFitterFcn.cpp index 0c98e183..06ae4ec8 100644 --- a/src/classes/PFitterFcn.cpp +++ b/src/classes/PFitterFcn.cpp @@ -54,12 +54,11 @@ PFitterFcn::PFitterFcn(PRunListCollection *runList, Bool_t useChi2) fRunListCollection = runList; - // check if max likelihood is used together with asymmetry/RRF/nonMusr data. + // check if max likelihood is used together with asymmetry/nonMusr data. // if yes place a warning since this option is not implemented and a fall back // to chi2 will be used. if (!fUseChi2) { if ((fRunListCollection->GetNoOfAsymmetry() > 0) || - (fRunListCollection->GetNoOfRRF() > 0) || (fRunListCollection->GetNoOfNonMusr() > 0)) { cerr << endl << "**WARNING**: Maximum Log Likelihood Fit is only implemented for Single Histogram Fit"; cerr << endl << " Will fall back to Chi Square Fit."; @@ -91,12 +90,12 @@ Double_t PFitterFcn::operator()(const std::vector& par) const if (fUseChi2) { // chi square value += fRunListCollection->GetSingleHistoChisq(par); value += fRunListCollection->GetAsymmetryChisq(par); - value += fRunListCollection->GetRRFChisq(par); + value += fRunListCollection->GetMuMinusChisq(par); value += fRunListCollection->GetNonMusrChisq(par); } else { // max likelihood value += fRunListCollection->GetSingleHistoMaximumLikelihood(par); value += fRunListCollection->GetAsymmetryMaximumLikelihood(par); - value += fRunListCollection->GetRRFMaximumLikelihood(par); + value += fRunListCollection->GetMuMinusMaximumLikelihood(par); value += fRunListCollection->GetNonMusrMaximumLikelihood(par); } diff --git a/src/classes/PMsrHandler.cpp b/src/classes/PMsrHandler.cpp index 4189f6ca..0659a28f 100644 --- a/src/classes/PMsrHandler.cpp +++ b/src/classes/PMsrHandler.cpp @@ -590,8 +590,8 @@ Int_t PMsrHandler::WriteMsrLogFile(const Bool_t messages) case MSR_FITTYPE_ASYM: fout << left << "fittype" << MSR_FITTYPE_ASYM << " (asymmetry fit)" << endl ; break; - case MSR_FITTYPE_ASYM_RRF: - fout << left << "fittype" << MSR_FITTYPE_ASYM_RRF << " (RRF asymmetry fit)" << endl ; + case MSR_FITTYPE_MU_MINUS: + fout << left << "fittype" << MSR_FITTYPE_MU_MINUS << " (mu minus fit)" << endl ; break; case MSR_FITTYPE_NON_MUSR: fout << left << "fittype" << MSR_FITTYPE_NON_MUSR << " (non muSR fit)" << endl ; @@ -837,8 +837,8 @@ Int_t PMsrHandler::WriteMsrLogFile(const Bool_t messages) case MSR_PLOT_ASYM: fout << "PLOT " << fPlots[plotNo].fPlotType << " (asymmetry plot)" << endl; break; - case MSR_PLOT_ASYM_RRF: - fout << "PLOT " << fPlots[plotNo].fPlotType << " (rotating reference frame plot)" << endl; + case MSR_PLOT_MU_MINUS: + fout << "PLOT " << fPlots[plotNo].fPlotType << " (mu minus plot)" << endl; break; case MSR_PLOT_NON_MUSR: fout << "PLOT " << fPlots[plotNo].fPlotType << " (non muSR plot)" << endl; @@ -850,12 +850,8 @@ Int_t PMsrHandler::WriteMsrLogFile(const Bool_t messages) fout << "runs "; fout.precision(0); for (UInt_t j=0; jfLine.Tokenize(" \t"); if (!tokens) { cerr << endl << ">> PMsrHandler::HandlePlotEntry: **SEVERE ERROR** Couldn't tokenize PLOT in line " << iter1->fLineNo; @@ -2798,14 +2794,9 @@ Bool_t PMsrHandler::HandlePlotEntry(PMsrLines &lines) cerr << endl; cerr << endl << "where is: 0=single histo asym,"; cerr << endl << " 2=forward-backward asym,"; - cerr << endl << " 4=RRF asym (not implemented yet),"; + cerr << endl << " 4=mu minus singhle histo (not implemented yet),"; cerr << endl << " 8=non muSR."; - cerr << endl << " is the list of runs"; - cerr << endl << " for 0,2,8 it is a list of run numbers, e.g. runs 1 3"; - cerr << endl << " for 4 it is a list of 'complex' numbers, where"; - cerr << endl << " the real part is the run number, and the"; - cerr << endl << " imaginary one is 1=real part or 2=imag part, e.g."; - cerr << endl << " runs 1,1 1,2"; + cerr << endl << " is the list of runs, e.g. runs 1 3"; cerr << endl << "range is optional"; cerr << endl << "sub_ranges (if present) will plot the N given runs each on its own sub-range"; cerr << endl << "logx, logy (if present) will present the x-, y-axis in log-scale"; diff --git a/src/classes/PMusrCanvas.cpp b/src/classes/PMusrCanvas.cpp index 9304589a..14e1c065 100644 --- a/src/classes/PMusrCanvas.cpp +++ b/src/classes/PMusrCanvas.cpp @@ -435,14 +435,14 @@ void PMusrCanvas::UpdateDataTheoryPad() fPlotType = plotInfo.fPlotType; for (UInt_t i=0; i (Int_t)runs.size()) { + if ((Int_t)plotInfo.fRuns[i] > (Int_t)runs.size()) { fValid = false; - cerr << endl << "PMusrCanvas::UpdateDataTheoryPad: **ERROR** run plot number " << (Int_t)plotInfo.fRuns[i].Re() << " is larger than the number of runs " << runs.size(); + cerr << endl << "PMusrCanvas::UpdateDataTheoryPad: **ERROR** run plot number " << (Int_t)plotInfo.fRuns[i] << " is larger than the number of runs " << runs.size(); cerr << endl; return; } // check that the plottype and the fittype do correspond - runNo = (UInt_t)plotInfo.fRuns[i].Re()-1; + runNo = (UInt_t)plotInfo.fRuns[i]-1; //cout << endl << ">> runNo = " << runNo; //cout << endl; if (fPlotType != runs[runNo].GetFitType()) { @@ -457,7 +457,7 @@ void PMusrCanvas::UpdateDataTheoryPad() for (UInt_t i=0; iGetRRF(runNo, PRunListCollection::kRunNo); + case MSR_FITTYPE_MU_MINUS: + data = fRunList->GetMuMinus(runNo, PRunListCollection::kRunNo); if (!data) { // something wrong fValid = false; // error message - cerr << endl << "PMusrCanvas::UpdateDataTheoryPad: **ERROR** couldn't obtain run no " << runNo << " for a RRF plot"; + cerr << endl << "PMusrCanvas::UpdateDataTheoryPad: **ERROR** couldn't obtain run no " << runNo << " for a mu minus single histogram plot"; cerr << endl; return; } @@ -583,7 +583,7 @@ void PMusrCanvas::UpdateInfoPad() PMsrRunList runs = *fMsrHandler->GetMsrRunList(); for (UInt_t i=0; i 1) tstr = "++" + *runs[runNo].GetRunName() + TString(","); // run_name else @@ -2569,9 +2569,11 @@ void PMusrCanvas::PlotData() } break; case MSR_PLOT_ASYM: - case MSR_PLOT_ASYM_RRF: yAxisTitle = "asymmetry"; break; + case MSR_PLOT_MU_MINUS: + yAxisTitle = "??"; + break; default: yAxisTitle = "??"; break; @@ -2601,7 +2603,7 @@ void PMusrCanvas::PlotData() PMsrRunList runs = *fMsrHandler->GetMsrRunList(); PMsrPlotStructure plotInfo = fMsrHandler->GetMsrPlotList()->at(fPlotNumber); - UInt_t runNo = (UInt_t)plotInfo.fRuns[0].Re()-1; + UInt_t runNo = (UInt_t)plotInfo.fRuns[0]-1; TString xAxisTitle = fRunList->GetXAxisTitle(*runs[runNo].GetRunName(), runNo); TString yAxisTitle = fRunList->GetYAxisTitle(*runs[runNo].GetRunName(), runNo); @@ -2660,7 +2662,7 @@ void PMusrCanvas::PlotData() assert(fMultiGraphLegend != 0); PStringVector legendLabel; for (UInt_t i=0; iGetXAxisTitle(*runs[runNo].GetRunName(), runNo); yAxisTitle = fRunList->GetYAxisTitle(*runs[runNo].GetRunName(), runNo); legendLabel.push_back(xAxisTitle + " vs. " + yAxisTitle); @@ -2724,7 +2726,7 @@ void PMusrCanvas::PlotDifference() PMsrRunList runs = *fMsrHandler->GetMsrRunList(); PMsrPlotStructure plotInfo = fMsrHandler->GetMsrPlotList()->at(fPlotNumber); - UInt_t runNo = (UInt_t)plotInfo.fRuns[0].Re()-1; + UInt_t runNo = (UInt_t)plotInfo.fRuns[0]-1; TString xAxisTitle = fRunList->GetXAxisTitle(*runs[runNo].GetRunName(), runNo); // if fMultiGraphDiff is not present create it and add the diff data @@ -3491,7 +3493,7 @@ void PMusrCanvas::SaveDataAscii() switch (fPlotType) { case MSR_PLOT_SINGLE_HISTO: case MSR_PLOT_ASYM: - case MSR_PLOT_ASYM_RRF: + case MSR_PLOT_MU_MINUS: if (fDifferenceView) { // difference view plot switch (fCurrentPlotView) { case PV_DATA: diff --git a/src/classes/PMusrT0.cpp b/src/classes/PMusrT0.cpp index 71ddf1f3..c8778a8b 100644 --- a/src/classes/PMusrT0.cpp +++ b/src/classes/PMusrT0.cpp @@ -256,8 +256,8 @@ void PMusrT0::InitDataAndBkg() fAddRunOffset = 2; } else if (fitType == MSR_FITTYPE_ASYM) { fAddRunOffset = 4; - } else if (fitType == MSR_FITTYPE_ASYM_RRF) { - fAddRunOffset = 8; + } else if (fitType == MSR_FITTYPE_MU_MINUS) { + fAddRunOffset = 2; } // feed data range histo diff --git a/src/classes/PRunListCollection.cpp b/src/classes/PRunListCollection.cpp index f89cc244..46d9d7f5 100644 --- a/src/classes/PRunListCollection.cpp +++ b/src/classes/PRunListCollection.cpp @@ -71,12 +71,12 @@ PRunListCollection::~PRunListCollection() } fRunAsymmetryList.clear(); -//cout << endl << ">> fRunRRFList.size() = " << fRunRRFList.size(); - for (UInt_t i=0; iCleanUp(); - fRunRRFList[i]->~PRunRRF(); +//cout << endl << ">> fRunMuMinusList.size() = " << fRunMuMinusList.size(); + for (UInt_t i=0; iCleanUp(); + fRunMuMinusList[i]->~PRunMuMinus(); } - fRunRRFList.clear(); + fRunMuMinusList.clear(); //cout << endl << ">> fRunNonMusrList.size() = " << fRunNonMusrList.size(); for (UInt_t i=0; iIsValid()) success = false; break; - case PRUN_RRF: - fRunRRFList.push_back(new PRunRRF(fMsrInfo, fData, runNo, tag)); - if (!fRunRRFList[fRunRRFList.size()-1]->IsValid()) + case PRUN_MU_MINUS: + fRunMuMinusList.push_back(new PRunMuMinus(fMsrInfo, fData, runNo, tag)); + if (!fRunMuMinusList[fRunMuMinusList.size()-1]->IsValid()) success = false; break; case PRUN_NON_MUSR: @@ -169,17 +169,17 @@ Double_t PRunListCollection::GetAsymmetryChisq(const std::vector& par) } //-------------------------------------------------------------------------- -// GetRRFChisq +// GetMuMinusChisq //-------------------------------------------------------------------------- /** *

*/ -Double_t PRunListCollection::GetRRFChisq(const std::vector& par) const +Double_t PRunListCollection::GetMuMinusChisq(const std::vector& par) const { Double_t chisq = 0.0; - for (UInt_t i=0; iCalcChiSquare(par); + for (UInt_t i=0; iCalcChiSquare(par); return chisq; } @@ -234,18 +234,17 @@ Double_t PRunListCollection::GetAsymmetryMaximumLikelihood(const std::vector Since it is not clear yet how to handle RRF fits with max likelihood - * the chi square will be used! + *

*/ -Double_t PRunListCollection::GetRRFMaximumLikelihood(const std::vector& par) const +Double_t PRunListCollection::GetMuMinusMaximumLikelihood(const std::vector& par) const { Double_t mlh = 0.0; - for (UInt_t i=0; iCalcChiSquare(par); + for (UInt_t i=0; iCalcMaxLikelihood(par); return mlh; } @@ -283,8 +282,8 @@ UInt_t PRunListCollection::GetTotalNoOfBinsFitted() const for (UInt_t i=0; iGetNoOfFitBins(); - for (UInt_t i=0; iGetNoOfFitBins(); + for (UInt_t i=0; iGetNoOfFitBins(); for (UInt_t i=0; iGetNoOfFitBins(); @@ -372,7 +371,7 @@ PRunData* PRunListCollection::GetAsymmetry(UInt_t index, EDataSwitch tag) } //-------------------------------------------------------------------------- -// GetRRF +// GetMuMinus //-------------------------------------------------------------------------- /** *

@@ -380,19 +379,25 @@ PRunData* PRunListCollection::GetAsymmetry(UInt_t index, EDataSwitch tag) * \param index * \param tag kIndex -> data at index, kRunNo -> data of given run no */ -PRunData* PRunListCollection::GetRRF(UInt_t index, EDataSwitch tag) +PRunData* PRunListCollection::GetMuMinus(UInt_t index, EDataSwitch tag) { PRunData *data = 0; switch (tag) { case kIndex: - if ((index < 0) || (index > fRunRRFList.size())) { - cerr << endl << "PRunListCollection::GetRRF: **ERROR** index = " << index << " out of bounds"; + if ((index < 0) || (index > fRunMuMinusList.size())) { + cerr << endl << "PRunListCollection::GetMuMinus: **ERROR** index = " << index << " out of bounds"; cerr << endl; return 0; } break; case kRunNo: + for (UInt_t i=0; iGetRunNo() == index) { + data = fRunMuMinusList[i]->GetData(); + break; + } + } break; default: // error break; diff --git a/src/classes/PRunRRF.cpp b/src/classes/PRunMuMinus.cpp similarity index 84% rename from src/classes/PRunRRF.cpp rename to src/classes/PRunMuMinus.cpp index bd16deee..c62d540b 100644 --- a/src/classes/PRunRRF.cpp +++ b/src/classes/PRunMuMinus.cpp @@ -1,6 +1,6 @@ /*************************************************************************** - PRunRRF.cpp + PRunMuMinus.cpp Author: Andreas Suter e-mail: andreas.suter@psi.ch @@ -31,7 +31,7 @@ #include -#include "PRunRRF.h" +#include "PRunMuMinus.h" //-------------------------------------------------------------------------- // Constructor @@ -40,7 +40,7 @@ *

* */ -PRunRRF::PRunRRF() : PRunBase() +PRunMuMinus::PRunMuMinus() : PRunBase() { fFitStartTime = 0.0; fFitStopTime = 0.0; @@ -58,7 +58,7 @@ PRunRRF::PRunRRF() : PRunBase() * \param msrInfo pointer to the msr info structure * \param runNo number of the run of the msr-file */ -PRunRRF::PRunRRF(PMsrHandler *msrInfo, PRunDataHandler *rawData, UInt_t runNo, EPMusrHandleTag tag) : PRunBase(msrInfo, rawData, runNo, tag) +PRunMuMinus::PRunMuMinus(PMsrHandler *msrInfo, PRunDataHandler *rawData, UInt_t runNo, EPMusrHandleTag tag) : PRunBase(msrInfo, rawData, runNo, tag) { Bool_t success; @@ -75,7 +75,7 @@ PRunRRF::PRunRRF(PMsrHandler *msrInfo, PRunDataHandler *rawData, UInt_t runNo, E *

* */ -PRunRRF::~PRunRRF() +PRunMuMinus::~PRunMuMinus() { } @@ -87,7 +87,7 @@ PRunRRF::~PRunRRF() * * \param par parameter vector iterated by minuit */ -Double_t PRunRRF::CalcChiSquare(const std::vector& par) +Double_t PRunMuMinus::CalcChiSquare(const std::vector& par) { Double_t chisq = 0.0; Double_t diff = 0.0; @@ -103,7 +103,7 @@ Double_t PRunRRF::CalcChiSquare(const std::vector& par) * * \param par parameter vector iterated by minuit */ -Double_t PRunRRF::CalcMaxLikelihood(const std::vector& par) +Double_t PRunMuMinus::CalcMaxLikelihood(const std::vector& par) { cout << endl << "PRunSingleHisto::CalcMaxLikelihood(): not implemented yet ..." << endl; @@ -117,7 +117,7 @@ Double_t PRunRRF::CalcMaxLikelihood(const std::vector& par) *

* */ -void PRunRRF::CalcTheory() +void PRunMuMinus::CalcTheory() { } @@ -128,11 +128,11 @@ void PRunRRF::CalcTheory() *

* */ -Bool_t PRunRRF::PrepareData() +Bool_t PRunMuMinus::PrepareData() { Bool_t success = true; - cout << endl << "in PRunRRF::PrepareData(): will feed fData"; + cout << endl << "in PRunMuMinus::PrepareData(): will feed fData"; return success; } diff --git a/src/classes/PRunNonMusr.cpp b/src/classes/PRunNonMusr.cpp index 35ff5052..60baba75 100644 --- a/src/classes/PRunNonMusr.cpp +++ b/src/classes/PRunNonMusr.cpp @@ -313,9 +313,9 @@ Bool_t PRunNonMusr::PrepareViewData() for (UInt_t j=0; j> j=" << j; // cout << endl << ">> fRunNo=" << fRunNo; -// cout << endl << ">> plotBlock.fRuns[j].Re()=" << plotBlock.fRuns[j].Re(); +// cout << endl << ">> plotBlock.fRuns[j]=" << plotBlock.fRuns[j]; // cout << endl; - if (fRunNo == plotBlock.fRuns[j].Re()-1) { // run found + if (fRunNo == plotBlock.fRuns[j]-1) { // run found if (first) { first = false; xMin = plotBlock.fTmin[0]; diff --git a/src/include/PMusr.h b/src/include/PMusr.h index 32a42ae7..854819a9 100644 --- a/src/include/PMusr.h +++ b/src/include/PMusr.h @@ -35,7 +35,6 @@ #include using namespace std; -#include #include #define PMUSR_SUCCESS 0 @@ -48,7 +47,7 @@ using namespace std; #define PRUN_SINGLE_HISTO 0 #define PRUN_ASYMMETRY 2 -#define PRUN_RRF 4 +#define PRUN_MU_MINUS 4 #define PRUN_NON_MUSR 8 // muon life time in (us), see PRL99, 032001 (2007) @@ -81,14 +80,14 @@ using namespace std; // msr fit type tags #define MSR_FITTYPE_SINGLE_HISTO 0 #define MSR_FITTYPE_ASYM 2 -#define MSR_FITTYPE_ASYM_RRF 4 +#define MSR_FITTYPE_MU_MINUS 4 #define MSR_FITTYPE_NON_MUSR 8 //------------------------------------------------------------- // msr plot type tags #define MSR_PLOT_SINGLE_HISTO 0 #define MSR_PLOT_ASYM 2 -#define MSR_PLOT_ASYM_RRF 4 +#define MSR_PLOT_MU_MINUS 4 #define MSR_PLOT_NON_MUSR 8 //------------------------------------------------------------- @@ -160,12 +159,6 @@ typedef vector PDoubleVector; */ typedef vector< pair > PDoublePairVector; -//------------------------------------------------------------- -/** - *

typedef to make to code more readable. - */ -typedef vector PComplexVector; - //------------------------------------------------------------- /** *

typedef to make to code more readable. @@ -459,7 +452,7 @@ class PMsrRunBlock { PStringVector fBeamline; ///< e.g. mue4, mue1, pim3, emu, m15, ... (former: run type) PStringVector fInstitute; ///< e.g. psi, ral, triumf (former: run format) PStringVector fFileFormat; ///< e.g. root, nexus, psi-bin, mud, ascii, db - Int_t fFitType; ///< fit type: 0=single histo fit, 2=asymmetry fit, 4=asymmetry in RRF, 8=non muSR + Int_t fFitType; ///< fit type: 0=single histo fit, 2=asymmetry fit, 4=mu^- single histo fit, 8=non muSR fit Int_t fAlphaParamNo; ///< alpha parameter number (fit type 2, 4) Int_t fBetaParamNo; ///< beta parameter number (fit type 2, 4) Int_t fNormParamNo; ///< N0 parameter number (fit type 0) @@ -513,7 +506,7 @@ typedef struct { Bool_t fLogX; ///< yes -> x-axis in log-scale, no (default) -> x-axis in lin-scale Bool_t fLogY; ///< yes -> y-axis in log-scale, no (default) -> y-axis in lin-scale Int_t fViewPacking; ///< -1 -> use the run packing to generate the view, otherwise is fViewPacking for the binning of ALL runs. - PComplexVector fRuns; ///< list of runs to be plotted + PIntVector fRuns; ///< list of runs to be plotted PDoubleVector fTmin; ///< time minimum PDoubleVector fTmax; ///< time maximum PDoubleVector fYmin; ///< asymmetry/counts minimum diff --git a/src/include/PRunListCollection.h b/src/include/PRunListCollection.h index 9aa736b6..5d3a9795 100644 --- a/src/include/PRunListCollection.h +++ b/src/include/PRunListCollection.h @@ -40,7 +40,7 @@ using namespace std; #include "PRunDataHandler.h" #include "PRunSingleHisto.h" #include "PRunAsymmetry.h" -#include "PRunRRF.h" +#include "PRunMuMinus.h" #include "PRunNonMusr.h" class PRunListCollection @@ -55,24 +55,24 @@ class PRunListCollection virtual Double_t GetSingleHistoChisq(const std::vector& par) const; virtual Double_t GetAsymmetryChisq(const std::vector& par) const; - virtual Double_t GetRRFChisq(const std::vector& par) const; + virtual Double_t GetMuMinusChisq(const std::vector& par) const; virtual Double_t GetNonMusrChisq(const std::vector& par) const; virtual Double_t GetSingleHistoMaximumLikelihood(const std::vector& par) const; virtual Double_t GetAsymmetryMaximumLikelihood(const std::vector& par) const; - virtual Double_t GetRRFMaximumLikelihood(const std::vector& par) const; + virtual Double_t GetMuMinusMaximumLikelihood(const std::vector& par) const; virtual Double_t GetNonMusrMaximumLikelihood(const std::vector& par) const; virtual UInt_t GetTotalNoOfBinsFitted() const; virtual UInt_t GetNoOfSingleHisto() const { return fRunSingleHistoList.size(); } - virtual UInt_t GetNoOfAsymmetry() const { return fRunAsymmetryList.size(); } - virtual UInt_t GetNoOfRRF() const { return fRunRRFList.size(); } - virtual UInt_t GetNoOfNonMusr() const { return fRunNonMusrList.size(); } + virtual UInt_t GetNoOfAsymmetry() const { return fRunAsymmetryList.size(); } + virtual UInt_t GetNoOfMuMinus() const { return fRunMuMinusList.size(); } + virtual UInt_t GetNoOfNonMusr() const { return fRunNonMusrList.size(); } virtual PRunData* GetSingleHisto(UInt_t index, EDataSwitch tag=kIndex); virtual PRunData* GetAsymmetry(UInt_t index, EDataSwitch tag=kIndex); - virtual PRunData* GetRRF(UInt_t index, EDataSwitch tag=kIndex); + virtual PRunData* GetMuMinus(UInt_t index, EDataSwitch tag=kIndex); virtual PRunData* GetNonMusr(UInt_t index, EDataSwitch tag=kIndex); virtual const PDoublePairVector *GetTemp(const TString &runName) const; @@ -88,7 +88,7 @@ class PRunListCollection vector fRunSingleHistoList; vector fRunAsymmetryList; - vector fRunRRFList; + vector fRunMuMinusList; vector fRunNonMusrList; }; diff --git a/src/include/PRunRRF.h b/src/include/PRunMuMinus.h similarity index 86% rename from src/include/PRunRRF.h rename to src/include/PRunMuMinus.h index 082bde4c..9e60d8f3 100644 --- a/src/include/PRunRRF.h +++ b/src/include/PRunMuMinus.h @@ -1,6 +1,6 @@ /*************************************************************************** - PRunRRF.h + PRunMuMinus.h Author: Andreas Suter e-mail: andreas.suter@psi.ch @@ -29,17 +29,17 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _PRUNRRF_H_ -#define _PRUNRRF_H_ +#ifndef _PRUNMUMINUS_H_ +#define _PRUNMUMINUS_H_ #include "PRunBase.h" -class PRunRRF : public PRunBase +class PRunMuMinus : public PRunBase { public: - PRunRRF(); - PRunRRF(PMsrHandler *msrInfo, PRunDataHandler *rawData, UInt_t runNo, EPMusrHandleTag tag); - virtual ~PRunRRF(); + PRunMuMinus(); + PRunMuMinus(PMsrHandler *msrInfo, PRunDataHandler *rawData, UInt_t runNo, EPMusrHandleTag tag); + virtual ~PRunMuMinus(); virtual Double_t CalcChiSquare(const std::vector& par); virtual Double_t CalcMaxLikelihood(const std::vector& par); @@ -56,4 +56,4 @@ class PRunRRF : public PRunBase UInt_t fNoOfFitBins; }; -#endif // _PRUNRRF_H_ +#endif // _PRUNMUMINUS_H_ diff --git a/src/musrfit.cpp b/src/musrfit.cpp index 31f705dc..71511bfe 100644 --- a/src/musrfit.cpp +++ b/src/musrfit.cpp @@ -165,10 +165,10 @@ void musrfit_dump_ascii(char *fileName, PRunListCollection *runList) } // rrf - size = runList->GetNoOfRRF(); + size = runList->GetNoOfMuMinus(); if (size > 0) { for (unsigned int i=0; iGetRRF(i); + data = runList->GetMuMinus(i); if (data) { // dump data musrfit_write_ascii(fln, data, runCounter); @@ -295,10 +295,10 @@ void musrfit_dump_root(char *fileName, PRunListCollection *runList) } // rrf - size = runList->GetNoOfRRF(); + size = runList->GetNoOfMuMinus(); if (size > 0) { for (unsigned int i=0; iGetRRF(i); + data = runList->GetMuMinus(i); if (data) { // dump data musrfit_write_root(f, fln, data, runCounter); diff --git a/src/musrt0.cpp b/src/musrt0.cpp index d202b51b..8630e1b8 100644 --- a/src/musrt0.cpp +++ b/src/musrt0.cpp @@ -275,7 +275,7 @@ int main(int argc, char *argv[]) } } break; - case MSR_FITTYPE_ASYM_RRF: + case MSR_FITTYPE_MU_MINUS: /* for (unsigned int j=0; jat(i).GetRunNameSize(); j++) { // necessary in case of ADDRUN if (!musrt0_item(app, msrHandler, dataHandler->GetRunData(*(runList->at(i).GetRunName(j))), i, runList->at(i).GetForwardHistoNo(), 0, j)) { diff --git a/src/musrview.cpp b/src/musrview.cpp index 48b8f64c..aa4951dd 100644 --- a/src/musrview.cpp +++ b/src/musrview.cpp @@ -204,13 +204,13 @@ int main(int argc, char *argv[]) // check that run is not already in the plotList runPresent = false; for (unsigned int k=0; kat(i).fRuns[j].Re() == static_cast(plotList[k])) { + if (msrPlotList->at(i).fRuns[j] == static_cast(plotList[k])) { runPresent = true; break; } } if (!runPresent) { - plotList.push_back(static_cast(msrPlotList->at(i).fRuns[j].Re())); + plotList.push_back(static_cast(msrPlotList->at(i).fRuns[j])); } } }