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 **************************************************************************/
17 author: Chiara Zampolli, zampolli@bo.infn.it
20 ///////////////////////////////////////////////////////////////////////////////
22 // class for TOF calibration : PadZ //
24 ///////////////////////////////////////////////////////////////////////////////
30 #include "AliTOFGeometryV4.h"
31 #include "AliTOFChannel.h"
32 #include "AliTOFCalPadZ.h"
34 ClassImp(AliTOFCalPadZ)
36 //________________________________________________________________
38 AliTOFCalPadZ::AliTOFCalPadZ(){
40 fNSector = AliTOFGeometryV4::NSectors();
41 fNPlate = AliTOFGeometryV4::NPlates();
42 fNStripA = AliTOFGeometryV4::NStripA();
43 fNStripB = AliTOFGeometryV4::NStripB();
45 // fNStripC = AliTOFGeometryV4::NStripC();
46 fNpadZ = AliTOFGeometryV4::NpadZ();
47 fNpadX = AliTOFGeometryV4::NpadX();
50 //________________________________________________________________
52 AliTOFCalPadZ::AliTOFCalPadZ(AliTOFChannel *ch):
55 fNSector = AliTOFGeometryV4::NSectors();
56 fNPlate = AliTOFGeometryV4::NPlates();
57 fNStripA = AliTOFGeometryV4::NStripA();
58 fNStripB = AliTOFGeometryV4::NStripB();
59 // fNStripC = AliTOFGeometryV4::NStripC();
61 fNpadZ = AliTOFGeometryV4::NpadZ();
62 fNpadX = AliTOFGeometryV4::NpadX();
65 //________________________________________________________________
67 AliTOFCalPadZ::~AliTOFCalPadZ()
71 //________________________________________________________________
73 void AliTOFCalPadZ::Browse(TBrowser *b)
76 for(Int_t i=0; i<fNpadX; ++i) {
77 snprintf(name,sizeof(name),"PadX %2.2d",i);
78 b->Add(new AliTOFChannel(fCh[i]),name);