Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InttCombinedRawDataConverter.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file InttCombinedRawDataConverter.h
1 #ifndef INTT_INTTCOMBINEDRAWDATACONVERTER_H
2 #define INTT_INTTCOMBINEDRAWDATACONVERTER_H
3 
4 #include <fun4all/SubsysReco.h>
5 
6 #include <Rtypes.h> // for ROOT data types
7 
8 #include <map>
9 #include <string>
10 #include <tuple>
11 #include <vector>
12 
13 class PHCompositeNode;
14 class TTree;
15 class TFile;
16 
18 {
19  public:
20  InttCombinedRawDataConverter(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:
32 
33  TFile* file = nullptr;
34  TTree* tree = nullptr;
35 
36  Int_t n_evt = 0;
37  Int_t num_hits = 0;
38 
39  typedef std::map<std::string, std::vector<Int_t>*> Branches_i_t;
40  typedef std::map<std::string, std::vector<Long64_t>*> Branches_l_t;
41  typedef std::map<std::string, std::vector<Double_t>*> Branches_d_t;
45 };
46 
47 #endif // INTT_INTTCOMBINEDRAWDATACONVERTER_H