Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SyncReco.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SyncReco.h
1 #ifndef FFAMODULES_SYNCRECO_H
2 #define FFAMODULES_SYNCRECO_H
3 
4 #include <fun4all/SubsysReco.h>
5 
6 #include <string>
7 
8 class PHCompositeNode;
9 
10 class SyncReco : public SubsysReco
11 {
12  public:
13  SyncReco(const std::string &name = "SYNC");
14  ~SyncReco() override {}
15 
16  int Init(PHCompositeNode *topNode) override;
17  int InitRun(PHCompositeNode *topNode) override;
18  int process_event(PHCompositeNode *topNode) override;
19 
20  void SegmentNumber(int i) { forced_segment = i; }
21 
22  private:
23  int CreateNodeTree(PHCompositeNode *topNode);
24  // just if we need to override the segment for e.g. embedding
25  // where we want to reuse hijing files which normally set
26  // the segment number
27  int forced_segment = -1;
28 };
29 
30 #endif /* FFAMODULES_SYNCRECO_H */