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
TPCHitTrackDisplay.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TPCHitTrackDisplay.h
1
2
3
#ifndef __TPCHitTrackDisplay_H__
4
#define __TPCHitTrackDisplay_H__
5
6
#include <
fun4all/SubsysReco.h
>
7
#include <string>
8
#include <vector>
9
#include <fstream>
10
11
12
//Forward declerations
13
class
PHCompositeNode
;
14
class
TFile;
15
class
TTree;
16
class
RawTowerContainer
;
17
class
RawTowerGeomContainer
;
18
class
TH2F;
19
class
TProfile;
20
class
SvtxTrackMap
;
21
22
23
RawTowerContainer
*
cemctowers
;
24
RawTowerContainer
*
hcalotowers
;
25
RawTowerContainer
*
hcalitowers
;
26
27
RawTowerGeomContainer
*
cemctowergeom
;
28
RawTowerGeomContainer
*
hcalotowergeom
;
29
RawTowerGeomContainer
*
hcalitowergeom
;
30
31
// Writes json file to be used to display an event with:
32
// https://www.sphenix.bnl.gov/edisplay/
33
class
TPCHitTrackDisplay
:
public
SubsysReco
34
{
35
public
:
36
//Default constructor
37
TPCHitTrackDisplay
(
const
std::string
&
name
=
"TPCHitTrackDisplay"
/*, bool &tpcRaw=True*/
);
38
39
//Initialization, called for initialization
40
int
Init
(
PHCompositeNode
*);
41
42
int
InitRun
(
PHCompositeNode
*);
43
44
//Process Event, called for each event
45
int
process_event
(
PHCompositeNode
*);
46
47
//End, write and close files
48
int
EndRun
(
const
int
);
49
50
void
set_pdgcode
(
const
int
thispdgcode) {
_pdgcode
= thispdgcode; }
51
52
// set the ADC cut for displaying trackless clusters
53
void
setCutADC
(
float
value
) {
m_cut_ADC
=
value
; }
54
55
// Boolean for whether or not to include clusters without an associted track above a certain ADC value
56
void
setIncludeTracklessClusters
(
float
value
) {
m_trackless_clusters
=
value
; }
57
58
private
:
59
60
float
m_cut_ADC
;
61
bool
m_trackless_clusters
;
62
63
//Event counter
64
int
_event
;
65
int
_pdgcode
;
66
std::string
_fileName
;
67
68
//bool isRawData;
69
70
//User modules
71
void
SimulationOut
(
PHCompositeNode
*);
72
//void TPCRawOut(PHCompositeNode*);
73
74
};
75
76
#endif //* __TPCHitTrackDisplay_H__ *//
coresoftware
blob
master
offline
packages
TPCHitTrackDisplay
TPCHitTrackDisplay.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:08
using
1.8.2 with
sPHENIX GitHub integration