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 |
|
---|
11 | ClassImp(MIslands);
|
---|
12 |
|
---|
13 | using namespace std;
|
---|
14 |
|
---|
15 | // --------------------------------------------------------------------------
|
---|
16 | //
|
---|
17 | // Default constructor.
|
---|
18 | //
|
---|
19 | MIslands::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 | //
|
---|
30 | MIslands::~MIslands()
|
---|
31 | {
|
---|
32 |
|
---|
33 | }
|
---|
34 |
|
---|
35 |
|
---|
36 | // --------------------------------------------------------------------------
|
---|
37 | //
|
---|
38 | // Getter functions
|
---|
39 | //
|
---|
40 |
|
---|
41 |
|
---|
42 | // --------------------------------------------------------------------------
|
---|
43 | //
|
---|
44 | // Setter functions
|
---|
45 | //
|
---|
46 |
|
---|
47 |
|
---|
48 |
|
---|
49 |
|
---|
50 | // --------------------------------------------------------------------------
|
---|
51 | //
|
---|
52 | // Print the island parameters to *fLog
|
---|
53 | //
|
---|
54 | void MIslands::Print(Option_t *opt=NULL) const
|
---|
55 | {
|
---|
56 | *fLog << all;
|
---|
57 | *fLog << "Island Parameters (" << GetName() << ")" << endl;
|
---|
58 | *fLog << " - Island Number = " << fIslNum << endl;
|
---|
59 | for (Int_t i = 0; i< fIslNum ; i++)
|
---|
60 | {
|
---|
61 | *fLog << " Island Id " << i << endl;
|
---|
62 | *fLog << " + Pixel Number = " << fPixNum[i] << endl;
|
---|
63 | *fLog << " + SigToNoise = " << fSigToNoise[i] << endl;
|
---|
64 | *fLog << " + TimeSpread [time slices]= " << fTimeSpread[i] << endl;
|
---|
65 | *fLog << " + MeanX [mm]= " << fMeanX[i] << endl;
|
---|
66 | *fLog << " + MeanY [mm]= " << fMeanY[i] << endl;
|
---|
67 | *fLog << " + Dist [mm]= " << fDist[i] << endl;
|
---|
68 | *fLog << " + Length of the larger island [mm] = " << fLength <<endl;
|
---|
69 | *fLog << " + Width of the larger island [mm] = " << fWidth <<endl;
|
---|
70 | *fLog << " + DistL = " << fDistL[i] <<endl;
|
---|
71 | *fLog << " + DistW = " << fDistW[i] << endl;
|
---|
72 | }
|
---|
73 | }
|
---|
74 |
|
---|
75 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.