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.1 2006/02/13 16:10:48 arcelli
19 Add classes for TOF Calibration (C.Zampolli)
21 author: Chiara Zampolli, zampolli@bo.infn.it
24 ///////////////////////////////////////////////////////////////////////////////
26 // class for TOF calibration : strips //
28 ///////////////////////////////////////////////////////////////////////////////
34 #include "AliTOFGeometryV4.h"
35 #include "AliTOFChannel.h"
36 #include "AliTOFCalStrip.h"
37 #include "AliTOFCalPadZ.h"
39 ClassImp(AliTOFCalStrip)
41 //________________________________________________________________
43 AliTOFCalStrip::AliTOFCalStrip(){
45 fNSector = AliTOFGeometryV4::NSectors();
46 fNPlate = AliTOFGeometryV4::NPlates();
47 fNStripA = AliTOFGeometryV4::NStripA();
48 fNStripB = AliTOFGeometryV4::NStripB();
50 // fNStripC = AliTOFGeometryV4::NStripC();
51 fNpadZ = AliTOFGeometryV4::NpadZ();
52 fNpadX = AliTOFGeometryV4::NpadX();
54 //________________________________________________________________
56 AliTOFCalStrip::AliTOFCalStrip(AliTOFChannel *ch):
59 fNSector = AliTOFGeometryV4::NSectors();
60 fNPlate = AliTOFGeometryV4::NPlates();
61 fNStripA = AliTOFGeometryV4::NStripA();
62 fNStripB = AliTOFGeometryV4::NStripB();
64 // fNStripC = AliTOFGeometryV4::NStripC();
65 fNpadZ = AliTOFGeometryV4::NpadZ();
66 fNpadX = AliTOFGeometryV4::NpadX();
69 //________________________________________________________________
71 AliTOFCalStrip::~AliTOFCalStrip()
76 //________________________________________________________________
78 AliTOFCalStrip::AliTOFCalStrip(const AliTOFCalStrip& strip):
82 fNSector = strip.fNSector;
83 fNPlate = strip.fNPlate;
84 fNStripA = strip.fNStripA;
85 fNStripB = strip.fNStripB;
86 fNStripC = strip.fNStripC;
87 fNpadZ = strip.fNpadZ;
88 fNpadX = strip.fNpadX;
91 //________________________________________________________________
93 void AliTOFCalStrip::Browse(TBrowser *b){
96 for(Int_t i=0; i<fNpadZ; ++i) {
97 snprintf(name,sizeof(name),"PadZ %2.2d",i);
98 b->Add(new AliTOFCalPadZ(&fCh[i*fNpadX]),name);