Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHCosmicSiliconPropagator.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHCosmicSiliconPropagator.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef PHCOSMICSILICONPROPAGATOR_H
4 #define PHCOSMICSILICONPROPAGATOR_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 
10 class PHCompositeNode;
11 class ActsGeometry;
12 class TrackSeedContainer;
14 
16 {
17  public:
18  PHCosmicSiliconPropagator(const std::string& name = "PHCosmicSiliconPropagator");
19 
20  ~PHCosmicSiliconPropagator() override;
21 
22  int Init(PHCompositeNode* topNode) override;
23  int InitRun(PHCompositeNode* topNode) override;
24  int process_event(PHCompositeNode* topNode) override;
25  int End(PHCompositeNode* topNode) override;
27  void set_dca_z_cut(float z) { _dca_z_cut = z; }
28  void set_dca_xy_cut(float xy) { _dca_xy_cut = xy; }
29  void zero_field() { m_zeroField = true; }
31 
32  private:
33  int createSeedContainer(TrackSeedContainer*& container, const std::string& container_name, PHCompositeNode* topNode);
34 
40 
41  float m_resetContainer = false;
42  float _dca_z_cut = 5.;
43  float _dca_xy_cut = 5.;
44  bool m_zeroField = false;
45  std::string _track_map_name = "SvtxTrackSeedContainer";
46 };
47 
48 #endif // PHCOSMICSILICONPROPAGATOR_H