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.3 2006/03/28 14:58:08 arcelli
19 updates to handle new V5 geometry & some re-arrangements
21 Revision 1.2 2006/02/13 17:22:26 arcelli
24 Revision 1.1 2006/02/13 16:10:48 arcelli
25 Add classes for TOF Calibration (C.Zampolli)
27 author: Chiara Zampolli, zampolli@bo.infn.it
30 ///////////////////////////////////////////////////////////////////////////////
32 // class for TOF calibration : strips //
34 ///////////////////////////////////////////////////////////////////////////////
41 #include "AliTOFGeometryV5.h"
42 #include "AliTOFChannel.h"
43 #include "AliTOFCalStrip.h"
44 #include "AliTOFCalPadZ.h"
46 ClassImp(AliTOFCalStrip)
48 //________________________________________________________________
50 AliTOFCalStrip::AliTOFCalStrip(){
57 //________________________________________________________________
59 AliTOFCalStrip::AliTOFCalStrip(AliTOFChannel *ch):
67 //________________________________________________________________
69 AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom){
73 fNpadZ = fGeom->NpadZ();
74 fNpadX = fGeom->NpadX();
76 //________________________________________________________________
78 AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom,AliTOFChannel *ch):
81 //ctor with channel and geom
83 fNpadZ = fGeom->NpadZ();
84 fNpadX = fGeom->NpadX();
86 //________________________________________________________________
88 AliTOFCalStrip::~AliTOFCalStrip()
94 //________________________________________________________________
96 AliTOFCalStrip::AliTOFCalStrip(const AliTOFCalStrip& strip):
101 fNpadZ = strip.fNpadZ;
102 fNpadX = strip.fNpadX;
105 //________________________________________________________________
107 void AliTOFCalStrip::Browse(TBrowser *b){
108 //add obj to list of browsables
110 AliTOFGeometry *geom = new AliTOFGeometryV5();
111 AliInfo("V5 TOF Geometry is taken as the default");
112 fNpadZ = geom->NpadZ();
113 fNpadX = geom->NpadX();
117 for(Int_t i=0; i<fNpadZ; ++i) {
118 snprintf(name,sizeof(name),"PadZ %2.2d",i);
119 b->Add(new AliTOFCalPadZ(&fCh[i*fNpadX]),name);