Changeset 888
- Timestamp:
- 07/20/01 12:33:55 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r887 r888 1 1 -*-*- 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 2 12 2001/07/19: Thomas Bretz 3 13 … … 7 17 * mbase/MTaskList.cc: 8 18 - 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 9 25 10 26 * mhist/HistLinkDef.h: -
trunk/MagicSoft/Mars/mhist/MFillH.cc
r887 r888 16 16 ! 17 17 ! 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) 20 19 ! 21 20 ! Copyright: MAGIC Software Development, 2000-2001 … … 26 25 ////////////////////////////////////////////////////////////////////////////// 27 26 // // 28 // MFill HHillas//27 // MFill // 29 28 // // 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) // 32 37 // // 33 38 // Input Containers: // 34 // MHillas//39 // A parameter container // 35 40 // // 36 41 // Output Containers: // 37 // MHHillas//42 // A histogram container // 38 43 // // 39 44 ////////////////////////////////////////////////////////////////////////////// … … 49 54 50 55 // -------------------------------------------------------------------------- 56 // 57 // Initializes name and title of the object. It is called by all 58 // constructors. 59 // 51 60 void MFillH::Init(const char *name, const char *title) 52 61 { … … 55 64 } 56 65 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 // 57 75 MFillH::MFillH(const char *par, const char *hist, const char *name, const char *title) 58 76 { … … 63 81 } 64 82 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 // 65 92 MFillH::MFillH(const MParContainer *par, const char *hist, const char *name, const char *title) 66 93 { … … 71 98 } 72 99 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 // 73 109 MFillH::MFillH(const char *par, MH *hist, const char *name, const char *title) 74 110 { … … 79 115 } 80 116 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 // 81 126 MFillH::MFillH(const MParContainer *par, MH *hist, const char *name, const char *title) 82 127 { … … 88 133 89 134 // -------------------------------------------------------------------------- 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 // 90 142 Bool_t MFillH::PreProcess(MParList *pList) 91 143 { … … 111 163 112 164 // -------------------------------------------------------------------------- 165 // 166 // Fills the data from the parameter conatiner into the histogram container 167 // 113 168 Bool_t MFillH::Process() 114 169 { … … 118 173 } 119 174 175 // -------------------------------------------------------------------------- 176 // 177 // Set the ReadyToSave flag of the histogram container, because now all data 178 // has been filled into the histogram. 179 // 120 180 Bool_t MFillH::PostProcess() 121 181 { -
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 ////////////////////////////////////////////////////////////////////////////// 8 39 9 40 #include "MH.h" … … 11 42 ClassImp(MH); 12 43 44 // -------------------------------------------------------------------------- 45 // 46 // Default Constructor. It sets name and title only. Typically you won't 47 // need to change this. 48 // 13 49 MH::MH(const char *name, const char *title) 14 50 {
Note:
See TracChangeset
for help on using the changeset viewer.