Changeset 5437 for trunk


Ignore:
Timestamp:
11/20/04 13:41:51 (20 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

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

    r5436 r5437  
    503503  } 
    504504
    505   *fLog << "hist2patternin = "  << hist2patternin << endl;
    506   *fLog << "hist2patternout = " << hist2patternout << endl;
    507   *fLog << "hist3pattern = " << hist3pattern << endl;
     505  //*fLog << "hist2patternin = "  << hist2patternin << endl;
     506  //*fLog << "hist2patternout = " << hist2patternout << endl;
     507  //*fLog << "hist3pattern = " << hist3pattern << endl;
    508508
    509509
    510510  TAxis *axs = hist2patternin->GetXaxis();
    511511  Int_t nbinsthetas = axs->GetNbins();
    512   *fLog << "vor fHSigmaTheta : nbinsthetas = " << nbinsthetas << endl;
     512  //*fLog << "vor fHSigmaTheta : nbinsthetas = " << nbinsthetas << endl;
    513513
    514514  TArrayD edgess;
     
    517517  {
    518518    edgess[i] = axs->GetBinLowEdge(i+1);
    519     *fLog << all << "i, theta low edge = " << i << ",  " << edgess[i]
    520           << endl;
     519    //*fLog << all << "i, theta low edge = " << i << ",  " << edgess[i]
     520    //      << endl;
    521521  }
    522522
     
    912912  // write the target padding histograms onto a file  ---------
    913913  WritePaddingDist(fileout);     
     914
     915  //-------------------------------------------------------
     916  TCanvas *pad = MH::MakeDefCanvas("target", "target", 600, 300);
     917  gROOT->SetSelectedPad(NULL);
     918
     919  pad->Divide(2, 1);
     920
     921  pad->cd(1);
     922  gPad->SetBorderMode(0);
     923  fHSigmaTheta->SetDirectory(NULL);
     924  fHSigmaTheta->UseCurrentStyle();
     925  fHSigmaTheta->DrawClone();
     926  fHSigmaTheta->SetBit(kCanDelete);   
     927
     928  pad->cd(2);
     929  gPad->SetBorderMode(0);
     930  fHSigmaThetaOuter->SetDirectory(NULL);
     931  fHSigmaThetaOuter->UseCurrentStyle();
     932  fHSigmaThetaOuter->DrawClone();
     933  fHSigmaThetaOuter->SetBit(kCanDelete);   
     934
     935  pad->Draw();
    914936
    915937  return kTRUE;
  • trunk/MagicSoft/Mars/mfilter/MFSelBasic.cc

    r5431 r5437  
    3737//      remove bad runs
    3838//      thetamin < theta < thetamax
     39//      phimin   < phi   < phimax
    3940//      software trigger fullfilled (with minimum no.of photons = minphotons)
    4041//
     
    7172
    7273    // default values of cuts
    73     SetCuts(20.0, 0.0, 60.0);
     74    SetCuts(20.0, 0.0, 60.0, 0.0, 360.0);
    7475}
    7576
     
    8081//
    8182void MFSelBasic::SetCuts(Float_t minphotons,
    82                             Float_t thetamin, Float_t thetamax)
     83                         Float_t thetamin, Float_t thetamax,
     84                         Float_t phimin,   Float_t phimax)
    8385{
    8486    fMinPhotons = minphotons;
     87
    8588    fThetaMin   = thetamin;
    8689    fThetaMax   = thetamax;
    8790
     91    fPhiMin   = phimin;
     92    fPhiMax   = phimax;
    8893}
    8994
     
    126131
    127132    //-------------------------
    128     *fLog << inf << "MFSelBasic cut values : fMinPhotons, fThetaMin, fThetaMax = ";
    129     *fLog << fMinPhotons <<",  " << fThetaMin << ",  " << fThetaMax << endl;
     133    *fLog << inf << "MFSelBasic cut values : fMinPhotons, fThetaMin, fThetaMax, fPhiMin, fPhiMax = ";
     134    *fLog << fMinPhotons << ",  " << fThetaMin << ",  " << fThetaMax << ",  "
     135          << fPhiMin     << ",  " << fPhiMax   << endl;
    130136    //-------------------------
    131137
     
    150156{
    151157    const Double_t theta = fPointPos->GetZd();
     158    const Double_t phi   = fPointPos->GetAz();
    152159
    153160    fResult  = kFALSE;
     
    168175        return Set(3);
    169176
     177    if (phi<fPhiMin)
     178        return Set(5);
     179
     180    if (phi>fPhiMax)
     181        return Set(6);
     182
    170183    if (!SwTrigger())
    171184        return Set(4);
     
    252265    *fLog << "%) Evts skipped due to: Zenith angle > " << fThetaMax << endl;
    253266
     267    *fLog << " " << setw(7) << fCut[5] << " (" << setw(3) ;
     268    *fLog << (int)(fCut[5]*100/GetNumExecutions()) ;
     269    *fLog << "%) Evts skipped due to: Azimuth angle < " << fPhiMin << endl;
     270
     271    *fLog << " " << setw(7) << fCut[6] << " (" << setw(3) ;
     272    *fLog << (int)(fCut[6]*100/GetNumExecutions()) ;
     273    *fLog << "%) Evts skipped due to: Azimuth angle > " << fPhiMax << endl;
     274
    254275    *fLog << " " << setw(7) << fCut[4] << " (" << setw(3) ;
    255276    *fLog << (int)(fCut[4]*100/GetNumExecutions()) ;
  • trunk/MagicSoft/Mars/mfilter/MFSelBasic.h

    r4886 r5437  
    3333    Float_t     fThetaMax;
    3434
    35     Int_t       fCut[5];
     35    Float_t     fPhiMin;
     36    Float_t     fPhiMax;
     37
     38    Int_t       fCut[7];
    3639
    3740    Bool_t      fResult;
     
    5053    MFSelBasic(const char *name=NULL, const char *title=NULL);
    5154
    52     void SetCuts(Float_t minphotons, Float_t thetamin, Float_t thetamax);
     55    void SetCuts(Float_t minphotons=0.0,
     56                 Float_t thetamin=0.0, Float_t thetamax=90.0,
     57                 Float_t phimin=0.0,   Float_t phimax=360.0);
    5358
    5459    ClassDef(MFSelBasic, 0)   // Class to evaluate basic cuts
Note: See TracChangeset for help on using the changeset viewer.