Ignore:
Timestamp:
02/13/04 15:28:02 (21 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
3 edited

Legend:

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

    r2746 r3140  
    5151#include "MGeomCam.h"
    5252
    53 #include "MPedestalCam.h"
    54 #include "MPedestalPix.h"
    5553#include "MPedPhotCam.h"
     54#include "MPedPhotPix.h"
    5655#include "MMcEvt.hxx"
    5756#include "MRawRunHeader.h"
     
    7372Int_t MPedestalWorkaround::PreProcess(MParList *pList)
    7473{
     74  /*
    7575   fPed = (MPedestalCam*)pList->FindObject("MPedestalCam");
    7676   if (!fPed)
     
    7979       return kFALSE;
    8080     }
     81  */
    8182
    8283   fPedPhot = (MPedPhotCam*)pList->FindObject("MPedPhotCam");
     
    101102   }
    102103
    103    fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt");
     104   fMcEvt = (MMcEvt*)pList->FindCreateObj("MMcEvt");
    104105   if (!fMcEvt)
    105106   {
     
    119120  // from MPedPhotCam into MPedestalCam   
    120121
     122  // set pedestalRMS = 0 if it is too high
    121123  UInt_t imaxnumpix = fCam->GetNumPixels();
    122 
    123124  for (UInt_t i=0; i<imaxnumpix; i++)
    124125  {
    125     Int_t type = 0;
    126     Double_t val;
    127     Float_t valout;
    128     fPedPhot->GetPixelContent( val, i, *fCam, type);
    129     valout = (*fPed)[i].GetPedestal();
    130     (*fPed)[i].SetPedestal(val);
    131     *fLog << "i, val, valout : " << i <<",  "<<  val<<",  " << valout << endl;
    132     type = 1;
    133     fPedPhot->GetPixelContent( val, i, *fCam, type);
    134     valout = (*fPed)[i].GetPedestalRms();
    135     (*fPed)[i].SetPedestalRms(val);
    136     *fLog << "RMS : i, val, valout : " << i <<",  "<<  val<<",  " << valout
    137           << endl;
     126    Double_t val = (*fPedPhot)[i].GetRms();
     127    if (val < 0.0 || val > 10.0)
     128      (*fPedPhot)[i].SetRms(0.0);
    138129  }
    139130
     
    142133  // put the zenith angle into MMcEvt
    143134
    144   Int_t run = fRun->GetRunNumber();
    145135  Double_t thetadeg;
    146136  Double_t thetarad;
     137
     138
     139  /*
     140  Int_t run = fRun->GetRunNumber();
    147141
    148142  if      (run == 3127)  thetadeg = 27.2;  // Crab
     
    537531
    538532  thetarad = thetadeg / kRad2Deg;
     533  */
     534
     535  thetadeg = 10.0;
     536  thetarad = thetadeg / kRad2Deg;
    539537  fMcEvt->SetTelescopeTheta(thetarad);
    540538 
  • trunk/MagicSoft/Mars/manalysis/MSupercuts.cc

    r2663 r3140  
    7474{
    7575    //---------------------------------------------------
    76     //  these are Daniel's original values for Mkn 421
    77 
    78     fLengthUp[0] =  0.315585;
    79     fLengthUp[1] =  0.001455;
    80     fLengthUp[2] =  0.203198;
    81     fLengthUp[3] =  0.005532;
    82     fLengthUp[4] = -0.001670;
    83     fLengthUp[5] = -0.020362;
    84     fLengthUp[6] =  0.007388;
    85     fLengthUp[7] = -0.013463;
    86 
    87     fLengthLo[0] =  0.151530;
    88     fLengthLo[1] =  0.028323;
    89     fLengthLo[2] =  0.510707;
    90     fLengthLo[3] =  0.053089;
    91     fLengthLo[4] =  0.013708;
    92     fLengthLo[5] =  2.357993;
    93     fLengthLo[6] =  0.000080;
    94     fLengthLo[7] = -0.007157;
    95 
    96     fWidthUp[0] =  0.145412;
    97     fWidthUp[1] = -0.001771;
    98     fWidthUp[2] =  0.054462;
    99     fWidthUp[3] =  0.022280;
    100     fWidthUp[4] = -0.009893;
    101     fWidthUp[5] =  0.056353;
    102     fWidthUp[6] =  0.020711;
    103     fWidthUp[7] = -0.016703;
    104 
    105     fWidthLo[0] =  0.089187;
    106     fWidthLo[1] = -0.006430;
    107     fWidthLo[2] =  0.074442;
    108     fWidthLo[3] =  0.003738;
    109     fWidthLo[4] = -0.004256;
    110     fWidthLo[5] = -0.014101;
    111     fWidthLo[6] =  0.006126;
    112     fWidthLo[7] = -0.002849;
    113 
    114     fDistUp[0] =  1.787943;
    115     fDistUp[1] =  0;
    116     fDistUp[2] =  2.942310;
    117     fDistUp[3] =  0.199815;
    118     fDistUp[4] =  0;
    119     fDistUp[5] =  0.249909;
    120     fDistUp[6] =  0.189697;
    121     fDistUp[7] =  0;
    122 
    123     fDistLo[0] =  0.589406;
    124     fDistLo[1] =  0;
    125     fDistLo[2] = -0.083964;
    126     fDistLo[3] = -0.007975;
    127     fDistLo[4] =  0;
    128     fDistLo[5] =  0.045374;
    129     fDistLo[6] = -0.001750;
    130     fDistLo[7] =  0;
     76    //  these are the default values
     77
     78    fLengthUp[0] =  0.2;
     79    fLengthUp[1] =  0.0;
     80    fLengthUp[2] =  0.0;
     81    fLengthUp[3] =  0.0;
     82    fLengthUp[4] =  0.0;
     83    fLengthUp[5] =  0.0;
     84    fLengthUp[6] =  0.0;
     85    fLengthUp[7] =  0.0;
     86
     87    fLengthLo[0] =  0.;
     88    fLengthLo[1] =  0.;
     89    fLengthLo[2] =  0.;
     90    fLengthLo[3] =  0.;
     91    fLengthLo[4] =  0.;
     92    fLengthLo[5] =  0.;
     93    fLengthLo[6] =  0.;
     94    fLengthLo[7] =  0.;
     95
     96    fWidthUp[0] =  0.1;
     97    fWidthUp[1] =  0.0;
     98    fWidthUp[2] =  0.0;
     99    fWidthUp[3] =  0.0;
     100    fWidthUp[4] =  0.0;
     101    fWidthUp[5] =  0.0;
     102    fWidthUp[6] =  0.0;
     103    fWidthUp[7] =  0.0;
     104
     105    fWidthLo[0] =  0.;
     106    fWidthLo[1] =  0.;
     107    fWidthLo[2] =  0.;
     108    fWidthLo[3] =  0.;
     109    fWidthLo[4] =  0.;
     110    fWidthLo[5] =  0.;
     111    fWidthLo[6] =  0.;
     112    fWidthLo[7] =  0.;
     113
     114    fDistUp[0] =  1.e10;
     115    fDistUp[1] =  0.0;
     116    fDistUp[2] =  0.0;
     117    fDistUp[3] =  0.0;
     118    fDistUp[4] =  0.0;
     119    fDistUp[5] =  0.0;
     120    fDistUp[6] =  0.0;
     121    fDistUp[7] =  0.0;
     122
     123    fDistLo[0] =  0.0;
     124    fDistLo[1] =  0.0;
     125    fDistLo[2] =  0.0;
     126    fDistLo[3] =  0.0;
     127    fDistLo[4] =  0.0;
     128    fDistLo[5] =  0.0;
     129    fDistLo[6] =  0.0;
     130    fDistLo[7] =  0.0;
    131131   
    132132
     
    202202
    203203    // LengthUp
    204     fStepsizes[0] = 0.03;
    205     fStepsizes[1] = 0.0002;
    206     fStepsizes[2] = 0.02;
    207     fStepsizes[3] = 0.0006;
    208     fStepsizes[4] = 0.0002;
    209     fStepsizes[5] = 0.002;
    210     fStepsizes[6] = 0.0008;
    211     fStepsizes[7] = 0.002;
     204    fStepsizes[0] = 0.02;
     205    fStepsizes[1] = 0.0;
     206    fStepsizes[2] = 0.0;
     207    fStepsizes[3] = 0.0;
     208    fStepsizes[4] = 0.0;
     209    fStepsizes[5] = 0.0;
     210    fStepsizes[6] = 0.0;
     211    fStepsizes[7] = 0.0;
    212212
    213213    // LengthLo
    214     fStepsizes[8]  = 0.02;
    215     fStepsizes[9]  = 0.003;
    216     fStepsizes[10] = 0.05;
    217     fStepsizes[11] = 0.006;
    218     fStepsizes[12] = 0.002;
    219     fStepsizes[13] = 0.3;
    220     fStepsizes[14] = 0.0001;
    221     fStepsizes[15] = 0.0008;
     214    fStepsizes[8]  = 0.0;
     215    fStepsizes[9]  = 0.0;
     216    fStepsizes[10] = 0.0;
     217    fStepsizes[11] = 0.0;
     218    fStepsizes[12] = 0.0;
     219    fStepsizes[13] = 0.0;
     220    fStepsizes[14] = 0.0;
     221    fStepsizes[15] = 0.0;
    222222
    223223    // WidthUp
    224     fStepsizes[16] = 0.02;
    225     fStepsizes[17] = 0.0002;
    226     fStepsizes[18] = 0.006;
    227     fStepsizes[19] = 0.003;
    228     fStepsizes[20] = 0.002;
    229     fStepsizes[21] = 0.006;
    230     fStepsizes[22] = 0.002;
    231     fStepsizes[23] = 0.002;
     224    fStepsizes[16] = 0.01;
     225    fStepsizes[17] = 0.0;
     226    fStepsizes[18] = 0.0;
     227    fStepsizes[19] = 0.0;
     228    fStepsizes[20] = 0.0;
     229    fStepsizes[21] = 0.0;
     230    fStepsizes[22] = 0.0;
     231    fStepsizes[23] = 0.0;
    232232
    233233    // WidthLo
    234     fStepsizes[24] = 0.009;
    235     fStepsizes[25] = 0.0007;
    236     fStepsizes[26] = 0.008;
    237     fStepsizes[27] = 0.0004;
    238     fStepsizes[28] = 0.0005;
    239     fStepsizes[29] = 0.002;
    240     fStepsizes[30] = 0.0007;
    241     fStepsizes[31] = 0.003;
     234    fStepsizes[24] = 0.0;
     235    fStepsizes[25] = 0.0;
     236    fStepsizes[26] = 0.0;
     237    fStepsizes[27] = 0.0;
     238    fStepsizes[28] = 0.0;
     239    fStepsizes[29] = 0.0;
     240    fStepsizes[30] = 0.0;
     241    fStepsizes[31] = 0.0;
    242242
    243243    // DistUp
    244     fStepsizes[32] = 0.2;
     244    fStepsizes[32] = 0.0;
    245245    fStepsizes[33] = 0.0;
    246     fStepsizes[34] = 0.3;
    247     fStepsizes[35] = 0.02;
     246    fStepsizes[34] = 0.0;
     247    fStepsizes[35] = 0.0;
    248248    fStepsizes[36] = 0.0;
    249     fStepsizes[37] = 0.03;
    250     fStepsizes[38] = 0.02;
     249    fStepsizes[37] = 0.0;
     250    fStepsizes[38] = 0.0;
    251251    fStepsizes[39] = 0.0;
    252252
    253253    // DistLo
    254     fStepsizes[40] = 0.06;
     254    fStepsizes[40] = 0.0;
    255255    fStepsizes[41] = 0.0;
    256     fStepsizes[42] = 0.009;
    257     fStepsizes[43] = 0.0008;
     256    fStepsizes[42] = 0.0;
     257    fStepsizes[43] = 0.0;
    258258    fStepsizes[44] = 0.0;
    259     fStepsizes[45] = 0.005;
    260     fStepsizes[46] = 0.0002;
     259    fStepsizes[45] = 0.0;
     260    fStepsizes[46] = 0.0;
    261261    fStepsizes[47] = 0.0;
    262262
  • trunk/MagicSoft/Mars/manalysis/MSupercutsCalc.cc

    r2663 r3140  
    157157    // define cut-function
    158158    //
    159     //    dNOMLOGSIZE = 4.1 (=log(60.0)
     159    //    dNOMLOGSIZE = 5.0 (=log(150.0)
    160160    //    dNOMCOSZA   = 1.0
    161161    //
Note: See TracChangeset for help on using the changeset viewer.