Class Reference for E1039 Core & Analysis Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Fun4AllSRawEventOutputManagerV2.h
Go to the documentation of this file.
1 #ifndef __FUN4ALL_SRAWEVENT_OUTPUT_MANAGER_V2_H__
2 #define __FUN4ALL_SRAWEVENT_OUTPUT_MANAGER_V2_H__
4 #include <string>
5 #include <vector>
6 class TFile;
7 class TTree;
8 class PHCompositeNode;
9 class SRawEvent;
10 class SQEvent;
11 class SQSpillMap;
12 class SQHitVector;
13 
15 {
16  std::string m_file_name;
17  std::string m_tree_name;
18  std::string m_branch_name;
19  TFile* m_file;
20  TTree* m_tree;
21  SRawEvent* m_sraw;
22 
23  SQEvent* m_evt;
24  SQSpillMap* m_sp_map;
25  SQHitVector* m_hit_vec;
26  SQHitVector* m_trig_hit_vec;
27 
28  public:
29  Fun4AllSRawEventOutputManagerV2(const std::string &myname="SRAWEVENTOUT", const std::string &file_name="srawevent.root");
31 
32  void SetTreeName (const std::string name) { m_tree_name = name; }
33  void SetBranchName(const std::string name) { m_branch_name = name; }
34 
35  virtual int Write(PHCompositeNode *startNode);
36 
37  protected:
38  void OpenFile();
39  void CloseFile();
40 };
41 
42 #endif /* __FUN4ALL_SRAWEVENT_OUTPUT_MANAGER_V2_H__ */
virtual int Write(PHCompositeNode *startNode)
write starting from given node
Fun4AllSRawEventOutputManagerV2(const std::string &myname="SRAWEVENTOUT", const std::string &file_name="srawevent.root")
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
An SQ interface class to hold a list of SQSpill objects.
Definition: SQSpillMap.h:19