Changeset 2314 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
08/22/03 12:30:02 (21 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2311 r2314  
    11                                                 -*-*- END OF LINE -*-*-
     2
     3 2003/08/22: Wolfgang Wittek
     4
     5    * mhistmc/MHMcCT1CollectionArea.cc
     6      - change selection of theta bin in 'CalcEfficiency()'
     7        (to be mored flexible in choosing the theta binnning)
     8
     9
     10
    211
    312 2003/08/21: Thomas Bretz
     
    4655     In the loop where fDataRang is set, the local variable v must
    4756     be used with indices n1 and n2.   
     57
    4858
    4959
  • trunk/MagicSoft/Mars/mhistmc/MHMcCT1CollectionArea.cc

    r2273 r2314  
    282282
    283283      Float_t theta = fHistAll->GetYaxis()->GetBinCenter(thetabin);
     284      Float_t thetalo = fHistAll->GetYaxis()->GetBinLowEdge(thetabin);
     285      Float_t thetahi = fHistAll->GetYaxis()->GetBinLowEdge(thetabin+1);
    284286
    285287      Float_t emin[4];       // Minimum energy in MC sample
     
    311313      Int_t num_MC_samples = 0;
    312314
    313       if (theta > 8 && theta < 9)   // 8.75 deg
     315      //if (theta > 8 && theta < 9)   // 8.75 deg
     316      if (  thetalo<8.75  && 8.75<thetahi)   // 8.75 deg
    314317        {
    315318          emin[0] = 300.;
     
    326329          num_MC_samples = 2;
    327330        }
    328       else if (theta > 20 && theta < 21)  // 20.5 deg
     331      //else if (theta > 20 && theta < 21)  // 20.5 deg
     332      else if (  thetalo<20.5  && 20.5<thetahi)   // 20.5 deg
    329333        {
    330334          emin[0] = 300.;
     
    341345          num_MC_samples = 2;
    342346        }
    343       else if (theta > 26 && theta < 27)  // 26.5 degrees
     347      //else if (theta > 26 && theta < 27)  // 26.5 degrees
     348      else if (  thetalo<26.5  && 26.5<thetahi)   // 26.5 deg
    344349        {
    345350          emin[0] = 300.;
     
    356361          num_MC_samples = 2;
    357362        }
    358       else if (theta > 32 && theta < 33)  // 32.5 degrees
     363      //else if (theta > 32 && theta < 33)  // 32.5 degrees
     364      else if (  thetalo<32.5  && 32.5<thetahi)   // 32.5 deg
    359365        {
    360366          emin[0] = 300.;
     
    366372          num_MC_samples = 1;
    367373        }
    368       else if (theta > 38 && theta < 39)  // 38.75 degrees
     374      //else if (theta > 38 && theta < 39)  // 38.75 degrees
     375      else if (  thetalo<38.75  && 38.75<thetahi)   // 38.75 deg
    369376        {
    370377          emin[0] = 300.;
     
    376383          num_MC_samples = 1;
    377384        }
    378       else if (theta > 45 && theta < 47)  // 46 degrees
     385      //else if (theta > 45 && theta < 47)  // 46 degrees
     386      else if (  thetalo<46  && 46<thetahi)   // 46 deg
    379387        {
    380388          emin[0] = 300.;
     
    386394          num_MC_samples = 1;
    387395        }
    388       else if (theta > 54 && theta < 56)  // 55 degrees
     396      //else if (theta > 54 && theta < 56)  // 55 degrees
     397      else if (  thetalo<55  && 55<thetahi)   // 55 deg
    389398        {
    390399          //
     
    417426        }
    418427
    419       else if (theta > 64 && theta < 66)  // 65 degrees
     428      //else if (theta > 64 && theta < 66)  // 65 degrees
     429      else if (  thetalo<65  && 65<thetahi)   // 65 deg
    420430        {
    421431          emin[0] = 2000.;
Note: See TracChangeset for help on using the changeset viewer.