Class Reference for E1039 Core & Analysis Software
GenEmbeddingDataNim4.h
Go to the documentation of this file.
1 #ifndef _GEN_EMBEDDING_DATA_NIM4__H_
2 #define _GEN_EMBEDDING_DATA_NIM4__H_
3 #include <fun4all/SubsysReco.h>
4 #include "TreeData.h"
5 class TFile;
6 class TTree;
7 class SQEvent;
8 class SQHitVector;
9 
12  std::string m_list_name;
13  std::vector<int> m_list_spill_id;
14 
16  SQEvent * mi_evt;
17  SQHitVector * mi_vec_hit;
18 
20  std::string m_name_file;
21  std::string m_name_tree;
22  TFile* mo_file;
23  TTree* mo_tree;
24  EmbQAData mo_qa_data;
25 
26  public:
27  GenEmbeddingDataNim4(const std::string list_name, const std::string name="GenEmbeddingDataNim4");
28  virtual ~GenEmbeddingDataNim4() {;}
29  int Init(PHCompositeNode *topNode);
30  int InitRun(PHCompositeNode *topNode);
31  int process_event(PHCompositeNode *topNode);
32  int End(PHCompositeNode *topNode);
33 
34  void SetFileName (const std::string name) { m_name_file = name; }
35  void SetTreeName (const std::string name) { m_name_tree = name; }
36  std::string GetFileName () const { return m_name_file; }
37  std::string GetTreeName () const { return m_name_tree; }
38 
39 protected:
40  void ReadSpillList(const int run_id);
41 };
42 
43 #endif // _GEN_EMBEDDING_DATA_NIM4__H_
An example class to analyze the simulated uDST file.
std::string GetTreeName() const
int Init(PHCompositeNode *topNode)
void SetTreeName(const std::string name)
void ReadSpillList(const int run_id)
void SetFileName(const std::string name)
int End(PHCompositeNode *topNode)
Called at the end of all processing.
GenEmbeddingDataNim4(const std::string list_name, const std::string name="GenEmbeddingDataNim4")
int InitRun(PHCompositeNode *topNode)
int process_event(PHCompositeNode *topNode)
std::string GetFileName() const
An SQ interface class to hold one event header.
Definition: SQEvent.h:17
An SQ interface class to hold a list of SQHit objects.
Definition: SQHitVector.h:32