Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CaloAna.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CaloAna.h
1
#ifndef CALOANA_H__
2
#define CALOANA_H__
3
4
#include <
fun4all/SubsysReco.h
>
5
6
// Forward declarations
7
class
Fun4AllHistoManager
;
8
class
PHCompositeNode
;
9
class
TFile;
10
class
TNtuple;
11
12
class
CaloAna
:
public
SubsysReco
13
{
14
public
:
16
CaloAna
(
const
std::string
&
name
=
"CaloAna"
,
const
std::string
&
fname
=
"MyNtuple.root"
);
17
19
virtual
~CaloAna
();
20
22
int
Init
(
PHCompositeNode
*);
23
25
int
process_event
(
PHCompositeNode
*);
26
28
int
End
(
PHCompositeNode
*);
29
30
int
process_g4hits
(
PHCompositeNode
*);
31
int
process_g4cells
(
PHCompositeNode
*);
32
int
process_towers
(
PHCompositeNode
*);
33
int
process_clusters
(
PHCompositeNode
*);
34
35
void
Detector
(
const
std::string
&
name
) {
detector
=
name
; }
36
37
protected
:
38
std::string
detector
;
39
std::string
outfilename
;
40
Fun4AllHistoManager
*
hm
=
nullptr
;
41
TFile *
outfile
=
nullptr
;
42
TNtuple *
g4hitntuple
=
nullptr
;
43
TNtuple *
g4cellntuple
=
nullptr
;
44
TNtuple *
towerntuple
=
nullptr
;
45
TNtuple *
clusterntuple
=
nullptr
;
46
};
47
48
#endif
tutorials
blob
master
CaloAna
src
CaloAna.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:48
using
1.8.2 with
sPHENIX GitHub integration