]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDNoiseCut.cxx
noise cut database added
[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
28}
29// ----------------------------------------------------------------- //
30AliPMDNoiseCut::AliPMDNoiseCut(const char* name)
31{
32 //constructor
33 TString namst = "Calib_";
34 namst += name;
35 SetName(namst.Data());
36 SetTitle(namst.Data());
37}
38// ----------------------------------------------------------------- //
39AliPMDNoiseCut::AliPMDNoiseCut(const AliPMDNoiseCut& noisecut) :
40 TNamed(noisecut)
41{
42 // copy constructor
43 SetName(noisecut.GetName());
44 SetTitle(noisecut.GetName());
45 for(Int_t imod = 0; imod < 48; imod++)
46 {
47 fNoiseCut[imod] = noisecut.GetNoiseCut(imod);
48 }
49
50}
51// ----------------------------------------------------------------- //
52AliPMDNoiseCut &AliPMDNoiseCut::operator =(const AliPMDNoiseCut& noisecut)
53{
54 //asignment operator
55 SetName(noisecut.GetName());
56 SetTitle(noisecut.GetName());
57
58 for(Int_t imod = 0; imod < 48; imod++)
59 {
60 fNoiseCut[imod] = noisecut.GetNoiseCut(imod);
61 }
62
63 return *this;
64}
65// ----------------------------------------------------------------- //
66AliPMDNoiseCut::~AliPMDNoiseCut()
67{
68 //destructor
69}
70// ----------------------------------------------------------------- //
71
72void AliPMDNoiseCut::Print(Option_t *) const
73{
74 printf("\n ######Noise Cut for each Module ####\n");
75
76
77 for(Int_t imod = 0; imod < 48; imod++)
78 {
79 printf("%d %f\n",imod,fNoiseCut[imod]);
80 printf("\n");
81 }
82
83}