Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:05

0001 // $Id: $
0002 
0003 /*!
0004  * \file PHG4InttDeadMapLoader.h
0005  * \brief
0006  * \author Jin Huang <jhuang@bnl.gov>
0007  * \version $Revision:   $
0008  * \date $Date: $
0009  */
0010 
0011 #ifndef G4INTT_PHG4INTTDEADMAPLOADER_H
0012 #define G4INTT_PHG4INTTDEADMAPLOADER_H
0013 
0014 #include <fun4all/SubsysReco.h>
0015 
0016 #include <map>
0017 #include <string>
0018 
0019 class PHCompositeNode;
0020 
0021 /*!
0022  * \brief PHG4InttDeadMapLoader loads dead map at inti run
0023  */
0024 class PHG4InttDeadMapLoader : public SubsysReco
0025 {
0026  public:
0027   explicit PHG4InttDeadMapLoader(const std::string& detector = "SILICON_TRACKER");
0028 
0029   ~PHG4InttDeadMapLoader() override {}
0030 
0031   int InitRun(PHCompositeNode* topNode) override;
0032 
0033   void deadMapPath(unsigned int layer, const std::string& deadMapPath)
0034   {
0035     m_deadMapPathMap[layer] = deadMapPath;
0036   }
0037 
0038   const std::string& detector() const
0039   {
0040     return m_detector;
0041   }
0042 
0043   void detector(const std::string& detector)
0044   {
0045     m_detector = detector;
0046   }
0047 
0048  private:
0049   std::map<unsigned int, std::string> m_deadMapPathMap;
0050 
0051   std::string m_detector;
0052 };
0053 
0054 #endif /* G4INTT_PHG4INTTDeadMapLoader_H */