Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
blob
master
calibrations
generators
offline
simulation
g4simulation
g4bbc
g4calo
g4centrality
g4decayer
g4detectors
g4epd
g4eval
g4gdml
g4histos
g4ihcal
g4intt
g4jets
g4main
CosmicSpray.cc
CosmicSpray.h
EcoMug.h
EicEventHeader.cc
EicEventHeader.h
EicEventHeaderLinkDef.h
EicEventHeaderv1.cc
EicEventHeaderv1.h
EicEventHeaderv1LinkDef.h
Fun4AllDstPileupInputManager.cc
Fun4AllDstPileupInputManager.h
Fun4AllDstPileupMerger.cc
Fun4AllDstPileupMerger.h
Fun4AllMessenger.cc
Fun4AllMessenger.h
Fun4AllSingleDstPileupInputManager.cc
Fun4AllSingleDstPileupInputManager.h
G4TBFieldMessenger.cc
G4TBFieldMessenger.hh
G4TBMagneticFieldSetup.cc
G4TBMagneticFieldSetup.hh
HepMCCompress.cc
HepMCCompress.h
HepMCNodeReader.cc
HepMCNodeReader.h
PHBBox.h
PHG4ColorDefs.h
PHG4ConsistencyCheck.cc
PHG4ConsistencyCheck.h
PHG4Detector.cc
PHG4Detector.h
PHG4DisplayAction.cc
PHG4DisplayAction.h
PHG4EtaParameterization.cc
PHG4EtaParameterization.h
PHG4EtaPhiParameterization.cc
PHG4EtaPhiParameterization.h
PHG4EventAction.h
PHG4EventHeader.h
PHG4EventHeaderLinkDef.h
PHG4EventHeaderv1.cc
PHG4EventHeaderv1.h
PHG4EventHeaderv1LinkDef.h
PHG4HeadReco.cc
PHG4HeadReco.h
PHG4Hit.cc
PHG4Hit.h
PHG4HitContainer.cc
PHG4HitContainer.h
PHG4HitContainerLinkDef.h
PHG4HitDefs.cc
PHG4HitDefs.h
PHG4HitEval.cc
PHG4HitEval.h
PHG4HitEvalLinkDef.h
PHG4HitLinkDef.h
PHG4HitReadBack.cc
PHG4HitReadBack.h
PHG4Hitv1.cc
PHG4Hitv1.h
PHG4Hitv1LinkDef.h
PHG4InEvent.cc
PHG4InEvent.h
PHG4InEventCompress.cc
PHG4InEventCompress.h
PHG4InEventLinkDef.h
PHG4InEventReadBack.cc
PHG4InEventReadBack.h
PHG4InputFilter.cc
PHG4InputFilter.h
PHG4IonGun.cc
PHG4IonGun.h
PHG4MagneticField.cc
PHG4MagneticField.h
PHG4Particle.cc
PHG4Particle.h
PHG4ParticleGenerator.cc
PHG4ParticleGenerator.h
PHG4ParticleGeneratorBase.cc
PHG4ParticleGeneratorBase.h
PHG4ParticleGeneratorD0.cc
PHG4ParticleGeneratorD0.h
PHG4ParticleGeneratorVectorMeson.cc
PHG4ParticleGeneratorVectorMeson.h
PHG4ParticleGun.cc
PHG4ParticleGun.h
PHG4ParticleLinkDef.h
PHG4Particlev1.cc
PHG4Particlev1.h
PHG4Particlev1LinkDef.h
PHG4Particlev2.cc
PHG4Particlev2.h
PHG4Particlev2LinkDef.h
PHG4Particlev3.cc
PHG4Particlev3.h
PHG4Particlev3LinkDef.h
PHG4PhenixDetector.cc
PHG4PhenixDetector.h
PHG4PhenixDisplayAction.cc
PHG4PhenixDisplayAction.h
PHG4PhenixEventAction.cc
PHG4PhenixEventAction.h
PHG4PhenixStackingAction.cc
PHG4PhenixStackingAction.h
PHG4PhenixSteppingAction.cc
PHG4PhenixSteppingAction.h
PHG4PhenixTrackingAction.cc
PHG4PhenixTrackingAction.h
PHG4PileupGenerator.cc
PHG4PileupGenerator.h
PHG4PrimaryGeneratorAction.cc
PHG4PrimaryGeneratorAction.h
PHG4Reco.cc
PHG4Reco.h
PHG4RegionInformation.cc
PHG4RegionInformation.h
PHG4ScoringManager.cc
PHG4ScoringManager.h
PHG4Shower.cc
PHG4Shower.h
PHG4ShowerLinkDef.h
PHG4Showerv1.cc
PHG4Showerv1.h
PHG4Showerv1LinkDef.h
PHG4SimpleEventGenerator.cc
PHG4SimpleEventGenerator.h
PHG4StackingAction.cc
PHG4StackingAction.h
PHG4SteppingAction.cc
PHG4SteppingAction.h
PHG4Subsystem.cc
PHG4Subsystem.h
PHG4TrackingAction.h
PHG4TrackUserInfoV1.cc
PHG4TrackUserInfoV1.h
PHG4TruthEventAction.cc
PHG4TruthEventAction.h
PHG4TruthInfoContainer.cc
PHG4TruthInfoContainer.h
PHG4TruthInfoContainerLinkDef.h
PHG4TruthSubsystem.cc
PHG4TruthSubsystem.h
PHG4TruthTrackingAction.cc
PHG4TruthTrackingAction.h
PHG4UIsession.cc
PHG4UIsession.h
PHG4Units.h
PHG4UserPrimaryParticleInformation.h
PHG4Utils.cc
PHG4Utils.h
PHG4VertexSelection.cc
PHG4VertexSelection.h
PHG4VtxPoint.cc
PHG4VtxPoint.h
PHG4VtxPointLinkDef.h
PHG4VtxPointv1.cc
PHG4VtxPointv1.h
PHG4VtxPointv1LinkDef.h
ReadEICFiles.cc
ReadEICFiles.h
g4micromegas
g4mvtx
g4ohcal
g4tpc
g4trackfastsim
g4tracking
g4vertex
g4waveformsim
validation
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
EicEventHeaderv1.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EicEventHeaderv1.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef EICEVENTHEADERV1_H
4
#define EICEVENTHEADERV1_H
5
6
#include "
EicEventHeader.h
"
7
8
#include <cstdint>
9
#include <iostream>
10
#include <map>
11
12
class
EicEventHeaderv1
:
public
EicEventHeader
13
{
14
public
:
15
EicEventHeaderv1
() {}
16
explicit
EicEventHeaderv1
(
const
EicEventHeader
*eicevt);
17
~EicEventHeaderv1
()
override
{}
18
19
// void identify(std::ostream& os = std::cout) const;
20
void
Reset
()
override
;
21
22
// property relates methods
23
bool
has_property
(
const
PROPERTY
prop_id)
const override
;
24
float
get_property_float
(
const
PROPERTY
prop_id)
const override
;
25
int
get_property_int
(
const
PROPERTY
prop_id)
const override
;
26
unsigned
int
get_property_uint
(
const
PROPERTY
prop_id)
const override
;
27
void
set_property
(
const
PROPERTY
prop_id,
const
float
value
)
override
;
28
void
set_property
(
const
PROPERTY
prop_id,
const
int
value
)
override
;
29
void
set_property
(
const
PROPERTY
prop_id,
const
unsigned
int
value
)
override
;
30
31
// Generator specific values
32
void
set_eventgenerator_type
(
const
int
i
)
override
{
set_property
(
prop_eventgen
, i); }
33
int
get_eventgenerator_type
()
const override
{
return
get_property_int
(
prop_eventgen
); }
34
35
// Milou
36
void
set_milou_weight
(
const
float
val)
override
{
set_property
(
prop_milou_weight
, val); }
37
float
get_milou_weight
()
const override
{
return
get_property_float
(
prop_milou_weight
); }
38
void
set_milou_trueX
(
const
float
val)
override
{
set_property
(
prop_milou_truex
, val); }
39
float
get_milou_trueX
()
const override
{
return
get_property_float
(
prop_milou_truex
); }
40
void
set_milou_trueQ2
(
const
float
val)
override
{
set_property
(
prop_milou_trueq2
, val); }
41
float
get_milou_trueQ2
()
const override
{
return
get_property_float
(
prop_milou_trueq2
); }
42
43
// DEMP
44
void
set_demp_weight
(
const
float
val)
override
{
set_property
(
prop_demp_weight
, val); }
45
float
get_demp_weight
()
const override
{
return
get_property_float
(
prop_demp_weight
); }
46
47
protected
:
48
unsigned
int
get_property_nocheck
(
const
PROPERTY
prop_id)
const override
;
49
void
set_property_nocheck
(
const
PROPERTY
prop_id,
const
unsigned
int
ui)
override
{
prop_map
[prop_id] = ui; }
50
52
typedef
uint8_t
prop_id_t
;
53
typedef
uint32_t
prop_storage_t
;
54
typedef
std::map<prop_id_t, prop_storage_t>
prop_map_t
;
56
union
u_property
{
57
float
fdata
;
58
int32_t
idata
;
59
uint32_t
uidata
;
60
61
u_property
(int32_t
in
)
62
:
idata
(in)
63
{
64
}
65
u_property
(uint32_t
in
)
66
:
uidata
(in)
67
{
68
}
69
u_property
(
float
in
)
70
:
fdata
(in)
71
{
72
}
73
u_property
()
74
:
uidata
(0)
75
{
76
}
77
78
prop_storage_t
get_storage
()
const
{
return
uidata
; }
79
};
80
82
prop_map_t
prop_map
;
83
84
ClassDefOverride(
EicEventHeaderv1
, 1)
85
};
86
87
#endif
coresoftware
blob
master
simulation
g4simulation
g4main
EicEventHeaderv1.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:15
using
1.8.2 with
sPHENIX GitHub integration