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.6 2006/04/20 22:30:49 hristov
19 Coding conventions (Annalisa)
21 Revision 1.5 2006/04/16 22:29:05 hristov
22 Coding conventions (Annalisa)
24 Revision 1.4 2006/04/05 08:35:38 hristov
25 Coding conventions (S.Arcelli, C.Zampolli)
27 Revision 1.3 2006/03/28 14:58:08 arcelli
28 updates to handle new V5 geometry & some re-arrangements
30 Revision 1.2 2006/02/13 17:22:26 arcelli
33 Revision 1.1 2006/02/13 16:10:48 arcelli
34 Add classes for TOF Calibration (C.Zampolli)
36 author: Chiara Zampolli, zampolli@bo.infn.it
39 ///////////////////////////////////////////////////////////////////////////////
41 // class for TOF calibration : strips //
43 ///////////////////////////////////////////////////////////////////////////////
49 #include "AliTOFCalPadZ.h"
50 #include "AliTOFCalStrip.h"
51 #include "AliTOFChannel.h"
52 #include "AliTOFGeometryV5.h"
54 ClassImp(AliTOFCalStrip)
56 //________________________________________________________________
58 AliTOFCalStrip::AliTOFCalStrip():
66 //________________________________________________________________
68 AliTOFCalStrip::AliTOFCalStrip(AliTOFChannel *ch):
76 //________________________________________________________________
78 AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom):
85 fNpadZ = fGeom->NpadZ();
86 fNpadX = fGeom->NpadX();
88 //________________________________________________________________
90 AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom,AliTOFChannel *ch):
96 //ctor with channel and geom
97 fNpadZ = fGeom->NpadZ();
98 fNpadX = fGeom->NpadX();
100 //________________________________________________________________
102 AliTOFCalStrip::~AliTOFCalStrip()
108 //________________________________________________________________
110 AliTOFCalStrip::AliTOFCalStrip(const AliTOFCalStrip& strip):
119 fNpadZ = strip.fNpadZ;
120 fNpadX = strip.fNpadX;
123 //________________________________________________________________
125 AliTOFCalStrip& AliTOFCalStrip::operator=(const AliTOFCalStrip& strip)
127 //assignment operator
128 this->fCh = strip.fCh;
129 this->fNpadZ = strip.fNpadZ;
130 this->fNpadX = strip.fNpadX;
134 //________________________________________________________________
136 void AliTOFCalStrip::Browse(TBrowser *b){
137 //add obj to list of browsables
139 AliTOFGeometry *geom = new AliTOFGeometryV5();
140 AliInfo("V5 TOF Geometry is taken as the default");
141 fNpadZ = geom->NpadZ();
142 fNpadX = geom->NpadX();
146 for(Int_t i=0; i<fNpadZ; ++i) {
147 snprintf(name,sizeof(name),"PadZ %2.2d",i);
148 b->Add(new AliTOFCalPadZ(&fCh[i*fNpadX]),name);