| 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 12/2003 <mailto:markus@ifae.es>
|
|---|
| 19 | ! Author(s): Thomas Bretz 12/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
|
|---|
| 20 | !
|
|---|
| 21 | ! Copyright: MAGIC Software Development, 2000-2003
|
|---|
| 22 | !
|
|---|
| 23 | !
|
|---|
| 24 | \* ======================================================================== */
|
|---|
| 25 |
|
|---|
| 26 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 27 | // //
|
|---|
| 28 | // MExtractedSignalPix //
|
|---|
| 29 | // //
|
|---|
| 30 | // This is the storage container to hold informations about the pedestal //
|
|---|
| 31 | // (offset) value of one Pixel (PMT). //
|
|---|
| 32 | // //
|
|---|
| 33 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 34 | #include "MExtractedSignalPix.h"
|
|---|
| 35 | #include "MLog.h"
|
|---|
| 36 | #include "MLogManip.h"
|
|---|
| 37 |
|
|---|
| 38 | ClassImp(MExtractedSignalPix);
|
|---|
| 39 |
|
|---|
| 40 | using namespace std;
|
|---|
| 41 |
|
|---|
| 42 | MExtractedSignalPix::MExtractedSignalPix(const char* name, const char* title)
|
|---|
| 43 | : fExtractedSignalHiGain(-1.),
|
|---|
| 44 | fExtractedSignalHiGainError(-1.),
|
|---|
| 45 | fExtractedSignalLoGain(-1.),
|
|---|
| 46 | fExtractedSignalLoGainError(-1.),
|
|---|
| 47 | fIsLoGainUsed(kFALSE),
|
|---|
| 48 | fNumHiGainSaturated(0),
|
|---|
| 49 | fNumLoGainSaturated(0)
|
|---|
| 50 | {
|
|---|
| 51 |
|
|---|
| 52 | fName = name ? name : "MExtractedSignalPix";
|
|---|
| 53 | fTitle = title ? title : "Container of the Extracted Signals";
|
|---|
| 54 |
|
|---|
| 55 | }
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 | // ------------------------------------------------------------------------
|
|---|
| 60 | //
|
|---|
| 61 | // Invalidate values
|
|---|
| 62 | //
|
|---|
| 63 | void MExtractedSignalPix::Clear(Option_t *o)
|
|---|
| 64 | {
|
|---|
| 65 |
|
|---|
| 66 | fExtractedSignalHiGain = 0.;
|
|---|
| 67 | // fExtractedSignalHiGain = -1.;
|
|---|
| 68 | fExtractedSignalHiGainError = -1.;
|
|---|
| 69 |
|
|---|
| 70 | fIsLoGainUsed = kFALSE;
|
|---|
| 71 | fNumHiGainSaturated = 0;
|
|---|
| 72 | fNumLoGainSaturated = 0;
|
|---|
| 73 |
|
|---|
| 74 | }
|
|---|
| 75 |
|
|---|
| 76 | void MExtractedSignalPix::PrintOut()
|
|---|
| 77 | {
|
|---|
| 78 |
|
|---|
| 79 | *fLog << all << GetDescriptor() << ":" << endl;
|
|---|
| 80 |
|
|---|
| 81 | *fLog << " Signal: " << fExtractedSignalHiGain
|
|---|
| 82 | << " +- " << fExtractedSignalHiGainError
|
|---|
| 83 | << " LoGain? " << fIsLoGainUsed
|
|---|
| 84 | << " Nr. Sat. Hi Gain: " << fNumHiGainSaturated
|
|---|
| 85 | << " Nr. Sat. Lo Gain: " << fNumLoGainSaturated
|
|---|
| 86 | << endl;
|
|---|
| 87 |
|
|---|
| 88 | }
|
|---|
| 89 |
|
|---|