Ignore:
Timestamp:
01/23/03 17:25:53 (22 years ago)
Author:
rwagner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MSigmabarCalc.cc

    r1693 r1729  
    1616!
    1717!
    18 !   Author(s): Robert Wagner <magicdev@rwagner.de> 10/2002
     18!   Author(s): Robert Wagner <rwagner@mppmu.mpg.de> 10/2002
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2002
     20!   Copyright: MAGIC Software Development, 2000-2003
    2121!
    2222!
     
    3131//  in MSigmabarParam. For the time being, Theta is taken from a Monte     //
    3232//  Carlo container. This is preliminary and to be changed ASAP.           //
    33  //                                                                         //
     33//                                                                         //
    3434/////////////////////////////////////////////////////////////////////////////
    3535#include "MSigmabarCalc.h"
     
    9898        return kFALSE;
    9999    }
     100
     101    fRun = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
     102    if (!fRun)
     103    {
     104        *fLog << dbginf << "MRawRunHeader not found... aborting." << endl;
     105        return kFALSE;
     106    }
    100107   
    101108    fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt");
     
    123130  fSigmabarMin = TMath::Min((Double_t)fSig->GetSigmabar(), fSigmabarMin);
    124131
    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);
    128135
    129136  return rc;
     
    138145{
    139146   
    140   fSigParam->SetParams(1, fSigmabarMin, fSigmabarMax, fThetaMin, fThetaMax); 
     147  fSigParam->SetParams(1, fSigmabarMin, fSigmabarMax, fThetaMin, fThetaMax);
     148  fSigParam->SetRunNumber(fRun->GetRunNumber());
     149 
    141150  Reset();
    142151 
Note: See TracChangeset for help on using the changeset viewer.