just Fixing Log info
[u/mrichter/AliRoot.git] / TOF / AliTOFCalPadZ.cxx
CommitLineData
6dc9348d 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
762446e0 16/*
17$Log$
18Revision 1.1 2006/02/13 16:10:48 arcelli
19Add classes for TOF Calibration (C.Zampolli)
20
6dc9348d 21author: Chiara Zampolli, zampolli@bo.infn.it
762446e0 22*/
6dc9348d 23
24///////////////////////////////////////////////////////////////////////////////
25// //
26// class for TOF calibration : PadZ //
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 "AliTOFChannel.h"
36#include "AliTOFCalPadZ.h"
37
38ClassImp(AliTOFCalPadZ)
39
40//________________________________________________________________
41
42AliTOFCalPadZ::AliTOFCalPadZ(){
43 fCh = 0;
44 fNSector = AliTOFGeometryV4::NSectors();
45 fNPlate = AliTOFGeometryV4::NPlates();
46 fNStripA = AliTOFGeometryV4::NStripA();
47 fNStripB = AliTOFGeometryV4::NStripB();
48 fNStripC = 20;
49 // fNStripC = AliTOFGeometryV4::NStripC();
50 fNpadZ = AliTOFGeometryV4::NpadZ();
51 fNpadX = AliTOFGeometryV4::NpadX();
52
53}
54//________________________________________________________________
55
56AliTOFCalPadZ::AliTOFCalPadZ(AliTOFChannel *ch):
57 fCh(ch)
58{
59 fNSector = AliTOFGeometryV4::NSectors();
60 fNPlate = AliTOFGeometryV4::NPlates();
61 fNStripA = AliTOFGeometryV4::NStripA();
62 fNStripB = AliTOFGeometryV4::NStripB();
63 // fNStripC = AliTOFGeometryV4::NStripC();
64 fNStripC = 20;
65 fNpadZ = AliTOFGeometryV4::NpadZ();
66 fNpadX = AliTOFGeometryV4::NpadX();
67
68}
69//________________________________________________________________
70
71AliTOFCalPadZ::~AliTOFCalPadZ()
72 {
73 delete[] fCh;
74 }
75//________________________________________________________________
76
77void AliTOFCalPadZ::Browse(TBrowser *b)
78{
79 char name[10];
80 for(Int_t i=0; i<fNpadX; ++i) {
81 snprintf(name,sizeof(name),"PadX %2.2d",i);
82 b->Add(new AliTOFChannel(fCh[i]),name);
83 }
84}