Ignore:
Timestamp:
10/04/03 12:47:13 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/macros
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/MagicHillas.C

    r2359 r2377  
    4141
    4242    //
    43     // The geometry container must be created by yourself to make sure
    44     // that you don't choos a wrong geometry by chance
    45     //
    46     MGeomCamMagic geomcam;
    47     plist.AddToList(&geomcam);
    48 
    49     //
    5043    // Use this if you want to change the binning of one of
    5144    // the histograms. You can use:
     
    8679    MReadMarsFile read("Events", filename);
    8780    read.DisableAutoScheme();
     81
     82    MGeomApply geomapl;
    8883
    8984    MMcPedestalCopy pcopy;
     
    127122
    128123    tlist.AddToList(&read);
     124    tlist.AddToList(&geomapl);
    129125    tlist.AddToList(&pcopy);
    130126    tlist.AddToList(&pnsb);
  • trunk/MagicSoft/Mars/macros/pedestalvstime.C

    r2252 r2377  
    3939    //
    4040
    41     MGeomCamMagic geom;
    42     plist.AddToList(&geom);
    43 
    4441    // First Task: Read file with image parameters
    4542    // (created with the star.C macro)
     
    4845    read.DisableAutoScheme();
    4946
     47    MGeomApply geomapl;
     48
    5049    MCerPhotAnal2 ncalc;
    5150
    5251    tlist.AddToList(&read);
     52    tlist.AddToList(&geomapl);
    5353    tlist.AddToList(&ncalc);
    5454
  • trunk/MagicSoft/Mars/macros/pixfirerate.C

    r2251 r2377  
    6161    plist.AddToList(&tlist);
    6262
    63     // The geometry container must be created by yourself to make sure
    64     // that you don't choose a wrong geometry by mistake
    65     //
    66     MGeomCamMagic geomcam;
    67     plist.AddToList(&geomcam);
    68 
    6963    //
    7064    // Now setup the tasks and tasklist:
     
    7569    read.AddFile(filename);
    7670    tlist.AddToList(&read);
     71
     72    MGeomApply geomapl;
     73    tlist.AddToList(&geomapl);
    7774
    7875    Double_t threshold[] = { 10, 20, 100, 200, -1 };
  • trunk/MagicSoft/Mars/macros/pixsatrate.C

    r2265 r2377  
    6161    plist.AddToList(&tlist);
    6262
    63     // The geometry container must be created by yourself to make sure
    64     // that you don't choose a wrong geometry by mistake
    65     //
    66     MGeomCamMagic geomcam;
    67     plist.AddToList(&geomcam);
    68 
    6963    //
    7064    // Now setup the tasks and tasklist:
     
    7569    read.AddFile(filename);
    7670    tlist.AddToList(&read);
     71
     72    MGeomApply geomapl;
     73    tlist.AddToList(&geomapl);
    7774
    7875    MHTriggerLvl0 trighi(254, "SaturationHi", "Saturation Rate of Hi Gains");
  • trunk/MagicSoft/Mars/macros/plot.C

    r1966 r2377  
    2323!
    2424\* ======================================================================== */
    25 #include <MH.h>
     25
    2626// -------------------------------------------------------------------------
    2727//
  • trunk/MagicSoft/Mars/macros/readCT1.C

    r2220 r2377  
    6262
    6363    MCT1ReadAscii read(fname);
     64    MGeomApply    geomapl;
    6465    MClone        clone("MCerPhotEvt");
    6566    MImgCleanStd  clean;
  • trunk/MagicSoft/Mars/macros/readMagic.C

    r2221 r2377  
    5050    MParList plist;
    5151
    52     MGeomCamMagic geomcam;
    5352    MHillas       hillas;
    5453    MHillasExt    hillasext;
     
    5655    MTaskList     tlist;
    5756
    58     plist.AddToList(&geomcam);
    5957    plist.AddToList(&hillas);
    6058    plist.AddToList(&hillasext);
     
    6563    read.DisableAutoScheme();
    6664
     65    MGeomApply geomapl;
    6766    MPrint print1("MMcEvt");
    6867    MPrint print2("MRawEvtHeader");
     
    8079
    8180    tlist.AddToList(&read);
     81    tlist.AddToList(&geomapl);
    8282    tlist.AddToList(&print1);
    8383    tlist.AddToList(&print2);
  • trunk/MagicSoft/Mars/macros/starplot.C

    r1633 r2377  
    4242
    4343    //
    44     // The geometry container must be created by yourself to make sure
    45     // that you don't choos a wrong geometry by chance
    46     //
    47     MGeomCamMagic geomcam;
    48     plist.AddToList(&geomcam);
    49 
    50     //
    5144    // Use this if you want to change the binning of one of
    5245    // the histograms. You can use:
     
    7972    read.DisableAutoScheme();
    8073
     74    MGeomApply geomapl;
     75
    8176    MFillH hfill1("MHHillas", "MHillas");
    8277    MFillH hfill2("MHHillasExt");
     
    8681
    8782    tlist.AddToList(&read);
     83    tlist.AddToList(&geomapl);
    8884    tlist.AddToList(&hfill1);
    8985    tlist.AddToList(&hfill2);
  • trunk/MagicSoft/Mars/macros/status.C

    r2274 r2377  
    5757    plist.AddToList(&tlist);
    5858
    59     //
    60     // The geometry container must be created by yourself to make sure
    61     // that you don't choose a wrong geometry by mistake
    62     //
    63     MGeomCamMagic geomcam;
    64     plist.AddToList(&geomcam);
    65 
    6659    /*
    6760     MSrcPosCam src;
     
    7972    // ------------- user change -----------------
    8073    read.AddFile(fname);
     74
     75    MGeomApply        geomapl;
    8176
    8277    MMcPedestalCopy   pcopy;
     
    117112
    118113    tlist.AddToList(&read);
     114    tlist.AddToList(&geomapl);
    119115    tlist.AddToList(&pcopy);
    120116    tlist.AddToList(&pnsb);
  • trunk/MagicSoft/Mars/macros/sumevents.C

    r2274 r2377  
    3939    //
    4040
    41     MGeomCamMagic geom;
    42     plist.AddToList(&geom);
    43 
    4441    // First Task: Read file with image parameters
    4542    // (created with the star.C macro)
     
    4845    read.DisableAutoScheme();
    4946
     47    MGeomApply geomapl;
    5048    MCerPhotAnal2 ncalc;
    5149
    5250    tlist.AddToList(&read);
     51    tlist.AddToList(&geomapl);
    5352    tlist.AddToList(&ncalc);
    5453
  • trunk/MagicSoft/Mars/macros/sumeventserr.C

    r2274 r2377  
    3939    //
    4040
    41     MGeomCamMagic geom;
    42     plist.AddToList(&geom);
    43 
    4441    // First Task: Read file with image parameters
    4542    // (created with the star.C macro)
     
    5148    //MCerPhotCalc  ncalc;
    5249    //MCerPhotAnal  ncalc;
     50    MGeomApply geomapl;
    5351    MCerPhotAnal2 ncalc;
    5452
    5553    tlist.AddToList(&read);
     54    tlist.AddToList(&geomapl);
    5655    tlist.AddToList(&ncalc);
    5756
  • trunk/MagicSoft/Mars/macros/sumeventsrms.C

    r2274 r2377  
    3939    //
    4040
    41     MGeomCamMagic geom;
    42     plist.AddToList(&geom);
    43 
    4441    // First Task: Read file with image parameters
    4542    // (created with the star.C macro)
     
    4845    read.DisableAutoScheme();
    4946
     47    MGeomApply geomapl;
    5048    MPedestalSum  ncalc;
    5149    //MCerPhotCalc  ncalc;
     
    5452
    5553    tlist.AddToList(&read);
     54    tlist.AddToList(&geomapl);
    5655    tlist.AddToList(&ncalc);
    5756
  • trunk/MagicSoft/Mars/macros/sumpedestalrms.C

    r2274 r2377  
    3939    //
    4040
    41     MGeomCamMagic geom;
    42     plist.AddToList(&geom);
    43 
    4441    // First Task: Read file with image parameters
    4542    // (created with the star.C macro)
     
    4845    read.DisableAutoScheme();
    4946
     47    MGeomApply geomapl;
    5048    MCerPhotAnal2 ncalc;
    5149
    5250    tlist.AddToList(&read);
     51    tlist.AddToList(&geomapl);
    5352    tlist.AddToList(&ncalc);
    5453
  • trunk/MagicSoft/Mars/macros/sumpedestals.C

    r2274 r2377  
    3939    //
    4040
    41     MGeomCamMagic geom;
    42     plist.AddToList(&geom);
    43 
    4441    // First Task: Read file with image parameters
    4542    // (created with the star.C macro)
     
    4845    read.DisableAutoScheme();
    4946
     47    MGeomApply geomapl;
    5048    MCerPhotAnal2 ncalc;
    5149
    5250    tlist.AddToList(&read);
     51    tlist.AddToList(&geomapl);
    5352    tlist.AddToList(&ncalc);
    5453
  • trunk/MagicSoft/Mars/macros/threshold.C

    r1666 r2377  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2001
     20!   Copyright: MAGIC Software Development, 2000-2003
    2121!
    2222!
  • trunk/MagicSoft/Mars/macros/trigrate.C

    r1800 r2377  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    2020!   Copyright: MAGIC Software Development, 2000-2001
    2121!
    22 !   Modified 4/7/2002, Abelardo Moralejo:
    23 !   Added one optional input parameter: a camera .root file containing
    24 !   pure NSB events. One such file is generated running the camera over an
    25 !   "empty" reflector file, with the NSB option on, and asking the camera
    26 !   program (see camera program manual) to do the simulation even if no
    27 !   photoelectron from the shower arrives at the camera. One also needs to
    28 !   write to the output file all the events, both triggered and untriggered
    29 !   (see again camera manual). These nsb camera files must contain the same
    30 !   trigger conditions as the proton file.
    31 !
    32 !   If no nsb file is supplied, the macro will assume no triggers from
    33 !   pure NSB fluctuations.
    34 !
    3522\* ======================================================================== */
    3623
    37 
     24/*
     25 !   Modified 4/7/2002, Abelardo Moralejo:
     26 !   Added one optional input parameter: a camera .root file containing
     27 !   pure NSB events. One such file is generated running the camera over an
     28 !   "empty" reflector file, with the NSB option on, and asking the camera
     29 !   program (see camera program manual) to do the simulation even if no
     30 !   photoelectron from the shower arrives at the camera. One also needs to
     31 !   write to the output file all the events, both triggered and untriggered
     32 !   (see again camera manual). These nsb camera files must contain the same
     33 !   trigger conditions as the proton file.
     34 !
     35 !   If no nsb file is supplied, the macro will assume no triggers from
     36 !   pure NSB fluctuations.
     37 */
    3838
    3939Float_t GetNSBEvents(TString name, Float_t *BgR, int dim)
     
    138138    if (dim < 0)
    139139      ((MHMcRate*)(hists[0]))->SetTriggerCondNum((Short_t)(-dim));
    140     else if (dim > 0)
     140    if (dim > 0)
    141141      for (Short_t i = from ; i <= to; i++)
    142142        ((MHMcRate*)(hists[i-1]))->SetTriggerCondNum(i);
Note: See TracChangeset for help on using the changeset viewer.