forked from sPHENIX-Collaboration/coresoftware
/
PHG4MvtxHitReco.h
42 lines (29 loc) · 1.06 KB
/
PHG4MvtxHitReco.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef G4MVTX_PHG4MVTXHITRECO_H
#define G4MVTX_PHG4MVTXHITRECO_H
#include <phparameter/PHParameterContainerInterface.h>
#include <fun4all/SubsysReco.h>
#include <map>
#include <string>
#include <utility> // for pair
class PHCompositeNode;
class PHG4MvtxHitReco : public SubsysReco, public PHParameterContainerInterface
{
public:
explicit PHG4MvtxHitReco(const std::string &name = "PHG4MvtxRECO");
~PHG4MvtxHitReco() override {}
//! module initialization
int InitRun(PHCompositeNode *topNode) override;
//! event processing
int process_event(PHCompositeNode *topNode) override;
void Detector(const std::string &d) { detector = d; }
double get_timing_window_min(const int i) { return tmin_max[i].first; }
double get_timing_window_max(const int i) { return tmin_max[i].second; }
void set_timing_window(const int detid, const double tmin, const double tmax);
void SetDefaultParameters() override;
protected:
std::string detector;
std::string hitnodename;
std::string geonodename;
std::map<int, std::pair<double, double> > tmin_max;
};
#endif