added spin rotation angle to the LEM MusrRoot file

This commit is contained in:
2012-05-22 13:51:56 +00:00
parent 765d1a3faf
commit bf1d8cc96d
6 changed files with 15 additions and 0 deletions

View File

@@ -519,6 +519,7 @@ PRawRunData::PRawRunData()
fMuonSource = TString("n/a");
fMuonSpecies = TString("n/a");
fMuonBeamMomentum = PMUSR_UNDEFINED;
fMuonSpinAngle = PMUSR_UNDEFINED;
fRunName = TString("n/a");
fRunNumber = -1;
fRunTitle = TString("n/a");

View File

@@ -1472,6 +1472,11 @@ Bool_t PRunDataHandler::ReadRootFile()
if (ok)
runData.SetMuonSource(str);
header->Get("RunInfo/Muon Spin Angle", prop, ok);
if (ok) {
runData.SetMuonSpinAngle(prop.GetValue());
}
header->Get("RunInfo/Setup", str, ok);
if (ok)
runData.SetSetup(str);