source: trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityQECam.cc@ 5042

Last change on this file since 5042 was 5020, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.7 KB
Line 
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): Markus Gaug 11/2003 <mailto:markus@ifae.es>
19!
20! Copyright: MAGIC Software Development, 2000-2004
21!
22!
23\* ======================================================================== */
24/////////////////////////////////////////////////////////////////////////////
25//
26// MCalibrationIntensityQECam
27//
28// Storage container for intensity charge calibration results.
29//
30// Individual MCalibrationQECam's can be retrieved with:
31// - GetCam() yielding the current cam.
32// - GetCam("name") yielding the current camera with name "name".
33// - GetCam(i) yielding the i-th camera.
34//
35// See also: MCalibrationIntensityCam, MCalibrationQECam,
36// MCalibrationQEPix, MCalibrationChargeCalc
37// MHCalibrationChargePix, MHCalibrationChargeCam
38//
39/////////////////////////////////////////////////////////////////////////////
40#include "MCalibrationIntensityQECam.h"
41#include "MCalibrationQECam.h"
42
43#include <TObjArray.h>
44
45ClassImp(MCalibrationIntensityQECam);
46
47using namespace std;
48// --------------------------------------------------------------------------
49//
50// Default constructor.
51//
52MCalibrationIntensityQECam::MCalibrationIntensityQECam(const char *name, const char *title)
53{
54
55 fName = name ? name : "MCalibrationIntensityQECam";
56 fTitle = title ? title : "Results of the Intensity Calibration";
57
58 InitSize(1);
59}
60
61// --------------------------------------------------------------------------
62//
63// Calls TObjArray::Expand() for fCams and initialze one MCalibrationQECam
64// and copy the entries
65//
66void MCalibrationIntensityQECam::InitSize(const UInt_t n)
67{
68
69 MCalibrationQECam *oldcam = NULL;
70
71 if (n>1)
72 oldcam = (MCalibrationQECam*)GetCam();
73
74 MCalibrationIntensityCam::InitSize(n);
75 (*fCams)[n-1] = new MCalibrationQECam;
76
77 MCalibrationQECam *newcam = (MCalibrationQECam*)GetCam();
78
79 if (oldcam)
80 oldcam->Copy(*newcam);
81}
82
Note: See TracBrowser for help on using the repository browser.