Ignore:
Timestamp:
07/13/01 18:13:06 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmontecarlo
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc

    r853 r867  
    3636#include "MHMcCollectionArea.h"
    3737
    38 ClassImp(MMcCollectionAreaCalc)
     38ClassImp(MMcCollectionAreaCalc);
    3939
    40 MMcCollectionAreaCalc::MMcCollectionAreaCalc (const char *name, const char *title)
     40MMcCollectionAreaCalc::MMcCollectionAreaCalc(const char *input,
     41                                             const char *name, const char *title)
    4142{
    4243    *fName  = name  ? name  : "MMcCollectionAreaCalc";
    43     *fTitle = title ? title : "Task to calc the collection area ";
     44    *fTitle = title ? title : "Task to calculate the collection area";
     45
     46    fObjName = input ? input : "MMcTrig";
    4447}
    4548
     
    5558    }
    5659
    57     fMcTrig = (MMcTrig*)pList->FindObject("MMcTrig");
     60    fMcTrig = (MMcTrig*)pList->FindObject(fObjName);
    5861    if (!fMcTrig)
    5962    {
    60         *fLog << dbginf << "MMcTrig not found... exit." << endl;
     63        *fLog << dbginf << fObjName << " not found... exit." << endl;
    6164        return kFALSE;
    6265    }
     
    8487}
    8588
    86 Bool_t MMcCollectionAreaCalc::PostProcess ()
     89Bool_t MMcCollectionAreaCalc::PostProcess()
    8790{
    8891    //
  • trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.h

    r860 r867  
    1919    MHMcCollectionArea *fCollArea;
    2020
     21    TString fObjName;
     22
    2123public:
    22     MMcCollectionAreaCalc(const char *name=NULL, const char *title=NULL);
     24    MMcCollectionAreaCalc(const char *input=NULL,
     25                          const char *name=NULL, const char *title=NULL);
    2326
    2427    Bool_t PreProcess(MParList *pList);
    25     Bool_t Process() ;
    26     Bool_t PostProcess() ;
     28    Bool_t Process();
     29    Bool_t PostProcess();
    2730
    2831    ClassDef(MMcCollectionAreaCalc, 0) // Task to calculate the collection area histogram
  • trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc

    r866 r867  
    110110    {
    111111        if (fDimension>1)
    112             sprintf(auxname+7, ";%i.", i+1);
     112            sprintf(auxname+7, ";%i", i+1);
    113113
    114114        fMcTrig[i] = (MMcTrig*)pList->FindObject(auxname);
  • trunk/MagicSoft/Mars/mmontecarlo/Makefile

    r851 r867  
    3333SRCS    = $(SRCFILES)
    3434HEADERS = $(SRCFILES:.cc=.h)
    35 OBJS    = $(SRCFILES:.cc=.o) 
     35OBJS    = $(SRCFILES:.cc=.o)
    3636
    3737############################################################
Note: See TracChangeset for help on using the changeset viewer.