Changeset 1989 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 04/23/03 16:28:05 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.cc
r1966 r1989 63 63 // -------------------------------------------------------------------------- 64 64 // 65 // Setup four histograms for Width, Length 65 // Initialize the name and title of the task. 66 // Resets the sum histogram 66 67 // 67 68 MHCerPhotEvt::MHCerPhotEvt(const char *name, const char *title) … … 77 78 } 78 79 80 // -------------------------------------------------------------------------- 81 // 82 // Delete the corresponding camera display if available 83 // 79 84 MHCerPhotEvt::~MHCerPhotEvt() 80 85 { … … 85 90 // -------------------------------------------------------------------------- 86 91 // 87 // Setup the Binning for the histograms automatically if the correct 88 // instances of MBinning (with the names 'BinningWidth' and 'BinningLength') 89 // are found in the parameter list 90 // Use this function if you want to set the conversion factor which 91 // is used to convert the mm-scale in the camera plain into the deg-scale 92 // used for histogram presentations. The conversion factor is part of 93 // the camera geometry. Please create a corresponding MGeomCam container. 92 // Get the event (MCerPhotEvt) the histogram might be filled with. If 93 // it is not given, it is assumed, that it is filled with the argument 94 // of the Fill function. 95 // Looks for the camera geometry MGeomCam and resets the sum histogram. 94 96 // 95 97 Bool_t MHCerPhotEvt::SetupFill(const MParList *plist) … … 110 112 // -------------------------------------------------------------------------- 111 113 // 112 // Fill the histograms with data from a MHillas-Container. 113 // Be careful: Only call this with an object of type MHillas 114 // 115 Bool_t MHCerPhotEvt::Fill(const MParContainer *par) 114 // Fill the histograms with data from a MCerPhotEvt-Container. 115 // 116 Bool_t MHCerPhotEvt::Fill(const MParContainer *par, Double_t w) 116 117 { 117 118 const MCerPhotEvt *evt = par ? (MCerPhotEvt*)par : fEvt; … … 143 144 } 144 145 146 // -------------------------------------------------------------------------- 147 // 148 // Scale the sum container with the number of entries 149 // 145 150 Bool_t MHCerPhotEvt::Finalize() 146 151 { … … 149 154 } 150 155 156 // -------------------------------------------------------------------------- 157 // 158 // Draw clone 159 // 151 160 TObject *MHCerPhotEvt::DrawClone(Option_t *opt) const 152 161 { … … 154 163 } 155 164 165 // -------------------------------------------------------------------------- 166 // 167 // Draw the present 'fill status' 168 // 156 169 void MHCerPhotEvt::Draw(Option_t *) 157 170 { … … 168 181 } 169 182 183 // -------------------------------------------------------------------------- 184 // 185 // If a camera display is not yet assigned, assign a new one. 186 // 170 187 void MHCerPhotEvt::Paint(Option_t *option="") 171 188 { -
trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.h
r1965 r1989 17 17 { 18 18 private: 19 MCerPhotEvt fSum; 20 Int_t fEntries; 21 M CerPhotEvt *fEvt; //!22 M GeomCam *fCam;23 MCamDisplay *fDispl; //!19 MCerPhotEvt fSum; // storing the sum 20 Int_t fEntries; // number of entries in the histogram 21 MGeomCam *fCam; // the present geometry 22 MCerPhotEvt *fEvt; //! the current event 23 MCamDisplay *fDispl; //! the camera display 24 24 25 25 public: … … 27 27 ~MHCerPhotEvt(); 28 28 29 // TObject *Clone(const char *newname="") const;30 31 29 void Clear(); 32 30 33 31 Bool_t SetupFill(const MParList *pList); 34 Bool_t Fill(const MParContainer *par );32 Bool_t Fill(const MParContainer *par, Double_t w=1); 35 33 Bool_t Finalize(); 36 34
Note:
See TracChangeset
for help on using the changeset viewer.