Changeset 1862 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
03/24/03 11:49:25 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1861 r1862  
    55      - now energy estimation (for CT1) is done using the same model
    66        as in D.Krannich's thesis.
     7
     8
     9
     10 2003/03/24: Thomas Bretz
     11
     12    * manalysis/MHillasSrcCalc.[h,cc]:
     13      - removed last argument in constructor, replaced by SetInput
     14
     15    * mfilter/MFEventSelector.[h,cc]:
     16      - removed unnecessary last argument
     17
     18
     19
    720
    821 2003/03/21: Thomas Hengstebeck
  • trunk/MagicSoft/Mars/manalysis/MHillasSrcCalc.cc

    r1762 r1862  
    7070//
    7171MHillasSrcCalc::MHillasSrcCalc(const char *src, const char *hil,
    72                                const char *name, const char *title,
    73                                const char *hilinput)
     72                               const char *name, const char *title)
    7473    : fHillas(NULL), fSrcPos(NULL), fHillasSrc(NULL)
    7574{
     
    7776    fTitle = title ? title : gsDefTitle.Data();
    7877
    79     fSrcName    = src;
    80     fHillasName = hil;
    81     fHillasInput = hilinput;
     78    fSrcName     = src;
     79    fHillasName  = hil;
     80    fHillasInput = "MHillas";
    8281}
    8382
     
    8685Bool_t MHillasSrcCalc::PreProcess(MParList *pList)
    8786{
    88     fHillas = (MHillas*)pList->FindObject(fHillasInput);
     87    fHillas = (MHillas*)pList->FindObject(fHillasInput, "MHillas");
    8988    if (!fHillas)
    9089    {
  • trunk/MagicSoft/Mars/manalysis/MHillasSrcCalc.h

    r1762 r1862  
    3434
    3535    MHillasSrcCalc(const char *src="MSrcPosCam", const char *hil="MHillasSrc",
    36                    const char *name=NULL, const char *title=NULL,
    37                    const char *hilinput="MHillas");
     36                   const char *name=NULL, const char *title=NULL);
     37
     38    void SetInput(TSTring hilname) { fHillasName = hilname; }
    3839
    3940    ClassDef(MHillasSrcCalc, 1) // task to calculate the source position depandant hillas parameters
  • trunk/MagicSoft/Mars/mfilter/MFEventSelector.cc

    r1809 r1862  
    9494// the class description above.
    9595//
    96 MFEventSelector::MFEventSelector(const char *name, const char *title,
    97                                  const char *read)
     96MFEventSelector::MFEventSelector(const char *name, const char *title)
    9897: fNumTotalEvts(-1), fNumSelectEvts(-1), fSelRatio(-1), fNumSelectedEvts(0)
    9998{
    10099    fName  = name  ? name  : gsDefName.Data();
    101100    fTitle = title ? title : gsDefTitle.Data();
    102 
    103     fRead = read;
    104101}
    105102
     
    132129            return kFALSE;
    133130        }
    134         MRead *read = (MRead*)tlist->FindObject(fRead);
     131
     132        MRead *read = (MRead*)tlist->FindObject("MRead");
    135133        if (!read)
    136134        {
  • trunk/MagicSoft/Mars/mfilter/MFEventSelector.h

    r1809 r1862  
    2424
    2525    Bool_t  fResult;
    26     TString fRead;
    2726
    2827    void StreamPrimitive(ofstream &out) const;
     
    4140public:
    4241    // MFEventSelector();
    43     MFEventSelector(const char *name=NULL, const char *title=NULL,
    44                     const char *read="MRead");
     42    MFEventSelector(const char *name=NULL, const char *title=NULL);
    4543    ~MFEventSelector();
    4644
Note: See TracChangeset for help on using the changeset viewer.