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.5 2006/04/16 22:29:05 hristov
19 Coding conventions (Annalisa)
21 Revision 1.4 2006/04/05 08:35:38 hristov
22 Coding conventions (S.Arcelli, C.Zampolli)
24 Revision 1.3 2006/03/28 14:57:48 arcelli
25 updates to handle new V5 geometry & some re-arrangements
27 Revision 1.2 2006/02/13 17:22:26 arcelli
30 Revision 1.1 2006/02/13 16:10:48 arcelli
31 Add classes for TOF Calibration (C.Zampolli)
33 author: Chiara Zampolli, zampolli@bo.infn.it
36 ///////////////////////////////////////////////////////////////////////////////
38 // class for TOF calibration : PlateB //
40 ///////////////////////////////////////////////////////////////////////////////
46 #include "AliTOFCalPlateB.h"
47 #include "AliTOFCalStrip.h"
48 #include "AliTOFChannel.h"
49 #include "AliTOFGeometryV5.h"
51 ClassImp(AliTOFCalPlateB)
53 //________________________________________________________________
55 AliTOFCalPlateB::AliTOFCalPlateB(){
63 //________________________________________________________________
65 AliTOFCalPlateB::AliTOFCalPlateB(AliTOFChannel *ch) : fCh(ch)
73 //________________________________________________________________
75 AliTOFCalPlateB::AliTOFCalPlateB(AliTOFGeometry *geom){
79 fNStripB = fGeom->NStripB();
80 fNpadZ = fGeom->NpadZ();
81 fNpadX = fGeom->NpadX();
83 //________________________________________________________________
85 AliTOFCalPlateB::AliTOFCalPlateB(AliTOFGeometry *geom, AliTOFChannel *ch): fCh(ch)
87 //ctor with channel and geom
89 fNStripB = fGeom->NStripB();
90 fNpadZ = fGeom->NpadZ();
91 fNpadX = fGeom->NpadX();
94 //________________________________________________________________
96 AliTOFCalPlateB::~AliTOFCalPlateB()
102 //________________________________________________________________
104 AliTOFCalPlateB::AliTOFCalPlateB(const AliTOFCalPlateB& pl):
109 fNStripB = pl.fNStripB;
115 //________________________________________________________________
117 AliTOFCalPlateB& AliTOFCalPlateB::operator=(const AliTOFCalPlateB& pl)
119 //assignment operator
121 this->fNStripB = pl.fNStripB;
122 this->fNpadZ = pl.fNpadZ;
123 this->fNpadX = pl.fNpadX;
124 this->fGeom = pl.fGeom;
128 //________________________________________________________________
130 void AliTOFCalPlateB::Browse(TBrowser *b){
131 //add cal obj to list of browsables
134 AliTOFGeometry *geom = new AliTOFGeometryV5();
135 AliInfo("V5 TOF Geometry is taken as the default");
136 fNStripB = geom->NStripB();
137 fNpadZ = geom->NpadZ();
138 fNpadX = geom->NpadX();
142 for(Int_t i=0; i<fNStripB; ++i) {
143 snprintf(name,sizeof(name),"Strip %2.2d",i);
144 b->Add(new AliTOFCalStrip(&fCh[i*fNpadZ*fNpadX]),name);