EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4CellNtuple.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4CellNtuple.h
1
#ifndef G4HISTOS_G4CELLNTUPLE_H
2
#define G4HISTOS_G4CELLNTUPLE_H
3
4
#include <
fun4all/SubsysReco.h
>
5
6
#include <map>
7
#include <set>
8
#include <string>
9
#include <vector>
10
11
// Forward declerations
12
class
Fun4AllHistoManager
;
13
class
PHCompositeNode
;
14
class
TFile;
15
class
TH1;
16
class
TNtuple;
17
18
class
G4CellNtuple
:
public
SubsysReco
19
{
20
public
:
22
G4CellNtuple
(
const
std::string &
name
=
"G4CellNtuple"
,
const
std::string &
filename
=
"G4CellNtuple.root"
);
23
25
~G4CellNtuple
()
override
;
26
28
int
Init
(
PHCompositeNode
*)
override
;
29
31
int
process_event
(
PHCompositeNode
*)
override
;
32
34
int
End
(
PHCompositeNode
*)
override
;
35
36
void
AddNode
(
const
std::string &
name
,
const
int
detid = 0);
37
38
protected
:
39
int
nblocks
;
40
Fun4AllHistoManager
*
hm
;
41
std::vector<TH1 *>
nhits
;
42
std::vector<TH1 *>
eloss
;
43
// std::vector<TH2 *> nhit_edep;
44
std::string
_filename
;
45
std::set<std::string>
_node_postfix
;
46
std::map<std::string, int>
_detid
;
47
TNtuple *
ntup
;
48
TFile *
outfile
;
49
};
50
51
#endif
fun4all_coresoftware
blob
master
simulation
g4simulation
g4histos
G4CellNtuple.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:49
using
1.8.2 with
EIC GitHub integration