source: trunk/MagicSoft/Mars/mtemp/mifae/library/MIslands.cc@ 4450

Last change on this file since 4450 was 4442, checked in by aliu, 20 years ago
*** empty log message ***
File size: 2.0 KB
Line 
1#include <fstream>
2
3#include "MIslands.h"
4
5#include "MCerPhotPix.h"
6#include "MCerPhotEvt.h"
7
8#include "MLog.h"
9#include "MLogManip.h"
10
11ClassImp(MIslands);
12
13using namespace std;
14
15// --------------------------------------------------------------------------
16//
17// Default constructor.
18//
19MIslands::MIslands(const char *name, const char *title)
20{
21 fName = name ? name : "MIslands";
22 fTitle = title ? title : "Storage container for the island information of one event";
23
24}
25
26// --------------------------------------------------------------------------
27//
28// Destructor.
29//
30MIslands::~MIslands()
31{
32 delete fPixNum;
33 delete fSigToNoise;
34 delete fTimeSpread;
35 delete fMeanX;
36 delete fMeanY;
37 delete fDist;
38 delete fDistL;
39 delete fDistW;
40}
41
42
43// --------------------------------------------------------------------------
44//
45// Getter functions
46//
47
48
49// --------------------------------------------------------------------------
50//
51// Setter functions
52//
53
54
55
56
57// --------------------------------------------------------------------------
58//
59// Print the island parameters to *fLog
60//
61void MIslands::Print(Option_t *opt=NULL) const
62{
63 *fLog << all;
64 *fLog << "Island Parameters (" << GetName() << ")" << endl;
65 *fLog << " - Island Number = " << fIslNum << endl;
66 for (Int_t i = 0; i< fIslNum ; i++)
67 {
68 *fLog << " Island Id " << i << endl;
69 *fLog << " + Pixel Number = " << fPixNum[i] << endl;
70 *fLog << " + SigToNoise = " << fSigToNoise[i] << endl;
71 *fLog << " + TimeSpread [time slices]= " << fTimeSpread[i] << endl;
72 *fLog << " + MeanX [mm]= " << fMeanX[i] << endl;
73 *fLog << " + MeanY [mm]= " << fMeanY[i] << endl;
74 *fLog << " + Dist [mm]= " << fDist[i] << endl;
75 *fLog << " + Length of the larger island [mm] = " << fLength <<endl;
76 *fLog << " + Width of the larger island [mm] = " << fWidth <<endl;
77 *fLog << " + DistL = " << fDistL[i] <<endl;
78 *fLog << " + DistW = " << fDistW[i] << endl;
79 }
80}
81
82
Note: See TracBrowser for help on using the repository browser.