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
29 // ----------------------------------------------------------------- //
30 AliPMDNoiseCut::AliPMDNoiseCut(const char* name)
33 TString namst = "Calib_";
35 SetName(namst.Data());
36 SetTitle(namst.Data());
38 // ----------------------------------------------------------------- //
39 AliPMDNoiseCut::AliPMDNoiseCut(const AliPMDNoiseCut& noisecut) :
43 SetName(noisecut.GetName());
44 SetTitle(noisecut.GetName());
45 for(Int_t imod = 0; imod < 48; imod++)
47 fNoiseCut[imod] = noisecut.GetNoiseCut(imod);
51 // ----------------------------------------------------------------- //
52 AliPMDNoiseCut &AliPMDNoiseCut::operator =(const AliPMDNoiseCut& noisecut)
55 SetName(noisecut.GetName());
56 SetTitle(noisecut.GetName());
58 for(Int_t imod = 0; imod < 48; imod++)
60 fNoiseCut[imod] = noisecut.GetNoiseCut(imod);
65 // ----------------------------------------------------------------- //
66 AliPMDNoiseCut::~AliPMDNoiseCut()
70 // ----------------------------------------------------------------- //
72 void AliPMDNoiseCut::Print(Option_t *) const
74 printf("\n ######Noise Cut for each Module ####\n");
77 for(Int_t imod = 0; imod < 48; imod++)
79 printf("%d %f\n",imod,fNoiseCut[imod]);