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 : Sectors //
28 ///////////////////////////////////////////////////////////////////////////////
34 #include "AliTOFGeometryV4.h"
35 #include "AliTOFCalPlateA.h"
36 #include "AliTOFCalPlateB.h"
37 #include "AliTOFCalPlateC.h"
38 #include "AliTOFCalSector.h"
39 #include "AliTOFChannel.h"
43 ClassImp(AliTOFCalSector)
45 //________________________________________________________________
47 AliTOFCalSector::AliTOFCalSector(){
49 fNSector = AliTOFGeometryV4::NSectors();
50 fNPlate = AliTOFGeometryV4::NPlates();
51 fNStripA = AliTOFGeometryV4::NStripA();
52 fNStripB = AliTOFGeometryV4::NStripB();
54 // fNStripC = AliTOFGeometryV4::NStripC();
55 fNpadZ = AliTOFGeometryV4::NpadZ();
56 fNpadX = AliTOFGeometryV4::NpadX();
57 gROOT->GetListOfBrowsables()->Add(this);
60 //________________________________________________________________
62 AliTOFCalSector::AliTOFCalSector(AliTOFChannel *ch):
65 fNSector = AliTOFGeometryV4::NSectors();
66 fNPlate = AliTOFGeometryV4::NPlates();
67 fNStripA = AliTOFGeometryV4::NStripA();
68 fNStripB = AliTOFGeometryV4::NStripB();
70 // fNStripC = AliTOFGeometryV4::NStripC();
71 fNpadZ = AliTOFGeometryV4::NpadZ();
72 fNpadX = AliTOFGeometryV4::NpadX();
74 //________________________________________________________________
76 AliTOFCalSector::AliTOFCalSector(const AliTOFCalSector& sec):
80 fNSector = sec.fNSector;
81 fNPlate = sec.fNPlate;
82 fNStripA = sec.fNStripA;
83 fNStripB = sec.fNStripB;
84 fNStripC = sec.fNStripC;
87 gROOT->GetListOfBrowsables()->Add(this);
89 //________________________________________________________________
91 AliTOFCalSector::~AliTOFCalSector()
96 //________________________________________________________________
98 void AliTOFCalSector::Browse(TBrowser *b){
100 b->Add(new AliTOFCalPlateC(fCh), "Plate0");
101 b->Add(new AliTOFCalPlateB(&fCh[fNStripC*96]),"Plate1");
102 b->Add(new AliTOFCalPlateA(&fCh[(fNStripC+fNStripB)*fNpadZ*fNpadX]),"Plate2");
103 b->Add(new AliTOFCalPlateB(&fCh[(fNStripC+2*fNStripB)*fNpadZ*fNpadX]),"Plate3");
104 b->Add(new AliTOFCalPlateC(&fCh[2*(fNStripC+fNStripB)*fNpadZ*fNpadX]),"Plate4");