PandaRoot
PndMvdCreateDefaultApvMap.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //-------------------------------------------------------//
14 // Class PndMvdCreateDefaultApvMap //
15 // //
16 // Creates a default Frontend number mapping file //
17 // //
18 // Created 16.02.2010 //
19 // Author: Ralf Kliemt //
20 // ralf.kliemt{at}hiskp.uni-bonn.de //
21 //-------------------------------------------------------//
22 #ifndef PNDMVDCREATEDEFAULTAPVMAP_H
23 #define PNDMVDCREATEDEFAULTAPVMAP_H
24 
25 #include "TObject.h"
26 #include "TList.h"
27 #include "TGeoManager.h"
28 #include "TString.h"
29 #include "FairTask.h"
30 #include "PndSdsStripDigiPar.h"
31 #include "PndGeoHandling.h"
32 #include <utility>
33 #include <string>
34 #include <vector>
35 #include <map>
36 
37 typedef std::pair<TString, std::pair<Int_t, Int_t>> Map_Entry;
38 
39 class PndMvdCreateDefaultApvMap : public FairTask {
40 
41  public:
43 
47 
48  // setup
49  virtual void SetParContainers();
50  virtual InitStatus Init();
51  virtual InitStatus ReInit() { return kSUCCESS; };
52 
54  virtual void Exec(Option_t *) { return; };
55 
57  Bool_t CreateFile(TString outFile);
58 
59  private:
60  // helper
61  Bool_t SelectSensorParams(TString detname);
62  void WriteExpandNode();
63  std::map<Double_t, std::vector<Map_Entry>> fSortedMapping;
64  // TString FindNodePath(TGeoNode* node);
65  // void DiveDownToNode(TGeoNode* node);
66 
67  // helper members
68  PndSdsStripDigiPar *fCurrentDigiPar;
69  TList *fDigiParameterList;
70  Int_t fFeCount; // Running number of rw frontends
71  Int_t fFakeCount; // Running number of fake frontends
72  ClassDef(PndMvdCreateDefaultApvMap, 1);
73 };
74 
75 #endif
virtual void Exec(Option_t *)
std::pair< TString, std::pair< Int_t, Int_t > > Map_Entry
PndMvdCreateDefaultApvMap & operator=(const PndMvdCreateDefaultApvMap &)=delete
Bool_t CreateFile(TString outFile)
virtual InitStatus Init()
Digitization Parameter Class for MVD-Strip part.
virtual void SetParContainers()