source: trunk/MagicSoft/Mars/mdatacheck/MHFadcCam.cc@ 703

Last change on this file since 703 was 698, checked in by tbretz, 24 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.4 KB
Line 
1///////////////////////////////////////////////////////////////////////
2//
3// MHFadcCam
4//
5// This class contains a list of all ADC spektra histograms
6//
7///////////////////////////////////////////////////////////////////////
8
9#include "MHFadcCam.h"
10
11#include <TH1.h>
12
13ClassImp(MHFadcCam)
14
15MHFadcCam::MHFadcCam (const char *name, const char *title)
16{
17 //
18 // default constructor
19 // creates an a list of histograms for all pixels and both gain channels
20 //
21
22 //
23 // set the name and title of this object
24 //
25
26 *fName = name ? name : "MHFadcCam" ;
27 *fTitle = title ? title : "Container for ADC spectra histograms" ;
28
29 //
30 // loop over all Pixels and create two histograms
31 // one for the Low and one for the High gain
32 // connect all the histogram with the container fHist
33 //
34 fArray = new TObjArray(577);
35
36 for (Int_t i=0; i<577; i++)
37 (*fArray)[i] = new MHFadcPix(i);
38}
39
40MHFadcCam::~MHFadcCam ()
41{
42 delete fArray;
43}
44
45/*void MHFadcCam::SaveHist(char *name)
46{
47 //
48 // save all histogram in this class to a root file
49 //
50
51 //
52 // FIXME: Don't open a file and write to this file!
53 // just Fill the current container (or the two histograms
54 // to an open file. The user must choose a file before.
55 //
56 TFile out( name, "recreate") ;
57
58 //
59 // loop over all pixels and write the files out
60 //
61
62 fHistLo->Write() ;
63 fHistHi->Write() ;
64}
65
66 */
Note: See TracBrowser for help on using the repository browser.