source: trunk/MagicSoft/Mars/mhist/MHFadcCam.cc@ 859

Last change on this file since 859 was 859, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 2.5 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): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)
19! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)
20!
21! Copyright: MAGIC Software Development, 2000-2001
22!
23!
24\* ======================================================================== */
25
26///////////////////////////////////////////////////////////////////////
27//
28// MHFadcCam
29//
30// This class contains a list of MHFadcPix.
31//
32///////////////////////////////////////////////////////////////////////
33
34#include "MHFadcCam.h"
35
36#include <TH1.h>
37
38ClassImp(MHFadcCam);
39
40// --------------------------------------------------------------------------
41//
42// default constructor
43// creates an a list of histograms for all pixels and both gain channels
44//
45MHFadcCam::MHFadcCam (const char *name, const char *title)
46{
47 //
48 // set the name and title of this object
49 //
50
51 *fName = name ? name : "MHFadcCam" ;
52 *fTitle = title ? title : "Container for ADC spectra histograms" ;
53
54 //
55 // loop over all Pixels and create two histograms
56 // one for the Low and one for the High gain
57 // connect all the histogram with the container fHist
58 //
59 fArray = new TObjArray(577);
60
61 for (Int_t i=0; i<577; i++)
62 (*fArray)[i] = new MHFadcPix(i);
63}
64
65// --------------------------------------------------------------------------
66MHFadcCam::~MHFadcCam ()
67{
68 delete fArray;
69}
70
71/*void MHFadcCam::SaveHist(char *name)
72{
73 //
74 // save all histogram in this class to a root file
75 //
76
77 //
78 // FIXME: Don't open a file and write to this file!
79 // just Fill the current container (or the two histograms
80 // to an open file. The user must choose a file before.
81 //
82 TFile out( name, "recreate") ;
83
84 //
85 // loop over all pixels and write the files out
86 //
87
88 fHistLo->Write() ;
89 fHistHi->Write() ;
90}
91
92 */
Note: See TracBrowser for help on using the repository browser.