ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4MvtxHitReco.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4MvtxHitReco.h
1 #ifndef G4MVTX_PHG4MVTXHITRECO_H
2 #define G4MVTX_PHG4MVTXHITRECO_H
3 
4 #include <phparameter/PHParameterContainerInterface.h>
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <map>
9 #include <string>
10 #include <utility> // for pair
11 
12 class PHCompositeNode;
13 
15 {
16  public:
17  explicit PHG4MvtxHitReco(const std::string &name = "PHG4MvtxRECO");
18 
19  ~PHG4MvtxHitReco() override {}
20 
22  int InitRun(PHCompositeNode *topNode) override;
23 
25  int process_event(PHCompositeNode *topNode) override;
26 
27  void Detector(const std::string &d) { detector = d; }
28 
29  double get_timing_window_min(const int i) { return tmin_max[i].first; }
30  double get_timing_window_max(const int i) { return tmin_max[i].second; }
31  void set_timing_window(const int detid, const double tmin, const double tmax);
32 
33  void SetDefaultParameters() override;
34 
35  protected:
36  std::string detector;
37  std::string hitnodename;
38  std::string geonodename;
39  std::map<int, std::pair<double, double> > tmin_max;
40 };
41 
42 #endif