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 **************************************************************************/
20 ///////////////////////////////////////////////////////////////////////////////
22 // class for TOF online calibration : array of AliTOFChannelOnline //
24 ///////////////////////////////////////////////////////////////////////////////
30 #include "AliTOFCalOnline.h"
31 #include "AliTOFGeometryV5.h"
35 ClassImp(AliTOFCalOnline)
37 //________________________________________________________________
39 AliTOFCalOnline::AliTOFCalOnline():
54 //________________________________________________________________
56 AliTOFCalOnline::AliTOFCalOnline(AliTOFGeometry *geom):
70 fNSector = fGeom->NSectors();
71 fNPlate = fGeom->NPlates();
72 fNStripA = fGeom->NStripA();
73 fNStripB = fGeom->NStripB();
74 fNStripC = fGeom->NStripC();
75 fNpadZ = fGeom->NpadZ();
76 fNpadX = fGeom->NpadX();
77 fnpad = fNSector*(2*(fNStripC+fNStripB)+fNStripA)*fNpadZ*fNpadX;
79 //________________________________________________________________
81 AliTOFCalOnline::AliTOFCalOnline(const AliTOFCalOnline& cal):
95 fNSector = cal.fNSector;
96 fNPlate = cal.fNPlate;
97 fNStripA = cal.fNStripA;
98 fNStripB = cal.fNStripB;
99 fNStripC = cal.fNStripC;
103 for (Int_t i = 0; i<fnpad; i++){
104 fPads[i]=cal.fPads[i];
107 //____________________________________________________________________________
108 AliTOFCalOnline& AliTOFCalOnline::operator=(const AliTOFCalOnline& cal)
110 //assignment operator
111 this->fNSector = cal.fNSector;
112 this->fNPlate = cal.fNPlate;
113 this->fNStripA = cal.fNStripA;
114 this->fNStripB = cal.fNStripB;
115 this->fNStripC = cal.fNStripC;
116 this->fNpadZ = cal.fNpadZ;
117 this->fNpadX = cal.fNpadX;
118 this->fnpad = cal.fnpad;
119 for (Int_t i = 0; i<fnpad; i++){
120 this->fPads[i]=cal.fPads[i];
125 //____________________________________________________________________________
126 AliTOFCalOnline::~AliTOFCalOnline()
131 //________________________________________________________________
133 void AliTOFCalOnline::CreateArray(){
134 //create cal channel array
136 AliInfo("V5 TOF Geometry is taken as a default");
137 AliTOFGeometry *geom= new AliTOFGeometryV5();
138 fNSector = geom->NSectors();
139 fNPlate = geom->NPlates();
140 fNStripA = geom->NStripA();
141 fNStripB = geom->NStripB();
142 fNStripC = geom->NStripC();
143 fNpadZ = geom->NpadZ();
144 fNpadX = geom->NpadX();
145 fnpad = fNSector*(2*(fNStripC+fNStripB)+fNStripA)*fNpadZ*fNpadX;
148 fPads= new AliTOFChannelOnline[fnpad];