Ignore:
Timestamp:
09/09/04 17:51:57 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r4875 r4906  
    5959
    6060#include "MReadReports.h"
     61#include "MReadMarsFile.h"
    6162#include "MGeomApply.h"
    6263#include "MPointingPosCalc.h"
     
    180181}
    181182
    182 Bool_t MJCalibrateSignal::ProcessFile(MPedestalCam &pedcam)
     183Bool_t MJCalibrateSignal::ProcessFile(MPedestalCam &pedcam, Bool_t ismc)
    183184{
    184185    if (!fSequence.IsValid())
     
    270271    plist.AddToList(&tlist);
    271272
    272     //MReadMarsFile read("Events");
    273     //read.DisableAutoScheme();
    274     MReadReports read;
    275     read.AddTree("Events", "MTime.", kTRUE);
    276     read.AddTree("Trigger");
    277     read.AddTree("Camera");
    278     read.AddTree("Drive");
    279     read.AddTree("CC");
    280     read.AddTree("Currents");
    281     read.AddFiles(iter);
    282     //read.AddFiles(fnamein);
     273    MReadReports readreal;
     274    readreal.AddTree("Events", "MTime.", kTRUE);
     275    readreal.AddTree("Trigger");
     276    readreal.AddTree("Camera");
     277    readreal.AddTree("Drive");
     278    readreal.AddTree("CC");
     279    readreal.AddTree("Currents");
     280    readreal.AddFiles(iter);
     281
     282    MReadMarsFile readmc("Events");
     283    readmc.DisableAutoScheme();
     284    readmc.AddFiles(iter);
    283285
    284286    MGeomApply             apply; // Only necessary to create geometry
     
    332334    write.AddContainer("MCerPhotEvt",         "Events");
    333335    write.AddContainer("MPedPhotCam",         "Events");
    334     write.AddContainer("MTime",               "Events");
     336    write.AddContainer("MTime",               "Events", kFALSE);
    335337    write.AddContainer("MRawEvtHeader",       "Events");
    336338    write.AddContainer("MArrivalTime",        "Events");
     
    383385
    384386    // Now setup main tasklist
    385     tlist.AddToList(&read);
     387    tlist.AddToList(ismc ? (MTask*)&readmc : (MTask*)&readreal);
    386388    tlist.AddToList(&tlist2, "Events");
    387389    tlist.AddToList(&pcalc,  "Drive");
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h

    r4870 r4906  
    3131    MJCalibrateSignal(const char *name=NULL, const char *title=NULL);
    3232
    33     Bool_t ProcessFile(MPedestalCam &cam);
     33    Bool_t ProcessFile(MPedestalCam &cam, Bool_t ismc=kFALSE);
    3434
    3535    ClassDef(MJCalibrateSignal, 0) // Tool to create a pedestal file (MPedestalCam)
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r4894 r4906  
    4949
    5050#include "MReadReports.h"
     51#include "MReadMarsFile.h"
    5152#include "MGeomApply.h"
    5253#include "MEventRateCalc.h"
     
    100101}
    101102
    102 Bool_t MJStar::ProcessFile()
     103Bool_t MJStar::ProcessFile(Bool_t ismc)
    103104{
    104105    if (!fSequence.IsValid())
     
    145146    plist.AddToList(&tlist);
    146147
    147     MReadReports read;
    148     read.AddTree("Events", "MTime.", kTRUE);
    149     read.AddTree("Drive");
     148    MReadReports readreal;
     149    readreal.AddTree("Events", "MTime.", kTRUE);
     150    readreal.AddTree("Drive");
    150151    //read.AddTree("Trigger");
    151152    //read.AddTree("Camera");
    152153    //read.AddTree("CC");
    153154    //read.AddTree("Currents");
    154     read.AddFiles(iter);
     155    readreal.AddFiles(iter);
     156
     157    MReadMarsFile readmc("Events");
     158    readmc.DisableAutoScheme();
     159    readmc.AddFiles(iter);
    155160
    156161    // ------------------ Setup general tasks ----------------
     
    215220    write.AddContainer("MNewImagePar2", "Events");
    216221    write.AddContainer("MImageParTime", "Events");
    217     write.AddContainer("MTime",         "Events");
    218222    write.AddContainer("MRawEvtHeader", "Events");
    219     // Monte Carlo
    220     write.AddContainer("MMcEvt",              "Events", kFALSE);
    221     write.AddContainer("MMcTrig",             "Events", kFALSE);
    222     // Run Header
    223     write.AddContainer("MRawRunHeader",       "RunHeaders");
    224     write.AddContainer("MBadPixelsCam",       "RunHeaders");
    225     write.AddContainer("MGeomCam",            "RunHeaders");
    226     //write.AddContainer("MObservatory", "RunHeaders");
    227     // Monte Carlo Headers
    228     write.AddContainer("MMcTrigHeader",       "RunHeaders", kFALSE);
    229     write.AddContainer("MMcConfigRunHeader",  "RunHeaders", kFALSE);
    230     write.AddContainer("MMcCorsikaRunHeader", "RunHeaders", kFALSE);
    231     // Drive
    232     //write.AddContainer("MSrcPosCam",   "Drive");
    233     write.AddContainer("MPointingPos", "Drive");
    234     write.AddContainer("MReportDrive", "Drive");
    235     write.AddContainer("MTimeDrive",   "Drive");
    236     // Effective On Time
    237     write.AddContainer("MEffectiveOnTime",     "EffectiveOnTime");
    238     write.AddContainer("MTimeEffectiveOnTime", "EffectiveOnTime");
     223    if (ismc)
     224    {
     225        write.AddContainer("MPointingPos", "Events");
     226        // Monte Carlo
     227        write.AddContainer("MMcEvt",              "Events");
     228        write.AddContainer("MMcTrig",             "Events");
     229        // Monte Carlo Headers
     230        write.AddContainer("MMcTrigHeader",       "RunHeaders");
     231        write.AddContainer("MMcConfigRunHeader",  "RunHeaders");
     232        write.AddContainer("MMcCorsikaRunHeader", "RunHeaders");
     233    }
     234    else
     235    {
     236        write.AddContainer("MTime",         "Events");
     237        // Run Header
     238        write.AddContainer("MRawRunHeader",       "RunHeaders");
     239        write.AddContainer("MBadPixelsCam",       "RunHeaders");
     240        write.AddContainer("MGeomCam",            "RunHeaders");
     241        //write.AddContainer("MObservatory", "RunHeaders");
     242        // Drive
     243        //write.AddContainer("MSrcPosCam",   "Drive");
     244        write.AddContainer("MPointingPos", "Drive");
     245        write.AddContainer("MReportDrive", "Drive");
     246        write.AddContainer("MTimeDrive",   "Drive");
     247        // Effective On Time
     248        write.AddContainer("MEffectiveOnTime",     "EffectiveOnTime");
     249        write.AddContainer("MTimeEffectiveOnTime", "EffectiveOnTime");
     250    }
    239251
    240252    MTaskList tlist2;
    241253    tlist2.AddToList(&apply);
    242     tlist2.AddToList(&rate);
    243     //tlist2.AddToList(&rate10000);
    244     tlist2.AddToList(&fill8);
    245     tlist2.AddToList(&fill9);
    246     tlist2.AddToList(&filla);
     254    if (!ismc)
     255    {
     256        tlist2.AddToList(&rate);
     257        //tlist2.AddToList(&rate10000);
     258        tlist2.AddToList(&fill8);
     259        tlist2.AddToList(&fill9);
     260        tlist2.AddToList(&filla);
     261    }
    247262    //tlist2.AddToList(&fillb);
    248263    tlist2.AddToList(&clean);
     
    265280    //tlist3.AddToList(&srcpos);
    266281
    267     tlist.AddToList(&read);
     282    tlist.AddToList(ismc ? (MTask*)&readmc : (MTask*)&readreal);
    268283    tlist.AddToList(&tlist3, "Drive");
    269284    tlist.AddToList(&tlist2, "Events");
  • trunk/MagicSoft/Mars/mjobs/MJStar.h

    r4756 r4906  
    1414    MJStar(const char *name=NULL, const char *title=NULL);
    1515
    16     Bool_t ProcessFile();
     16    Bool_t ProcessFile(Bool_t ismc=kFALSE);
    1717
    1818    ClassDef(MJStar, 0) // Tool to create a pedestal file (MPedestalCam)
Note: See TracChangeset for help on using the changeset viewer.