1 /***************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
19 #include "AliCDBEntry.h"
20 #include "AliPMDNoiseCut.h"
23 ClassImp(AliPMDNoiseCut)
25 AliPMDNoiseCut::AliPMDNoiseCut()
27 // Default constructor
28 for(Int_t imod = 0; imod < 48; imod++)
33 // ----------------------------------------------------------------- //
34 AliPMDNoiseCut::AliPMDNoiseCut(const char* name)
37 TString namst = "Calib_";
39 SetName(namst.Data());
40 SetTitle(namst.Data());
41 for(Int_t imod = 0; imod < 48; imod++)
46 // ----------------------------------------------------------------- //
47 AliPMDNoiseCut::AliPMDNoiseCut(const AliPMDNoiseCut& noisecut) :
51 SetName(noisecut.GetName());
52 SetTitle(noisecut.GetName());
53 for(Int_t imod = 0; imod < 48; imod++)
55 fNoiseCut[imod] = noisecut.GetNoiseCut(imod);
59 // ----------------------------------------------------------------- //
60 AliPMDNoiseCut &AliPMDNoiseCut::operator =(const AliPMDNoiseCut& noisecut)
63 SetName(noisecut.GetName());
64 SetTitle(noisecut.GetName());
66 for(Int_t imod = 0; imod < 48; imod++)
68 fNoiseCut[imod] = noisecut.GetNoiseCut(imod);
73 // ----------------------------------------------------------------- //
74 AliPMDNoiseCut::~AliPMDNoiseCut()
78 // ----------------------------------------------------------------- //
80 void AliPMDNoiseCut::Print(Option_t *) const
82 printf("\n ######Noise Cut for each Module ####\n");
85 for(Int_t imod = 0; imod < 48; imod++)
87 printf("%d %f\n",imod,fNoiseCut[imod]);