Changeset 888


Ignore:
Timestamp:
07/20/01 12:33:55 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r887 r888  
    11                                                                  -*-*- END -*-*-
     2 2001/07/20: Thomas Bretz
     3 
     4   * mhist/MH.cc:
     5     - added comments
     6
     7   * mhist/MFillH.cc:
     8     - added comments
     9
     10
     11
    212 2001/07/19: Thomas Bretz
    313 
     
    717   * mbase/MTaskList.cc:
    818     - changed the wrong 'break' for kCONTINUE into 'return kTRUE'
     19     
     20   * mhist/MH.[cc,h]
     21     - added
     22
     23   * mhist/MFillH.[cc,h]
     24     - added
    925     
    1026   * mhist/HistLinkDef.h:
  • trunk/MagicSoft/Mars/mhist/MFillH.cc

    r887 r888  
    1616!
    1717!
    18 !   Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)
    19 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz  07/2001 (tbretz@uni-sw.gwdg.de)
    2019!
    2120!   Copyright: MAGIC Software Development, 2000-2001
     
    2625//////////////////////////////////////////////////////////////////////////////
    2726//                                                                          //
    28 //  MFillHHillas                                                            //
     27//  MFill                                                                   //
    2928//                                                                          //
    30 //  This task fills the hillas parameter from MHillas into                  //
    31 //  histograms (MHHillas)                                                   //
     29//  This is a common interface (task) to fill mars histograms. Every mars   //
     30//  histogram which is derived from MH can be filled with this task.        //
     31//                                                                          //
     32//  You must specifiy the parameter container with which data the histogram //
     33//  container should be filled, and the histogram container which has       //
     34//  to be filled. This can be done by either specifing the name of the      //
     35//  objects in the parameter list or by specifiing a pointer to the object. //
     36//  (s. Constructor)                                                        //
    3237//                                                                          //
    3338//  Input Containers:                                                       //
    34 //   MHillas                                                                //
     39//   A parameter container                                                  //
    3540//                                                                          //
    3641//  Output Containers:                                                      //
    37 //   MHHillas                                                               //
     42//   A histogram container                                                  //
    3843//                                                                          //
    3944//////////////////////////////////////////////////////////////////////////////
     
    4954
    5055// --------------------------------------------------------------------------
     56//
     57// Initializes name and title of the object. It is called by all
     58// constructors.
     59//
    5160void MFillH::Init(const char *name, const char *title)
    5261{
     
    5564}
    5665
     66// --------------------------------------------------------------------------
     67//
     68// Constructor.
     69//
     70// - par is the name of the parameter container which should be filled into
     71//   the histogram
     72// - hist is the name of the histogram container (which must have been
     73//   derived from MH)
     74//
    5775MFillH::MFillH(const char *par, const char *hist, const char *name, const char *title)
    5876{
     
    6381}
    6482
     83// --------------------------------------------------------------------------
     84//
     85// Constructor.
     86//
     87// - par is a pointer to the instance of your parameter container from which
     88//   the data should be used to fill the histogram.
     89// - hist is the name of the histogram container (which must have been
     90//   derived from MH)
     91//
    6592MFillH::MFillH(const MParContainer *par, const char *hist, const char *name, const char *title)
    6693{
     
    7198}
    7299
     100// --------------------------------------------------------------------------
     101//
     102// Constructor.
     103//
     104// - par is a pointer to the instance of your parameter container from which
     105//   the data should be used to fill the histogram.
     106// - hist is a pointer to the instance of your histogram container (which must
     107//   have been derived from MH) into which the data should flow
     108//
    73109MFillH::MFillH(const char *par, MH *hist, const char *name, const char *title)
    74110{
     
    79115}
    80116
     117// --------------------------------------------------------------------------
     118//
     119// Constructor.
     120//
     121// - par is a pointer to the instance of your parameter container from which
     122//   the data should be used to fill the histogram.
     123// - hist is the name of the histogram container (which must have been
     124//   derived from MH)
     125//
    81126MFillH::MFillH(const MParContainer *par, MH *hist, const char *name, const char *title)
    82127{
     
    88133
    89134// --------------------------------------------------------------------------
     135//
     136// Checks the parameter list for the existance of the parameter container. If
     137// the name of it was given in the constructor. It checks also for the
     138// existance of the histogram container in the parameter list if a name was
     139// given. If it is not available it tried to create a histogram container
     140// with the same type as the given object name.
     141//
    90142Bool_t MFillH::PreProcess(MParList *pList)
    91143{
     
    111163
    112164// --------------------------------------------------------------------------
     165//
     166// Fills the data from the parameter conatiner into the histogram container
     167//
    113168Bool_t MFillH::Process()
    114169{
     
    118173}
    119174
     175// --------------------------------------------------------------------------
     176//
     177// Set the ReadyToSave flag of the histogram container, because now all data
     178// has been filled into the histogram.
     179//
    120180Bool_t MFillH::PostProcess()
    121181{
  • trunk/MagicSoft/Mars/mhist/MH.cc

    r887 r888  
    1 ///////////////////////////////////////////////////////////////////////
    2 //
    3 // MHHillas
    4 //
    5 // This class contains histograms for every Hillas parameter
    6 //
    7 ///////////////////////////////////////////////////////////////////////
     1/* ======================================================================== *\
     2!
     3! *
     4! * This file is part of MARS, the MAGIC Analysis and Reconstruction
     5! * Software. It is distributed to you in the hope that it can be a useful
     6! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
     7! * It is distributed WITHOUT ANY WARRANTY.
     8! *
     9! * Permission to use, copy, modify and distribute this software and its
     10! * documentation for any purpose is hereby granted without fee,
     11! * provided that the above copyright notice appear in all copies and
     12! * that both that copyright notice and this permission notice appear
     13! * in supporting documentation. It is provided "as is" without express
     14! * or implied warranty.
     15! *
     16!
     17!
     18!   Author(s): Thomas Bretz  07/2001 (tbretz@uni-sw.gwdg.de)
     19!
     20!   Copyright: MAGIC Software Development, 2000-2001
     21!
     22!
     23\* ======================================================================== */
     24
     25//////////////////////////////////////////////////////////////////////////////
     26//                                                                          //
     27//  MH                                                                      //
     28//                                                                          //
     29//  This is a base tasks for mars histograms. It defines a common interface //
     30//  for filling the histograms with data (MH::Fill) which is used by a      //
     31//  common 'filler' (s. MFillH)                                             //
     32//                                                                          //
     33//  If you want to create your own histogram class the new class must be    //
     34//  derived from MH (instead of the base MParContainer) and you must        //
     35//  the fill function of MH. This is the function which is called to fill   //
     36//  the histogram(s) by the data of a corresponding parameter container.    //
     37//                                                                          //
     38//////////////////////////////////////////////////////////////////////////////
    839
    940#include "MH.h"
     
    1142ClassImp(MH);
    1243
     44// --------------------------------------------------------------------------
     45//
     46// Default Constructor. It sets name and title only. Typically you won't
     47// need to change this.
     48//
    1349MH::MH(const char *name, const char *title)
    1450{
Note: See TracChangeset for help on using the changeset viewer.