Ignore:
Timestamp:
06/02/05 15:24:33 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhflux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MHThetaSq.cc

    r7091 r7125  
    158158    return static_cast<const MParameterD*>(fParameter)->GetVal();
    159159}
     160
     161// --------------------------------------------------------------------------
     162//
     163// You can use this function if you want to use a MHMatrix instead of
     164// MMcEvt. This function adds all necessary columns to the
     165// given matrix. Afterward you should fill the matrix with the corresponding
     166// data (eg from a file by using MHMatrix::Fill). If you now loop
     167// through the matrix (eg using MMatrixLoop) MHHadronness::Fill
     168// will take the values from the matrix instead of the containers.
     169//
     170// It takes fSkipHist* into account!
     171//
     172void MHThetaSq::InitMapping(MHMatrix *mat, Int_t type)
     173{
     174    if (fMatrix)
     175        return;
     176
     177    fMatrix = mat;
     178
     179    fMap[0] = -1;
     180    fMap[1] = -1;
     181    fMap[2] = -1;
     182    fMap[3] = -1;
     183    fMap[4] = -1;
     184
     185    if (!fSkipHistEnergy)
     186        if (type==0)
     187        {
     188            fMap[1] = fMatrix->AddColumn("MEnergyEst.fVal");
     189            fMap[2] = -1;
     190        }
     191        else
     192        {
     193            fMap[1] = -1;
     194            fMap[2] = fMatrix->AddColumn("MHillas.fSize");
     195        }
     196
     197    if (!fSkipHistTheta)
     198        fMap[3] = fMatrix->AddColumn("MPointingPos.fZd");
     199
     200   // if (!fSkipHistTime)
     201   //     fMap[4] = fMatrix->AddColumn("MTime.GetAxisTime");
     202}
  • trunk/MagicSoft/Mars/mhflux/MHThetaSq.h

    r7064 r7125  
    2121
    2222    Bool_t SetupFill(const MParList *pl);
     23    void InitMapping(MHMatrix *mat, Int_t type=0);
    2324
    2425public:
Note: See TracChangeset for help on using the changeset viewer.