source: trunk/MagicSoft/Mars/mpedestal/MPedestalPix.cc@ 3966

Last change on this file since 3966 was 3931, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.3 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): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de>
19! Markus Gaug 04/2004 <mailto:markus@ifae.es>
20!
21! Copyright: MAGIC Software Development, 2000-2004
22!
23!
24\* ======================================================================== */
25
26/////////////////////////////////////////////////////////////////////////////
27// //
28// MPedestalPix //
29// //
30// This is the storage container to hold informations about the pedestal //
31// (offset) value of one Pixel (PMT). //
32// //
33/////////////////////////////////////////////////////////////////////////////
34#include "MPedestalPix.h"
35
36#include "MLog.h"
37#include "MLogManip.h"
38
39ClassImp(MPedestalPix);
40
41using namespace std;
42
43MPedestalPix::MPedestalPix()
44 : fValid(kTRUE)
45{
46 Clear();
47}
48
49
50// ------------------------------------------------------------------------
51//
52// Invalidate values
53//
54void MPedestalPix::Clear(Option_t *o)
55{
56 fPedestal = -1.;
57 fPedestalRms = -1.;
58}
59
60void MPedestalPix::InitUseHists()
61{
62
63 fPedestal = 0.;
64 fPedestalRms = 0.;
65}
66
67
68void MPedestalPix::Set(Float_t m, Float_t r)
69{
70 fPedestal = m;
71 fPedestalRms = r;
72}
73
74Bool_t MPedestalPix::IsValid() const
75{
76
77 if (!fValid)
78 return kFALSE;
79
80 return fPedestal>=0||fPedestalRms>=0;
81}
82
Note: See TracBrowser for help on using the repository browser.