Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InttRawDataConverter.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file InttRawDataConverter.h
1 #ifndef INTT_RAW_DATA_CONVERTER_H
2 #define INTT_RAW_DATA_CONVERTER_H
3 
4 #include "InttMapping.h"
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <Rtypes.h>
9 
10 #include <map>
11 #include <string>
12 
13 class PHCompositeNode;
14 class TFile;
15 class TTree;
16 
18 {
19  public:
20  InttRawDataConverter(std::string const& name = "InttRawDataConverter");
21 
22  int SetOutputFile(std::string const&);
23  int WriteOutputFile();
24 
25  int Init(PHCompositeNode*) override;
26  int InitRun(PHCompositeNode*) override;
27  int process_event(PHCompositeNode*) override;
28  int End(PHCompositeNode*) override;
29 
30  private:
31  TFile* file = nullptr;
32  TTree* tree = nullptr;
33 
34  Int_t n_evt = -1;
35  Int_t num_hits = 0;
36  Long64_t gtm_bco = 0;
37  Int_t flx_svr = 0;
38 
41 
42  typedef std::map<std::string, Int_t*> Branches_t;
44 };
45 
46 #endif // INTT_RAW_DATA_CONVERTER_H