Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:54

0001 /**
0002  * @file mvtx/MvtxHitPruner.h
0003  * @author Tony Frawley
0004  * @date July 2022
0005  * @brief Pruner to handle multiple copies of hits for the MVTX
0006  */
0007 #ifndef MVTX_MVTXHITPRUNER_H
0008 #define MVTX_MVTXHITPRUNER_H
0009 
0010 #include <fun4all/SubsysReco.h>
0011 #include <trackbase/TrkrDefs.h>
0012 
0013 #include <string>  // for string
0014 #include <utility>
0015 class PHCompositeNode;
0016 class TrkrHit;
0017 class TrkrHitSetContainer;
0018 
0019 /**
0020  * @brief Hit pruner for the MVTX
0021  */
0022 class MvtxHitPruner : public SubsysReco
0023 {
0024  public:
0025 
0026   //! constructor
0027   MvtxHitPruner(const std::string &name = "MvtxHitPruner");
0028 
0029   //! destructor
0030   ~MvtxHitPruner() override = default;
0031 
0032   //! module initialization
0033   int Init(PHCompositeNode * /*topNode*/) override { return 0; }
0034 
0035   //! run initialization
0036   int InitRun(PHCompositeNode * /*topNode*/) override;
0037 
0038   //! event processing
0039   int process_event(PHCompositeNode * /*topNode*/) override;
0040 
0041   //! end of process
0042   int End(PHCompositeNode * /*topNode*/) override { return 0; }
0043 
0044  private:
0045   // node tree storage pointers
0046   TrkrHitSetContainer *m_hits = nullptr;
0047 };
0048 
0049 #endif  // MVTX_MVTXHITPRUNER_H