/
EICG4ZDCNtuple.h
47 lines (36 loc) · 963 Bytes
/
EICG4ZDCNtuple.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef EICG4ZDCNTUPLE_H
#define EICG4ZDCNTUPLE_H
#include <fun4all/SubsysReco.h>
#include <map>
#include <set>
#include <string>
#include <vector>
// Forward declerations
class Fun4AllHistoManager;
class PHCompositeNode;
class TFile;
class TNtuple;
class EICG4ZDCNtuple : public SubsysReco
{
public:
//! constructor
EICG4ZDCNtuple(const std::string &name = "EICG4ZDCNtuple", const std::string &filename = "EICG4ZDCNtuple.root");
//! destructor
~EICG4ZDCNtuple() override;
//! full initialization
int Init(PHCompositeNode *) override;
//! event processing method
int process_event(PHCompositeNode *) override;
//! end of run method
int End(PHCompositeNode *) override;
void AddNode(const std::string &name, const int detid = 0);
protected:
int nblocks;
Fun4AllHistoManager *hm;
std::string _filename;
std::set<std::string> _node_postfix;
std::map<std::string, int> _detid;
TNtuple *ntup;
TFile *outfile;
};
#endif