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 **************************************************************************/
18 Revision 1.4 2006/04/05 08:35:38 hristov
19 Coding conventions (S.Arcelli, C.Zampolli)
21 Revision 1.3 2006/03/28 14:57:30 arcelli
22 updates to handle new V5 geometry & some re-arrangements
24 Revision 1.2 2006/02/13 17:22:26 arcelli
27 Revision 1.1 2006/02/13 16:10:48 arcelli
28 Add classes for TOF Calibration (C.Zampolli)
30 author: Chiara Zampolli, zampolli@bo.infn.it
33 ///////////////////////////////////////////////////////////////////////////////
35 // class for TOF calibration : PadZ //
37 ///////////////////////////////////////////////////////////////////////////////
44 #include "AliTOFGeometryV5.h"
45 #include "AliTOFChannel.h"
46 #include "AliTOFCalPadZ.h"
48 ClassImp(AliTOFCalPadZ)
50 //________________________________________________________________
52 AliTOFCalPadZ::AliTOFCalPadZ(){
56 //________________________________________________________________
58 AliTOFCalPadZ::AliTOFCalPadZ(AliTOFChannel *ch):
63 //________________________________________________________________
65 AliTOFCalPadZ::AliTOFCalPadZ(AliTOFGeometry *geom){
66 //ctor with TOF geometry
69 fNpadX = fGeom->NpadX();
71 //________________________________________________________________
73 AliTOFCalPadZ::AliTOFCalPadZ(AliTOFGeometry *geom,AliTOFChannel *ch):
76 //ctor with TOF geometry and cal channel
78 fNpadX = fGeom->NpadX();
81 //________________________________________________________________
82 AliTOFCalPadZ::AliTOFCalPadZ(const AliTOFCalPadZ &source)
87 this->fGeom=source.fGeom;
91 //_____________________________________________________________________________
92 AliTOFCalPadZ& AliTOFCalPadZ::operator=(const AliTOFCalPadZ &source)
94 // assignment operator
96 this->fGeom=source.fGeom;
101 //________________________________________________________________
103 AliTOFCalPadZ::~AliTOFCalPadZ()
107 //________________________________________________________________
109 void AliTOFCalPadZ::Browse(TBrowser *b)
111 //Add cal object to browsable list
113 AliInfo("V5 TOF Geometry is taken as the default");
114 AliTOFGeometry *geom = new AliTOFGeometryV5();
115 fNpadX = geom->NpadX();
119 for(Int_t i=0; i<fNpadX; ++i) {
120 snprintf(name,sizeof(name),"PadX %2.2d",i);
121 b->Add(new AliTOFChannel(fCh[i]),name);