Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:21:59

0001 #ifndef __PHG4SVTXCLUSTERIZER_H__
0002 #define __PHG4SVTXCLUSTERIZER_H__
0003 
0004 #include <fun4all/SubsysReco.h>
0005 #include <phool/PHTimeServer.h>
0006 #include <map>
0007 #include <limits.h>
0008 
0009 #include <mvtx/MvtxHitSetv1.h>
0010 #include <trackbase/TrkrDefUtil.h>
0011 
0012 class TrkrHitSetContainer;
0013 
0014 class MvtxApplyHotDead : public SubsysReco {
0015 
0016 public:
0017 
0018   typedef std::pair<unsigned int, unsigned int> Pixel;
0019   typedef std::multimap<TrkrDefs::hitsetkey, Pixel> PixelMap;
0020   typedef PixelMap::const_iterator ConstIterator;
0021 
0022   MvtxApplyHotDead(const std::string &name = "MvtxApplyHotDead",
0023                    const std::string file = "");
0024   virtual ~MvtxApplyHotDead() {}
0025 
0026   //! module initialization
0027   int Init(PHCompositeNode *topNode) {return 0;}
0028 
0029   //! run initialization
0030   int InitRun(PHCompositeNode *topNode);
0031 
0032   //! event processing
0033   int process_event(PHCompositeNode *topNode);
0034 
0035   //! end of process
0036   int End(PHCompositeNode *topNode) {return 0;}
0037 
0038   //! print pixels to be masked
0039   void PrintHotDeadMap(std::ostream& os = std::cout) const;
0040 
0041 private:
0042 
0043   //! read in the pixels to mask
0044   void ReadHotDeadFile();
0045 
0046   // node tree storage pointers
0047   TrkrHitSetContainer* hits_;
0048 
0049   std::string hdfile_; // hot dead file name
0050   PixelMap hdmap_;
0051 
0052 
0053   PHTimeServer::timer _timer;
0054 };
0055 
0056 #endif