PandaRoot
PndMvdBoxMap.h
Go to the documentation of this file.
1 // Class PndMvdBoxApv
2 // To be used when analyzing .root DAQ files
3 
4 // Simone Bianco
5 
6 #ifndef PNDMVDMAPBOX_H
7 #define PNDMVDMAPBOX_H
8 
9 #include <iostream>
10 #include <utility>
11 #include <string>
12 #include <vector>
13 #include <map>
14 #include "TString.h"
15 #include "TObject.h" // contains message printing methods
16 
17 class PndMvdBoxMap : public TObject {
18  public:
19  // Constructor/destructor
20  PndMvdBoxMap() : box(), fCh(), lCh(), fMap(), fFileName(""), nLines(0){};
21  PndMvdBoxMap(TString nome) : box(), fCh(), lCh(), fMap(), fFileName(""), nLines(0) { SetMappingFile(nome); };
22 
24 
25  // Printing
26  void Print();
27 
28  // Initialization & setup
29  void SetMappingFile(TString nome) { fFileName = nome; };
30  Bool_t Init();
31 
32  // Retrieveing information
33  void DoMapping(Int_t nbox, Int_t chan, TString &detpath);
34 
35  void PrintMap();
36 
37  // Members
38  private:
39  // the lookup table: ( RW Id | SW Id | Detname )
40 
41  /* Int_t *box;
42  Int_t *fCh;
43  Int_t *lCh;*/
44  // TClonesArray *nameArr;
45  // std::vector <TString> name;
46 
47  std::map<Int_t, Int_t> box;
48  std::map<Int_t, Int_t> fCh;
49  std::map<Int_t, Int_t> lCh;
50 
51  std::map<Int_t, TString> fMap;
52 
53  TString fFileName;
54  Int_t nLines;
55 
56  ClassDef(PndMvdBoxMap, 1);
57 };
58 
59 #endif
void PrintMap()
PndMvdBoxMap(TString nome)
Definition: PndMvdBoxMap.h:21
void DoMapping(Int_t nbox, Int_t chan, TString &detpath)
Bool_t Init()
void SetMappingFile(TString nome)
Definition: PndMvdBoxMap.h:29