resolving new library dependency libAOD
[u/mrichter/AliRoot.git] / PMD / AliPMDNoiseCut.cxx
CommitLineData
a0c1e804 1/***************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15//
16// Author :
17//
18#include "TNamed.h"
19#include "AliCDBEntry.h"
20#include "AliPMDNoiseCut.h"
21
22
23ClassImp(AliPMDNoiseCut)
24
25AliPMDNoiseCut::AliPMDNoiseCut()
26{
27 // Default constructor
4e2efa25 28 for(Int_t imod = 0; imod < 48; imod++)
29 {
30 fNoiseCut[imod] = 0.;
31 }
a0c1e804 32}
33// ----------------------------------------------------------------- //
34AliPMDNoiseCut::AliPMDNoiseCut(const char* name)
35{
36 //constructor
37 TString namst = "Calib_";
38 namst += name;
39 SetName(namst.Data());
40 SetTitle(namst.Data());
4e2efa25 41 for(Int_t imod = 0; imod < 48; imod++)
42 {
43 fNoiseCut[imod] = 0.;
44 }
a0c1e804 45}
46// ----------------------------------------------------------------- //
47AliPMDNoiseCut::AliPMDNoiseCut(const AliPMDNoiseCut& noisecut) :
48 TNamed(noisecut)
49{
50 // copy constructor
51 SetName(noisecut.GetName());
52 SetTitle(noisecut.GetName());
53 for(Int_t imod = 0; imod < 48; imod++)
54 {
55 fNoiseCut[imod] = noisecut.GetNoiseCut(imod);
56 }
57
58}
59// ----------------------------------------------------------------- //
60AliPMDNoiseCut &AliPMDNoiseCut::operator =(const AliPMDNoiseCut& noisecut)
61{
62 //asignment operator
63 SetName(noisecut.GetName());
64 SetTitle(noisecut.GetName());
65
66 for(Int_t imod = 0; imod < 48; imod++)
67 {
68 fNoiseCut[imod] = noisecut.GetNoiseCut(imod);
69 }
70
71 return *this;
72}
73// ----------------------------------------------------------------- //
74AliPMDNoiseCut::~AliPMDNoiseCut()
75{
76 //destructor
77}
78// ----------------------------------------------------------------- //
79
80void AliPMDNoiseCut::Print(Option_t *) const
81{
82 printf("\n ######Noise Cut for each Module ####\n");
83
84
85 for(Int_t imod = 0; imod < 48; imod++)
86 {
87 printf("%d %f\n",imod,fNoiseCut[imod]);
88 printf("\n");
89 }
90
91}