Ignore:
Timestamp:
11/04/03 17:08:27 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mimage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MHillasCalc.cc

    r2455 r2470  
    4848//
    4949//  Input Containers:
    50 //   MCerPhotEvt, MGeomCam[, MHillas]
     50//   MCerPhotEvt
     51//   MGeomCam
     52//   [MHillas]
    5153//
    5254//  Output Containers:
    53 //   [MHillas,] MHillasExt, MNewImagePar
     55//   [MHillas]
     56//   MHillasExt
     57//   MNewImagePar
    5458//
    5559/////////////////////////////////////////////////////////////////////////////
     
    9397{
    9498    // necessary
    95     fCerPhotEvt = (MCerPhotEvt*)pList->FindObject("MCerPhotEvt");
     99    fCerPhotEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber("MCerPhotEvt"));
    96100    if (!fCerPhotEvt)
    97101    {
     
    101105
    102106    // necessary
    103     fGeomCam = (MGeomCam*)pList->FindObject("MGeomCam");
     107    fGeomCam = (MGeomCam*)pList->FindObject(AddSerialNumber("MGeomCam"));
    104108    if (!fGeomCam)
    105109    {
     
    110114    // depend on whether MHillas is an in- or output container
    111115    if (TestFlag(kCalcHillas))
    112         fHillas = (MHillas*)pList->FindCreateObj("MHillas", fHilName);
     116        fHillas = (MHillas*)pList->FindCreateObj("MHillas", AddSerialNumber(fHilName));
    113117    else
    114118    {
    115         fHillas = (MHillas*)pList->FindObject(fHilName, "MHillas");
     119        fHillas = (MHillas*)pList->FindObject(AddSerialNumber(fHilName), "MHillas");
    116120        *fLog << err << fHilName << " [MHillas] not found... aborting." << endl;
    117121    }
     
    122126    if (TestFlag(kCalcHillasExt))
    123127    {
    124         fHillasExt = (MHillasExt*)pList->FindCreateObj("MHillasExt", fHilExtName);
     128        fHillasExt = (MHillasExt*)pList->FindCreateObj("MHillasExt", AddSerialNumber(fHilExtName));
    125129        if (!fHillasExt)
    126130            return kFALSE;
     
    130134    if (TestFlag(kCalcNewImagePar))
    131135    {
    132         fNewImgPar = (MNewImagePar*)pList->FindCreateObj("MNewImagePar", fImgParName);
     136        fNewImgPar = (MNewImagePar*)pList->FindCreateObj("MNewImagePar", AddSerialNumber(fImgParName));
    133137        if (!fNewImgPar)
    134138            return kFALSE;
  • trunk/MagicSoft/Mars/mimage/MHillasSrcCalc.cc

    r2209 r2470  
    2929//
    3030// Task to calculate the source dependant part of the hillas parameters
     31//
     32// FIXME: Merge with MHillasCalc
     33//
     34//  Input Containers:
     35//   MHillas
     36//   [MSrcPosCam]
     37//
     38//  Output Containers:
     39//   MHillasSrc
    3140//
    3241//////////////////////////////////////////////////////////////////////////////
     
    7483Int_t MHillasSrcCalc::PreProcess(MParList *pList)
    7584{
    76     fHillas = (MHillas*)pList->FindObject(fHillasInput, "MHillas");
     85    fHillas = (MHillas*)pList->FindObject(AddSerialNumber(fHillasInput), "MHillas");
    7786    if (!fHillas)
    7887    {
     
    8190    }
    8291
    83     fSrcPos = (MSrcPosCam*)pList->FindObject(fSrcName, "MSrcPosCam");
     92    fSrcPos = (MSrcPosCam*)pList->FindObject(AddSerialNumber(fSrcName), "MSrcPosCam");
    8493    if (!fSrcPos)
    8594    {
    86         *fLog << warn << fSrcName << " [MSrcPosCam] not found... creating default MSrcPosCam." << endl;
    87         fSrcPos = (MSrcPosCam*)pList->FindCreateObj("MSrcPosCam", fSrcName);
     95        *fLog << warn << AddSerialNumber(fSrcName) << " [MSrcPosCam] not found... creating default container." << endl;
     96        fSrcPos = (MSrcPosCam*)pList->FindCreateObj("MSrcPosCam", AddSerialNumber(fSrcName));
    8897        if (!fSrcPos)
    8998            return kFALSE;
    9099    }
    91100
    92     fHillasSrc = (MHillasSrc*)pList->FindCreateObj("MHillasSrc", fHillasName);
     101    fHillasSrc = (MHillasSrc*)pList->FindCreateObj("MHillasSrc", AddSerialNumber(fHillasName));
    93102    if (!fHillasSrc)
    94103        return kFALSE;
  • trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc

    r2465 r2470  
    244244//
    245245//  Input Containers:
    246 //   MGeomCam, MCerPhotEvt, MSigmabar
     246//   MGeomCam
     247//   MCerPhotEvt
     248//   [MSigmabar]
    247249//
    248250//  Output Containers:
     
    646648Int_t MImgCleanStd::PreProcess (MParList *pList)
    647649{
    648     fCam = (MGeomCam*)pList->FindObject("MGeomCam");
     650    fCam = (MGeomCam*)pList->FindObject(AddSerialNumber("MGeomCam"));
    649651    if (!fCam)
    650652    {
     
    653655    }
    654656
    655     fEvt = (MCerPhotEvt*)pList->FindObject("MCerPhotEvt");
     657    fEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber("MCerPhotEvt"));
    656658    if (!fEvt)
    657659    {
     
    662664    if (fCleaningMethod == kDemocratic)
    663665    {
    664         fSgb = (MSigmabar*)pList->FindObject("MSigmabar");
     666        fSgb = (MSigmabar*)pList->FindObject(AddSerialNumber("MSigmabar"));
    665667        if (!fSgb)
    666668        {
     
    671673    else
    672674    {
    673         fPed = (MPedestalCam*)pList->FindObject("MPedestalCam");
     675        fPed = (MPedestalCam*)pList->FindObject(AddSerialNumber("MPedestalCam"));
    674676        if (!fPed)
    675677        {
Note: See TracChangeset for help on using the changeset viewer.