EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackFastSimEval.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackFastSimEval.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef _TRACK_FAST_SIM_EVAL_
4 #define _TRACK_FAST_SIM_EVAL_
5 
6 #include <string>
7 
8 #include <fun4all/SubsysReco.h>
9 
10 class PHCompositeNode;
11 class TH1D;
12 
13 class TrackFastSimEval : public SubsysReco {
14  public:
15  // Default constructor;
16  TrackFastSimEval(const std::string& name = "TrackFastSimEval",
17  const std::string& filename = "g4eval.root",
18  const std::string& trackmapname = "SvtxTrackMap");
19 
20  // Initialization;
21  int Init(PHCompositeNode*);
22 
23  // Process Event;
25 
26  // End, write and close files;
27  int End(PHCompositeNode*);
28 
29  // Change output filename;
30  void set_filename(const char* file) { if (file) _outfile_name = file; };
31 
32  private:
33  // Output filename;
34  std::string _outfile_name;
35 
36  // Name of SvtxTrackMap collection;
37  std::string _trackmapname;
38 
39  // Event counter;
40  int _event;
41 
42  // 1D dp/p histogram;
44 };
45 
46 #endif