]>
Commit | Line | Data |
---|---|---|
1 | /************************************************************************** | |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
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 | **************************************************************************/ | |
15 | ||
16 | /* | |
17 | $Log$ | |
18 | Revision 1.1 2006/02/13 16:10:48 arcelli | |
19 | Add classes for TOF Calibration (C.Zampolli) | |
20 | ||
21 | author: Chiara Zampolli, zampolli@bo.infn.it | |
22 | */ | |
23 | ||
24 | /////////////////////////////////////////////////////////////////////////////// | |
25 | // // | |
26 | // class for TOF calibration : PlateB // | |
27 | // // | |
28 | /////////////////////////////////////////////////////////////////////////////// | |
29 | ||
30 | #include "TObject.h" | |
31 | #include "TROOT.h" | |
32 | #include "TBrowser.h" | |
33 | #include "TClass.h" | |
34 | #include "AliTOFGeometryV4.h" | |
35 | #include "AliTOFCalStrip.h" | |
36 | #include "AliTOFCalPlateB.h" | |
37 | #include "AliTOFChannel.h" | |
38 | ||
39 | ClassImp(AliTOFCalPlateB) | |
40 | ||
41 | //________________________________________________________________ | |
42 | ||
43 | AliTOFCalPlateB::AliTOFCalPlateB(){ | |
44 | fCh = 0; | |
45 | fNSector = AliTOFGeometryV4::NSectors(); | |
46 | fNPlate = AliTOFGeometryV4::NPlates(); | |
47 | fNStripA = AliTOFGeometryV4::NStripA(); | |
48 | fNStripB = AliTOFGeometryV4::NStripB(); | |
49 | fNStripC = 20; | |
50 | // fNStripC = AliTOFGeometryV4::NStripC(); | |
51 | fNpadZ = AliTOFGeometryV4::NpadZ(); | |
52 | fNpadX = AliTOFGeometryV4::NpadX(); | |
53 | ||
54 | } | |
55 | //________________________________________________________________ | |
56 | ||
57 | AliTOFCalPlateB::AliTOFCalPlateB(AliTOFChannel *ch): | |
58 | fCh(ch) | |
59 | { | |
60 | fNSector = AliTOFGeometryV4::NSectors(); | |
61 | fNPlate = AliTOFGeometryV4::NPlates(); | |
62 | fNStripA = AliTOFGeometryV4::NStripA(); | |
63 | fNStripB = AliTOFGeometryV4::NStripB(); | |
64 | fNStripC = 20; | |
65 | // fNStripC = AliTOFGeometryV4::NStripC(); | |
66 | fNpadZ = AliTOFGeometryV4::NpadZ(); | |
67 | fNpadX = AliTOFGeometryV4::NpadX(); | |
68 | } | |
69 | //________________________________________________________________ | |
70 | ||
71 | AliTOFCalPlateB::~AliTOFCalPlateB() | |
72 | { | |
73 | delete[] fCh; | |
74 | } | |
75 | ||
76 | //________________________________________________________________ | |
77 | ||
78 | AliTOFCalPlateB::AliTOFCalPlateB(const AliTOFCalPlateB& pl): | |
79 | TObject(pl) | |
80 | { | |
81 | fCh = pl.fCh; | |
82 | fCh = pl.fCh; | |
83 | fCh = pl.fCh; | |
84 | fNSector = pl.fNSector; | |
85 | fNPlate = pl.fNPlate; | |
86 | fNStripA = pl.fNStripA; | |
87 | fNStripB = pl.fNStripB; | |
88 | fNStripC = pl.fNStripC; | |
89 | fNpadZ = pl.fNpadZ; | |
90 | fNpadX = pl.fNpadX; | |
91 | ||
92 | } | |
93 | //________________________________________________________________ | |
94 | ||
95 | void AliTOFCalPlateB::Browse(TBrowser *b){ | |
96 | ||
97 | char name[10]; | |
98 | for(Int_t i=0; i<fNStripB; ++i) { | |
99 | snprintf(name,sizeof(name),"Strip %2.2d",i); | |
100 | b->Add(new AliTOFCalStrip(&fCh[i*fNpadZ*fNpadX]),name); | |
101 | } | |
102 | } |