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.4 2006/04/05 08:35:38 hristov
19 Coding conventions (S.Arcelli, C.Zampolli)
21 Revision 1.3 2006/03/28 14:58:08 arcelli
22 updates to handle new V5 geometry & some re-arrangements
24 Revision 1.2 2006/02/13 17:22:26 arcelli
27 Revision 1.1 2006/02/13 16:10:48 arcelli
28 Add classes for TOF Calibration (C.Zampolli)
30 author: Chiara Zampolli, zampolli@bo.infn.it
33 ///////////////////////////////////////////////////////////////////////////////
35 // class for TOF calibration : strips //
37 ///////////////////////////////////////////////////////////////////////////////
44 #include "AliTOFGeometryV5.h"
45 #include "AliTOFChannel.h"
46 #include "AliTOFCalStrip.h"
47 #include "AliTOFCalPadZ.h"
49 ClassImp(AliTOFCalStrip)
51 //________________________________________________________________
53 AliTOFCalStrip::AliTOFCalStrip(){
60 //________________________________________________________________
62 AliTOFCalStrip::AliTOFCalStrip(AliTOFChannel *ch):
70 //________________________________________________________________
72 AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom){
76 fNpadZ = fGeom->NpadZ();
77 fNpadX = fGeom->NpadX();
79 //________________________________________________________________
81 AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom,AliTOFChannel *ch):
84 //ctor with channel and geom
86 fNpadZ = fGeom->NpadZ();
87 fNpadX = fGeom->NpadX();
89 //________________________________________________________________
91 AliTOFCalStrip::~AliTOFCalStrip()
97 //________________________________________________________________
99 AliTOFCalStrip::AliTOFCalStrip(const AliTOFCalStrip& strip):
104 fNpadZ = strip.fNpadZ;
105 fNpadX = strip.fNpadX;
108 //________________________________________________________________
110 AliTOFCalStrip& AliTOFCalStrip::operator=(const AliTOFCalStrip& strip)
112 //assignment operator
113 this->fCh = strip.fCh;
114 this->fNpadZ = strip.fNpadZ;
115 this->fNpadX = strip.fNpadX;
119 //________________________________________________________________
121 void AliTOFCalStrip::Browse(TBrowser *b){
122 //add obj to list of browsables
124 AliTOFGeometry *geom = new AliTOFGeometryV5();
125 AliInfo("V5 TOF Geometry is taken as the default");
126 fNpadZ = geom->NpadZ();
127 fNpadX = geom->NpadX();
131 for(Int_t i=0; i<fNpadZ; ++i) {
132 snprintf(name,sizeof(name),"PadZ %2.2d",i);
133 b->Add(new AliTOFCalPadZ(&fCh[i*fNpadX]),name);