Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:17:12

0001 #ifndef JETBASE_TOWERJETINPUT_H
0002 #define JETBASE_TOWERJETINPUT_H
0003 
0004 #include "Jet.h"
0005 #include "JetInput.h"
0006 
0007 #include <calobase/RawTowerDefs.h>
0008 #include <globalvertex/GlobalVertex.h>
0009 
0010 #include <iostream>  // for cout, ostream
0011 
0012 #include <vector>
0013 // forward declarations
0014 class PHCompositeNode;
0015 class GlobalVertex;
0016 class TowerJetInput : public JetInput
0017 {
0018  public:
0019   TowerJetInput(Jet::SRC input, const std::string &prefix = "TOWERINFO_CALIB");
0020   ~TowerJetInput() override {}
0021 
0022   void identify(std::ostream& os = std::cout) override;
0023 
0024   Jet::SRC get_src() override { return m_input; }
0025 
0026   std::vector<Jet*> get_input(PHCompositeNode* topNode) override;
0027 
0028   void set_GlobalVertexType(GlobalVertex::VTXTYPE type) 
0029   {
0030     m_use_vertextype = true;
0031     m_vertex_type = type;
0032   }
0033 
0034  private:
0035   Jet::SRC m_input;
0036   RawTowerDefs::CalorimeterId geocaloid{RawTowerDefs::CalorimeterId::NONE};
0037   bool m_use_towerinfo {false};
0038   std::string m_towerNodePrefix;
0039   std::string towerName;
0040   bool m_use_vertextype {false};
0041   GlobalVertex::VTXTYPE m_vertex_type = GlobalVertex::UNDEFINED;
0042 };
0043 
0044 #endif