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
TrackerEventDisplay.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackerEventDisplay.h
1
#ifndef EVENTDISPLAY_TRACKEREVENTDISPLAY_H
2
#define EVENTDISPLAY_TRACKEREVENTDISPLAY_H
3
4
#include <
fun4all/SubsysReco.h
>
5
#include <
trackbase/TrkrDefs.h
>
6
7
#include <string>
8
#include <set>
9
#include <fstream>
10
11
class
PHCompositeNode
;
12
class
TrkrCluster
;
13
14
class
TrackerEventDisplay
:
public
SubsysReco
15
{
16
public
:
17
TrackerEventDisplay
(
const
std::string
&
name
=
"TRACKEREVENTDISPLAY"
,
18
const
std::string
&
filename
=
"./TrackerCosmicsDisplay_25926"
,
//Don't include .root
19
const
std::string
&
runnumber
=
"25926"
,
20
const
std::string
&date =
"2023-08-23"
);
21
~TrackerEventDisplay
()
override
;
22
23
int
Init
(
PHCompositeNode
*topNode)
override
;
24
int
InitRun
(
PHCompositeNode
*topNode)
override
;
25
int
process_event
(
PHCompositeNode
*topNode)
override
;
26
int
End
(
PHCompositeNode
*topNode)
override
;
27
28
void
set_first_event
(
int
value
) {
_ievent
=
value
; }
29
void
makeHitsJson
(
bool
value
) {
_hit
=
value
; }
30
void
makeClustersJson
(
bool
value
) {
_cluster
=
value
; }
31
32
private
:
33
std::ofstream
outdata
;
34
35
bool
_hit
;
36
bool
_cluster
;
37
unsigned
int
_ievent
;
38
std::string
_filename
;
39
std::string
_runnumber
;
40
std::string
_date
;
41
42
double
AdcClockPeriod
= 53.0;
// ns
43
44
// output subroutines
45
void
makeJsonFile
(
PHCompositeNode
*topNode);
46
};
47
48
#endif // EVENTDISPLAY_TRACKEREVENTDISPLAY_H
coresoftware
blob
master
offline
QA
EventDisplay
TrackerEventDisplay.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:11
using
1.8.2 with
sPHENIX GitHub integration