FairRoot/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
21  box(),
22  fCh(),
23  lCh(),
24  fMap(),
25  fFileName(""),
26  nLines(0)
27  {};
29  box(),
30  fCh(),
31  lCh(),
32  fMap(),
33  fFileName(""),
34  nLines(0)
35  {SetMappingFile(nome);};
36 
38 
39  // Printing
40  void Print();
41 
42  // Initialization & setup
43  void SetMappingFile(TString nome) {fFileName = nome;};
44  Bool_t Init();
45 
46  // Retrieveing information
47  void DoMapping(Int_t nbox, Int_t chan, TString &detpath);
48 
49  void PrintMap();
50 
51  // Members
52 private:
53  // the lookup table: ( RW Id | SW Id | Detname )
54 
55 /* Int_t *box;
56  Int_t *fCh;
57  Int_t *lCh;*/
58  //TClonesArray *nameArr;
59  //std::vector <TString> name;
60 
61  std::map< Int_t , Int_t > box;
62  std::map< Int_t , Int_t > fCh;
63  std::map< Int_t , Int_t > lCh;
64 
65  std::map< Int_t , TString > fMap;
66 
68  Int_t nLines;
69 
71 };
72 
73 
74 #endif
PndMvdBoxMap(TString nome)
Definition: PndMvdBoxMap.h:28
std::map< Int_t, Int_t > box
Definition: PndMvdBoxMap.h:61
void DoMapping(Int_t nbox, Int_t chan, TString &detpath)
Bool_t Init()
std::map< Int_t, TString > fMap
Definition: PndMvdBoxMap.h:65
void SetMappingFile(TString nome)
Definition: PndMvdBoxMap.h:43
ClassDef(PndMvdBoxMap, 1)
std::map< Int_t, Int_t > fCh
Definition: PndMvdBoxMap.h:62
TString fFileName
Definition: PndMvdBoxMap.h:67
std::map< Int_t, Int_t > lCh
Definition: PndMvdBoxMap.h:63