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.2 2006/02/13 16:53:00 decaro
21 Revision 1.1 2006/02/13 16:10:48 arcelli
22 Add classes for TOF Calibration (C.Zampolli)
24 author: Chiara Zampolli, zampolli@bo.infn.it
27 ///////////////////////////////////////////////////////////////////////////////
29 // class for TOF calibration : Sectors //
31 ///////////////////////////////////////////////////////////////////////////////
38 #include "AliTOFGeometryV5.h"
39 #include "AliTOFCalPlateA.h"
40 #include "AliTOFCalPlateB.h"
41 #include "AliTOFCalPlateC.h"
42 #include "AliTOFCalSector.h"
43 #include "AliTOFChannel.h"
47 ClassImp(AliTOFCalSector)
49 //________________________________________________________________
51 AliTOFCalSector::AliTOFCalSector(){
60 gROOT->GetListOfBrowsables()->Add(this);
63 //________________________________________________________________
65 AliTOFCalSector::AliTOFCalSector(AliTOFChannel *ch):
75 gROOT->GetListOfBrowsables()->Add(this);
77 //________________________________________________________________
79 AliTOFCalSector::AliTOFCalSector(AliTOFGeometry *geom){
82 fNPlate = fGeom->NPlates();
83 fNStripA = fGeom->NStripA();
84 fNStripB = fGeom->NStripB();
85 fNStripC = fGeom->NStripC();
86 fNpadZ = fGeom->NpadZ();
87 fNpadX = fGeom->NpadX();
88 gROOT->GetListOfBrowsables()->Add(this);
91 //________________________________________________________________
93 AliTOFCalSector::AliTOFCalSector(AliTOFGeometry *geom,AliTOFChannel *ch):
97 fNPlate = fGeom->NPlates();
98 fNStripA = fGeom->NStripA();
99 fNStripB = fGeom->NStripB();
100 fNStripC = fGeom->NStripC();
101 fNpadZ = fGeom->NpadZ();
102 fNpadX = fGeom->NpadX();
103 gROOT->GetListOfBrowsables()->Add(this);
105 //________________________________________________________________
107 AliTOFCalSector::AliTOFCalSector(const AliTOFCalSector& sec):
111 fNPlate = sec.fNPlate;
112 fNStripA = sec.fNStripA;
113 fNStripB = sec.fNStripB;
114 fNStripC = sec.fNStripC;
117 gROOT->GetListOfBrowsables()->Add(this);
119 //________________________________________________________________
121 AliTOFCalSector::~AliTOFCalSector()
123 gROOT->GetListOfBrowsables()->Remove(this);
127 //________________________________________________________________
129 void AliTOFCalSector::Browse(TBrowser *b){
132 AliTOFGeometry *geom= new AliTOFGeometryV5();
133 AliInfo("V5 TOF Geometry is taken as the default");
134 fNPlate = geom->NPlates();
135 fNStripA = geom->NStripA();
136 fNStripB = geom->NStripB();
137 fNStripC = geom->NStripC();
138 fNpadZ = geom->NpadZ();
139 fNpadX = geom->NpadX();
142 b->Add(new AliTOFCalPlateC(fCh), "Plate0");
143 b->Add(new AliTOFCalPlateB(&fCh[fNStripC*96]),"Plate1");
144 b->Add(new AliTOFCalPlateA(&fCh[(fNStripC+fNStripB)*fNpadZ*fNpadX]),"Plate2");
145 b->Add(new AliTOFCalPlateB(&fCh[(fNStripC+2*fNStripB)*fNpadZ*fNpadX]),"Plate3");
146 b->Add(new AliTOFCalPlateC(&fCh[2*(fNStripC+fNStripB)*fNpadZ*fNpadX]),"Plate4");