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
eXevent.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file eXevent.h
1
2
//
3
// Copyright 2017
4
//
5
// This file is part of estarlight.
6
//
7
// starlight is free software: you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation, either version 3 of the License, or
10
// (at your option) any later version.
11
//
12
// starlight is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
16
//
17
// You should have received a copy of the GNU General Public License
18
// along with starlight. If not, see <http://www.gnu.org/licenses/>.
19
//
21
//
22
// File and Version Information:
23
// $Rev:: 263 $: revision of last commit
24
// $Author:: mlomnitz $: author of last commit
25
// $Date:: 02/28/2017 #$: date of last commit
26
//
27
// Description:
28
//
29
// Container for eXEvents
30
//
31
//
33
34
35
#ifndef eXEVENT_H
36
#define eXEVENT_H
37
38
39
#include <vector>
40
41
#include "
starlightconstants.h
"
42
#include "
starlightparticle.h
"
43
44
45
class
eXEvent
46
{
47
public
:
48
49
eXEvent
();
50
eXEvent
(
const
eXEvent
&) =
default
;
51
eXEvent
(
starlightConstants::event
&ev);
52
~eXEvent
();
53
54
void
addParticle
(
starlightParticle
&
part
) {
_particles
.push_back(part); }
55
void
addVertex
(
vector3
&vertex) {
_vertices
.push_back(vertex); }
56
void
addGamma
(
lorentzVector
gamma
,
float
egamma,
float
Q2) {
_gamma
.push_back(gamma);
_gammaEnergies
.push_back(egamma);
_gammaMasses
.push_back(Q2); }
57
void
addSourceElectron
(
lorentzVector
&el){
_sources
.push_back(el); }
58
void
addScatteredTarget
(
lorentzVector
&
target
,
double
t
){
_target
.push_back(target);
_vertext
.push_back(t);}
59
60
const
std::vector<starlightParticle> *
getParticles
()
const
{
return
&
_particles
; }
61
const
std::vector<vector3> *
getVertices
()
const
{
return
&
_vertices
; }
62
const
std::vector<float> *
getGammaEnergies
()
const
{
return
&
_gammaEnergies
; }
63
const
std::vector<lorentzVector> *
getSources
()
const
{
return
&
_sources
;}
64
const
std::vector<float> *
getGammaMasses
()
const
{
return
&
_gammaMasses
; }
65
const
std::vector<lorentzVector> *
getGamma
()
const
{
return
&
_gamma
; }
66
const
std::vector<lorentzVector> *
getTarget
()
const
{
return
&
_target
; }
67
const
std::vector<double> *
getVertext
()
const
{
return
&
_vertext
; }
68
eXEvent
&
operator=
(
const
eXEvent
&);
69
eXEvent
&
operator+
(
const
eXEvent
&);
70
71
void
boost
(
double
rapidity,
double
e_rapiditya);
72
void
reflect
();
73
74
private
:
75
76
std::vector<starlightParticle>
_particles
;
77
std::vector<vector3>
_vertices
;
78
std::vector<lorentzVector>
_sources
;
79
std::vector<lorentzVector>
_target
;
80
std::vector<double>
_vertext
;
81
std::vector<float>
_gammaMasses
;
82
std::vector<float>
_gammaEnergies
;
83
std::vector<lorentzVector>
_gamma
;
84
};
85
86
87
#endif // eXEVENT_H
estarlight
blob
master
include
eXevent.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:38
using
1.8.2 with
EIC GitHub integration