Line data Source code
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 :
23 12 : ClassImp(AliPMDNoiseCut)
24 :
25 2 : AliPMDNoiseCut::AliPMDNoiseCut()
26 10 : {
27 : // Default constructor
28 196 : for(Int_t imod = 0; imod < 48; imod++)
29 : {
30 96 : fNoiseCut[imod] = 0.;
31 : }
32 4 : }
33 : // ----------------------------------------------------------------- //
34 0 : AliPMDNoiseCut::AliPMDNoiseCut(const char* name)
35 0 : {
36 : //constructor
37 0 : TString namst = "Calib_";
38 0 : namst += name;
39 0 : SetName(namst.Data());
40 0 : SetTitle(namst.Data());
41 0 : for(Int_t imod = 0; imod < 48; imod++)
42 : {
43 0 : fNoiseCut[imod] = 0.;
44 : }
45 0 : }
46 : // ----------------------------------------------------------------- //
47 : AliPMDNoiseCut::AliPMDNoiseCut(const AliPMDNoiseCut& noisecut) :
48 0 : TNamed(noisecut)
49 0 : {
50 : // copy constructor
51 0 : SetName(noisecut.GetName());
52 0 : SetTitle(noisecut.GetName());
53 0 : for(Int_t imod = 0; imod < 48; imod++)
54 : {
55 0 : fNoiseCut[imod] = noisecut.GetNoiseCut(imod);
56 : }
57 :
58 0 : }
59 : // ----------------------------------------------------------------- //
60 : AliPMDNoiseCut &AliPMDNoiseCut::operator =(const AliPMDNoiseCut& noisecut)
61 : {
62 : //asignment operator
63 0 : SetName(noisecut.GetName());
64 0 : SetTitle(noisecut.GetName());
65 :
66 0 : for(Int_t imod = 0; imod < 48; imod++)
67 : {
68 0 : fNoiseCut[imod] = noisecut.GetNoiseCut(imod);
69 : }
70 :
71 0 : return *this;
72 : }
73 : // ----------------------------------------------------------------- //
74 : AliPMDNoiseCut::~AliPMDNoiseCut()
75 0 : {
76 : //destructor
77 0 : }
78 : // ----------------------------------------------------------------- //
79 :
80 : void AliPMDNoiseCut::Print(Option_t *) const
81 : {
82 0 : printf("\n ######Noise Cut for each Module ####\n");
83 :
84 :
85 0 : for(Int_t imod = 0; imod < 48; imod++)
86 : {
87 0 : printf("%d %f\n",imod,fNoiseCut[imod]);
88 0 : printf("\n");
89 : }
90 :
91 0 : }
|