Changeset 1729 for trunk/MagicSoft/Mars/manalysis/MSigmabarCalc.cc
- Timestamp:
- 01/23/03 17:25:53 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MSigmabarCalc.cc
r1693 r1729 16 16 ! 17 17 ! 18 ! Author(s): Robert Wagner < magicdev@rwagner.de> 10/200218 ! Author(s): Robert Wagner <rwagner@mppmu.mpg.de> 10/2002 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 220 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 22 ! … … 31 31 // in MSigmabarParam. For the time being, Theta is taken from a Monte // 32 32 // Carlo container. This is preliminary and to be changed ASAP. // 33 33 // // 34 34 ///////////////////////////////////////////////////////////////////////////// 35 35 #include "MSigmabarCalc.h" … … 98 98 return kFALSE; 99 99 } 100 101 fRun = (MRawRunHeader*)pList->FindObject("MRawRunHeader"); 102 if (!fRun) 103 { 104 *fLog << dbginf << "MRawRunHeader not found... aborting." << endl; 105 return kFALSE; 106 } 100 107 101 108 fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt"); … … 123 130 fSigmabarMin = TMath::Min((Double_t)fSig->GetSigmabar(), fSigmabarMin); 124 131 125 if (fMcEvt->GetTheta ()*kRad2Deg < 90)126 fThetaMax = TMath::Max(fMcEvt->GetTheta ()*kRad2Deg, fThetaMax);127 fThetaMin = TMath::Min(fMcEvt->GetTheta ()*kRad2Deg, fThetaMin);132 if (fMcEvt->GetThetaTelescope()*kRad2Deg < 90) 133 fThetaMax = TMath::Max(fMcEvt->GetThetaTelescope()*kRad2Deg, fThetaMax); 134 fThetaMin = TMath::Min(fMcEvt->GetThetaTelescope()*kRad2Deg, fThetaMin); 128 135 129 136 return rc; … … 138 145 { 139 146 140 fSigParam->SetParams(1, fSigmabarMin, fSigmabarMax, fThetaMin, fThetaMax); 147 fSigParam->SetParams(1, fSigmabarMin, fSigmabarMax, fThetaMin, fThetaMax); 148 fSigParam->SetRunNumber(fRun->GetRunNumber()); 149 141 150 Reset(); 142 151
Note:
See TracChangeset
for help on using the changeset viewer.