Changeset 19723 for trunk/Mars/mjobs


Ignore:
Timestamp:
10/05/19 16:56:11 (5 years ago)
Author:
tbretz
Message:
Do not write MMc* when writing MC calibration files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mjobs/MJSimulation.cc

    r19706 r19723  
    237237    write.AddContainer("MCorsikaEvtHeader",   "Events", kFALSE);
    238238    write.AddContainer("MRawEvtHeader",       "Events");
    239     write.AddContainer("MMcEvt",              "Events", kFALSE);
    240     write.AddContainer("MMcEvtBasic",         "Events", kFALSE);
    241239    write.AddContainer("IncidentAngle",       "Events", kFALSE);
    242240    write.AddContainer("MPointingPos",        "Events", kFALSE);
    243241    write.AddContainer("MSimSourcePos",       "Events", kFALSE);
    244242    write.AddContainer("MSrcPosCam",          "Events", kFALSE);
     243
     244    if (fOperationMode!=kModeData)
     245        return;
     246
     247    write.AddContainer("MMcEvt",              "Events", kFALSE);
     248    write.AddContainer("MMcEvtBasic",         "Events", kFALSE);
    245249}
    246250
     
    909913    write3b.AddContainer("MMcEvtBasic", "OriginalMC");
    910914    write4b.AddContainer("MMcEvtBasic", "OriginalMC");
    911 
    912915
    913916    // --------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.