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.2 2006/02/13 17:22:26 arcelli
21 Revision 1.1 2006/02/13 16:10:48 arcelli
22 Add classes for TOF Calibration (C.Zampolli)
24 author: Chiara Zampolli, zampolli@bo.infn.it
27 ///////////////////////////////////////////////////////////////////////////////
29 // class for TOF calibration : strips //
31 ///////////////////////////////////////////////////////////////////////////////
38 #include "AliTOFGeometryV5.h"
39 #include "AliTOFChannel.h"
40 #include "AliTOFCalStrip.h"
41 #include "AliTOFCalPadZ.h"
43 ClassImp(AliTOFCalStrip)
45 //________________________________________________________________
47 AliTOFCalStrip::AliTOFCalStrip(){
53 //________________________________________________________________
55 AliTOFCalStrip::AliTOFCalStrip(AliTOFChannel *ch):
62 //________________________________________________________________
64 AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom){
67 fNpadZ = fGeom->NpadZ();
68 fNpadX = fGeom->NpadX();
70 //________________________________________________________________
72 AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom,AliTOFChannel *ch):
76 fNpadZ = fGeom->NpadZ();
77 fNpadX = fGeom->NpadX();
79 //________________________________________________________________
81 AliTOFCalStrip::~AliTOFCalStrip()
86 //________________________________________________________________
88 AliTOFCalStrip::AliTOFCalStrip(const AliTOFCalStrip& strip):
92 fNpadZ = strip.fNpadZ;
93 fNpadX = strip.fNpadX;
96 //________________________________________________________________
98 void AliTOFCalStrip::Browse(TBrowser *b){
101 AliTOFGeometry *geom = new AliTOFGeometryV5();
102 AliInfo("V5 TOF Geometry is taken as the default");
103 fNpadZ = geom->NpadZ();
104 fNpadX = geom->NpadX();
108 for(Int_t i=0; i<fNpadZ; ++i) {
109 snprintf(name,sizeof(name),"PadZ %2.2d",i);
110 b->Add(new AliTOFCalPadZ(&fCh[i*fNpadX]),name);