Ignore:
Timestamp:
02/03/15 08:27:19 (10 years ago)
Author:
ghughes
Message:
Added code to reconstruct the energy using MC lookup tables
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Mars_McMismatchStudy/fact/analysis/mc/ganymed.C

    r17962 r18100  
    2323    write->AddContainer("MTime",          "Events", kFALSE);
    2424    write->AddContainer("MMcEvt",         "Events", kFALSE);
    25     write->AddContainer("MEnergyEst",     "Events", kFALSE);
     25    //write->AddContainer("MEnergyEst",     "Events", kFALSE);
     26    //write->AddContainer("MEnergyTable",   "Events", kFALSE);
    2627    write->AddContainer("DataType",       "Events");
    2728    write->AddContainer("Weight",         "Events");
     
    170171    energyest.SetRule("MHillas.fSize^0.815*pow(10, 0.0199*(MHillasSrc.fDist*1.17e-2 - (-6.95))^2*(MHillasSrc.fDist*1.17e-2>(-6.95)) + 0.5997 *(MHillasSrc.fDist*1.17e-2 - 0.7568)^2 * (MHillasSrc.fDist*1.17e-2>0.7568) )");
    171172    //    energyest.SetRule("1737 * (MHillas.fSize / 300.)^0.810");
     173
     174    //MEnergyTable energytable;
     175    // Tables available from GH
     176    //energytable.SetTableFile("Table_standard_test.root");
    172177
    173178    // Cuts before writing
     
    283288    tlist2.AddToList(&cuts);
    284289    tlist2.AddToList(&energyest);
     290    //tlist2.AddToList(&energytable);
    285291    tlist2.AddToList(write0);
    286292    tlist2.AddToList(&cont0);  // Post/Pre shown cuts
Note: See TracChangeset for help on using the changeset viewer.