Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:18:07

0001 #ifndef TPCHITTRACKDISPLAY_TPCHITTRACKDISPLAY_H
0002 #define TPCHITTRACKDISPLAY_TPCHITTRACKDISPLAY_H
0003 
0004 #include <fun4all/SubsysReco.h>
0005 
0006 #include <string>
0007 
0008 // Forward declerations
0009 class PHCompositeNode;
0010 
0011 // Writes json file to be used to display an event with:
0012 // https://www.sphenix.bnl.gov/edisplay/
0013 class TPCHitTrackDisplay : public SubsysReco
0014 {
0015  public:
0016   // Default constructor
0017   TPCHitTrackDisplay(const std::string &name = "TPCHitTrackDisplay" /*, bool &tpcRaw=True*/);
0018 
0019   // Process Event, called for each event
0020   int process_event(PHCompositeNode *) override;
0021 
0022   void set_pdgcode(const int thispdgcode) { _pdgcode = thispdgcode; }
0023 
0024   // set the ADC cut for displaying trackless clusters
0025   void setCutADC(float value) { m_cut_ADC = value; }
0026 
0027   // Boolean for whether or not to include clusters without an associted track above a certain ADC value
0028   void setIncludeTracklessClusters(float value) { m_trackless_clusters = value; }
0029 
0030  private:
0031   float m_cut_ADC;
0032   bool m_trackless_clusters;
0033 
0034   // Event counter
0035   int _event{0};
0036   int _pdgcode{0};
0037   std::string _fileName;
0038 
0039   // bool isRawData;
0040 
0041   // User modules
0042   void SimulationOut(PHCompositeNode *);
0043   // void TPCRawOut(PHCompositeNode*);
0044 };
0045 
0046 #endif  //* __TPCHitTrackDisplay_H__ *//