]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSConTableDB.h
Polishing to fulfill coding conventions
[u/mrichter/AliRoot.git] / PHOS / AliPHOSConTableDB.h
CommitLineData
f74edaba 1#ifndef ALIPHOSCONTABLEDB_H
2#define ALIPHOSCONTABLEDB_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//_________________________________________________________________________
cd228525 9// Class for PHOS connection table, i.e. correspondence between
10// "cable number" and PHOS AbsId number.
f74edaba 11//
cd228525 12//*-- Author: D.Peressounko "RRC Kurchatov Institute"
f74edaba 13
14
15// --- ROOT system ---
16#include "TNamed.h"
17class TArrayS ;
18
19// --- Standard library ---
20
21// --- AliRoot header files ---
22class AliPHOSGeometry ;
23
24class AliPHOSConTableDB: public TNamed {
25
26public:
27 AliPHOSConTableDB() ; // ctor
28 AliPHOSConTableDB(const char * title) ; // ctor
cd228525 29 AliPHOSConTableDB(const AliPHOSConTableDB * cdb) ; // ctor
f74edaba 30 virtual ~AliPHOSConTableDB() ; // dtor
31
cd228525 32 //Calculate table from known number of raws/columns
f74edaba 33 //assuming that prototype is situated in the center of 3 PHOS mod.
34 void BuildDB(void) ;
cd228525 35 Int_t GetNchanels()const {return fNcrInProto ; }
36 Int_t GetNRaws()const{return fProtoRaws ;}
37 Int_t GetNColumns()const{return fProtoColumns ;}
f74edaba 38
39 //set the number of columns in prototype
40 void SetNCols(Int_t ncolumns){fProtoColumns = ncolumns ;}
41 //Set the number of raw in prototype
42 void SetNRaws(Int_t nraws){fProtoRaws = nraws ;}
43
44 //Plot correspondance between Prototype Id and PHOS
45 //Options are "Zoom" - only proto region is plotted
46 // "PHOS" - presents both PHOS and Proto ids
47 void PlotProtoMap(Option_t * opt="Zoom") ;
48
f74edaba 49 //Transforms channel number in prototype into AbsId number in PHOS
cd228525 50 Int_t Raw2AbsId(Int_t raw)const ;
f74edaba 51
52 //Transforms AbsId number in PHOS into channel number in prototype
cd228525 53 Int_t AbsId2Raw(Int_t AbsId)const ;
f74edaba 54
3845779e 55 virtual void Print(Option_t * option="") const ;
f74edaba 56
cd228525 57
58 AliPHOSConTableDB& operator=(const AliPHOSConTableDB& cdb) ;
59
f74edaba 60private:
cd228525 61 AliPHOSGeometry * fGeom ; //! PHOS geometry class
62
63 Int_t fProtoRaws ; // Parameters
64 Int_t fProtoColumns ; // used to calculate
65 Int_t fRawOffset ; // correspondance
66 Int_t fColOffset ; // map
67 Int_t fNcrInProto ; //Number of channels in prototype
68 Int_t fMinAbsId ; //Minimal AbsId, corresponding to some prototype cristall.
69 Int_t fMaxAbsId ; //Maximal AbsId, corresponding to some prototype cristall
70 TArrayS * fAbsIdMap ; //Map of correspondance between Raw and PHOS ID
71 TArrayS * fRawIdMap ; //Map of correspondance between AbsId and Raw
f74edaba 72
73 ClassDef(AliPHOSConTableDB,1) // description
74
75
76};
77
78#endif // AliPHOSCONTABLEDB_H