]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCMonitorMappingHandler.h
Script supersceeded by AliForwarddNdetaTask.C and
[u/mrichter/AliRoot.git] / TPC / AliTPCMonitorMappingHandler.h
index fb8dca0fa9c8d8b36a2e166965640434ada3e085..ecda87767d37d2dc85832a5f1a96cbaa11fbb49f 100755 (executable)
@@ -7,50 +7,42 @@
 /* $Id$ */
 
 ////////////////////////////////////////////////////////////////////////
-//
-// AliTPCMonitorMappingHandler class
-//
-// Class for handling mapping information TPC  
-//  
-// Authors: Roland Bramm, 
-//          Stefan Kniege, IKF, Frankfurt
-//       
+////
+//// AliTPCMonitorMappingHandler class
+////
+//// Class for handling mapping information TPC  
+////  
+//// Authors: Roland Bramm, 
+////          Stefan Kniege, IKF, Frankfurt
+////       
 /////////////////////////////////////////////////////////////////////////
 
-
-#include <iostream>
-#include <iomanip>
-#include <fstream>
-#include "TObject.h" 
 #include "TNamed.h" 
-#include "TH1.h"
-#include "TFile.h"
-#include "TLegend.h"
-#include "AliLog.h"
-
-using namespace std;
 
 class AliTPCMonitorMappingHandler:   public TNamed {
  public:
     
     AliTPCMonitorMappingHandler(Char_t* name, Char_t* title);
+    AliTPCMonitorMappingHandler(const  AliTPCMonitorMappingHandler &maphand);
+    AliTPCMonitorMappingHandler& operator= (const AliTPCMonitorMappingHandler& maphand);
+
     ~AliTPCMonitorMappingHandler();
     
     void     ReadMapping(char* mapfile);
     void     ReadRowMappingGlob(char* fpathtoMappingRowfile) ;
-    Int_t    GetNumOfChannels();
-    Int_t    GetSizeofArray();
-    Short_t* GetLine(          Int_t channel);
-    Int_t    GetIndex(         Int_t channel);
-    Int_t    GetPadRow(        Int_t channel);
-    Int_t    GetPad(           Int_t channel);
-    Int_t    GetConnector(     Int_t channel);
-    Int_t    GetPin(           Int_t channel);
-    Int_t    GetFEC(           Int_t channel);
-    Int_t    GetFECchannel(    Int_t channel);
-    Int_t    GetFECconnector(  Int_t channel);
-    Int_t    GetAltroChannel(  Int_t channel);
-    Int_t    GetAltro(         Int_t channel);
+    Int_t    GetNumOfChannels() const;
+    Int_t    GetSizeofArray() const ;
+    Short_t* GetLine(          Int_t channel) const;
+    Int_t    GetIndex(         Int_t channel) const;
+    Int_t    GetPadRow(        Int_t channel) const;
+    Int_t    GetPad(           Int_t channel) const;
+    Int_t    GetConnector(     Int_t channel) const;
+    Int_t    GetPin(           Int_t channel) const;
+    Int_t    GetFEC(           Int_t channel) const;
+    Int_t    GetFECchannel(    Int_t channel) const;
+    Int_t    GetFECconnector(  Int_t channel) const;
+    Int_t    GetAltroChannel(  Int_t channel) const;
+    Int_t    GetAltro(         Int_t channel) const;
     Int_t    GetPadAddInRow(   Int_t row, Int_t pad);
     Int_t    GetNumofPads(     Int_t row);
     
@@ -58,17 +50,17 @@ class AliTPCMonitorMappingHandler:   public TNamed {
     void     ReadfecHwMap(     Int_t sector);
     void     ReadfecGainMap(   char* fecgainmap);
      
-    Int_t    U2fGetBranch(     Int_t fecnr);
-    Int_t    U2fGetRCU(        Int_t fecnr);
-    Int_t    U2fGetFECinRCU(   Int_t fecnr);
-    Int_t    U2fGetFECinBranch(Int_t fecnr);
-    Int_t    U2fGetSide(       Int_t fecnr);
-    Int_t    U2fGetSector(     Int_t fecnr); 
-    Int_t    U2fGetFECnr(      Int_t index);
+    Int_t    U2fGetBranch(     Int_t fecnr) const;
+    Int_t    U2fGetRCU(        Int_t fecnr) const;
+    Int_t    U2fGetFECinRCU(   Int_t fecnr) const;
+    Int_t    U2fGetFECinBranch(Int_t fecnr) const;
+    Int_t    U2fGetSide(       Int_t fecnr) const;
+    Int_t    U2fGetSector(     Int_t fecnr) const;  
+    Int_t    U2fGetFECnr(      Int_t index) const;
     
-    Int_t    GetFECfromHw(Int_t hw)            { return fMapHwFECglobal[hw][0];}
-    Int_t    GetFECChfromHw(Int_t hw)          { return fMapHwFECglobal[hw][1];}
-    Float_t  GetFECchGain(Int_t fec, Int_t ch) { return fecGainMap[fec][ch];}
+    Int_t    GetFECfromHw(Int_t hw)            const { return fMapHwFECglobal[hw][0];}
+    Int_t    GetFECChfromHw(Int_t hw)          const { return fMapHwFECglobal[hw][1];}
+    Float_t  GetFECchGain(Int_t fec, Int_t ch) const { return fecGainMap[fec][ch];}
     
  private:
     
@@ -77,7 +69,6 @@ class AliTPCMonitorMappingHandler:   public TNamed {
     Int_t     fmaxHWAdress;              // Max value of hardware addresses
     Int_t     fsizeofArray;              // Set to max value of hardware addresses
     Short_t** fmapping;                  // global  mapping array
-    Short_t*  fmappingRow;               // mapping array in one row of the file
     Int_t**   fmappingChannelinRow;      // mapping of hardware addresses in one pad row
     
     Short_t** fu2ftestmapping;           // mapping of global FEC numbers in sectors (determined during installation with U2F card)