forked from sPHENIX-Collaboration/coresoftware
/
PHG4InttDeadMapLoader.h
54 lines (40 loc) · 1.01 KB
/
PHG4InttDeadMapLoader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// $Id: $
/*!
* \file PHG4InttDeadMapLoader.h
* \brief
* \author Jin Huang <jhuang@bnl.gov>
* \version $Revision: $
* \date $Date: $
*/
#ifndef G4INTT_PHG4INTTDEADMAPLOADER_H
#define G4INTT_PHG4INTTDEADMAPLOADER_H
#include <fun4all/SubsysReco.h>
#include <map>
#include <string>
class PHCompositeNode;
/*!
* \brief PHG4InttDeadMapLoader loads dead map at inti run
*/
class PHG4InttDeadMapLoader : public SubsysReco
{
public:
explicit PHG4InttDeadMapLoader(const std::string& detector = "SILICON_TRACKER");
~PHG4InttDeadMapLoader() override;
int InitRun(PHCompositeNode* topNode) override;
void deadMapPath(unsigned int layer, const std::string& deadMapPath)
{
m_deadMapPathMap[layer] = deadMapPath;
}
const std::string& detector() const
{
return m_detector;
}
void detector(const std::string& detector)
{
m_detector = detector;
}
private:
std::map<unsigned int, std::string> m_deadMapPathMap;
std::string m_detector;
};
#endif /* G4INTT_PHG4INTTDeadMapLoader_H */