Changeset 18576 for trunk/Mars


Ignore:
Timestamp:
09/06/16 10:14:33 (8 years ago)
Author:
tbretz
Message:
The additional acceptance should be excuted no matter of the setup of corsika; files can start with cer or CER; the source position in the camera is now calculated for convenience and stored in the output
File:
1 edited

Legend:

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

    r18450 r18576  
    7676#include "MGeomApply.h"
    7777#include "MParameterCalc.h"
     78#include "MSrcPosCalc.h"
    7879#include "MHillasCalc.h"
    7980#include "MImgCleanStd.h"
     
    114115#include "MParSpline.h"
    115116#include "MGeomCam.h"
    116 #include "MMatrix.h"
    117 
    118117#include "MPedestalCam.h"
    119118#include "MPedestalPix.h"
     
    243242    write.AddContainer("MPointingPos",        "Events", kFALSE);
    244243    write.AddContainer("MSimSourcePos",       "Events", kFALSE);
     244    write.AddContainer("MSrcPosCam",          "Events", kFALSE);
    245245}
    246246
     
    582582    cones2.SetParName("ConesTransmission");
    583583    additionalPhotonAcceptance.SetParName("AdditionalPhotonAcceptance");
     584    additionalPhotonAcceptance.SetForce(kTRUE);
    584585 
    585586    // --------------------------------------------------------------------------------
     
    587588    // --------------------------------------------------------------------------------
    588589    MSimPointingPos pointing;
     590    MSrcPosCalc     srcposcam;
    589591
    590592    MSimReflector reflect;
     
    810812    }
    811813    const char *fmt = fFileOut.IsNull() ?
    812         Form("s/cer([0-9]+)([0-9][0-9][0-9])/%s\\/%08d.$2%%s_MonteCarlo$1.root/", Esc(fPathOut).Data(), header.GetRunNumber()) :
     814        Form("s/[cC][eE][rR]([0-9]+)([0-9][0-9][0-9])/%s\\/%08d.$2%%s_MonteCarlo$1.root/", Esc(fPathOut).Data(), header.GetRunNumber()) :
    813815        Form("%s/%s%%s.root", Esc(fPathOut).Data(), Esc(fFileOut).Data());
    814816
     
    905907        tasks.AddToList(&precut);  // Precut
    906908        tasks.AddToList(&pointing);  // Simulating pointing
     909        tasks.AddToList(&srcposcam);  // calculate origin in camera
    907910        tasks.AddToList(&simmmcs);  // Simulating MMCS
    908911        if (!fPathOut.IsNull() && !HasNullOut())  // Write Tasks for corsika infos
Note: See TracChangeset for help on using the changeset viewer.