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 **************************************************************************/
16 ///////////////////////////////////////////////////////////////
18 // Class for ZDC calibration -> LASER signal monitoring //
19 // author: Chiara Oppedisano //
21 ///////////////////////////////////////////////////////////////
23 #include "AliZDCLaserCalib.h"
25 ClassImp(AliZDCLaserCalib)
27 //________________________________________________________________
28 AliZDCLaserCalib::AliZDCLaserCalib():
34 //________________________________________________________________
35 AliZDCLaserCalib::AliZDCLaserCalib(const char* name):
39 TString namst = "Calib_";
41 SetName(namst.Data());
42 SetTitle(namst.Data());
44 for(Int_t i=0; i<24; i++){
54 //________________________________________________________________
55 AliZDCLaserCalib::AliZDCLaserCalib(const AliZDCLaserCalib& calibda) :
59 SetName(calibda.GetName());
60 SetTitle(calibda.GetName());
62 for(int t=0; t<22; t++){
63 fDetector[t] = calibda.GetDetector(t);
64 fSector[t] = calibda.GetSector(t);
65 fPMValue[t] = calibda.GetPMValue(t);
66 fPMWidth[t] = calibda.GetPMWidth(t);
70 //________________________________________________________________
71 AliZDCLaserCalib &AliZDCLaserCalib::operator =(const AliZDCLaserCalib& calibda)
73 // assignment operator
74 SetName(calibda.GetName());
75 SetTitle(calibda.GetName());
77 for(int t=0; t<22; t++){
78 fDetector[t] = calibda.GetDetector(t);
79 fSector[t] = calibda.GetSector(t);
80 fPMValue[t] = calibda.GetPMValue(t);
81 fPMWidth[t] = calibda.GetPMWidth(t);
87 //________________________________________________________________
88 AliZDCLaserCalib::~AliZDCLaserCalib()
92 //________________________________________________________________
93 void AliZDCLaserCalib::Reset()
96 memset(fDetector,0,24*sizeof(Float_t));
97 memset(fSector,0,24*sizeof(Float_t));
98 memset(fPMValue,0,24*sizeof(Float_t));
99 memset(fPMWidth,0,24*sizeof(Float_t));
103 //________________________________________________________________
104 void AliZDCLaserCalib::Print(Option_t *) const
106 // Printing of calibration object
107 printf("\n\n ******************* AliZDCLaserCalib object *******************\n");
108 for(Int_t i=0; i<24; i++){
109 printf(" Detector %d, sector %d, PMValue = %1.1f +/- %1.1f\n",
110 fDetector[i], fSector[i],fPMValue[i],fPMWidth[i]);
112 printf(" ***************************************************************\n\n");