ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
TrackRecordGenerator
TrackRecordGenerator
TrackRecordGenerator.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
14
15
#ifndef TRACKRECORDGENERATOR_H
16
#define TRACKRECORDGENERATOR_H
17
18
#include "
GeneratorModules/GenModule.h
"
19
#include "
GeneratorModules/GenData.h
"
20
#include <memory>
21
22
// Members
23
#include "CLHEP/Vector/LorentzVector.h"
24
#include "
AtlasHepMC/Polarization.h
"
25
26
#include <vector>
27
#include <string>
28
29
class
TrackRecordGenerator
:
public
GenModule
{
30
public
:
31
TrackRecordGenerator
(
const
std::string& name, ISvcLocator* pSvcLocator);
32
virtual
~TrackRecordGenerator
();
33
virtual
StatusCode
callGenerator
();
34
virtual
StatusCode
fillEvt
(
HepMC::GenEvent
* evt);
35
36
private
:
37
38
// Event record holders
39
int
m_events
;
40
std::vector<int>
m_pdgCode
;
41
std::vector<CLHEP::HepLorentzVector>
m_fourPos
;
42
std::vector<CLHEP::HepLorentzVector>
m_fourMom
;
43
CLHEP::Hep3Vector
m_center
;
44
std::vector<HepMC::Polarization>
m_polarization
;
45
46
// Options for track records
47
double
m_smearTR
;
48
double
m_smearTRp
;
49
std::string
m_recordName
;
50
bool
m_stopParticles
;
51
float
m_stopped_tminus
,
m_stopped_tplus
;
52
bool
m_add_cL
;
53
std::shared_ptr<GenData>
m_gendata
{
nullptr
};
54
};
55
56
#endif
GenData.h
GenModule.h
Polarization.h
GenModule::GenModule
GenModule(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
GenModule.cxx:14
TrackRecordGenerator::~TrackRecordGenerator
virtual ~TrackRecordGenerator()
Definition
TrackRecordGenerator.cxx:43
TrackRecordGenerator::m_stopParticles
bool m_stopParticles
Stop particles before simulation.
Definition
TrackRecordGenerator.h:50
TrackRecordGenerator::m_smearTR
double m_smearTR
Amount by which to smear TR position.
Definition
TrackRecordGenerator.h:47
TrackRecordGenerator::fillEvt
virtual StatusCode fillEvt(HepMC::GenEvent *evt)
For filling the HepMC event object.
Definition
TrackRecordGenerator.cxx:179
TrackRecordGenerator::m_stopped_tplus
float m_stopped_tplus
Bounds for random time.
Definition
TrackRecordGenerator.h:51
TrackRecordGenerator::m_fourMom
std::vector< CLHEP::HepLorentzVector > m_fourMom
Definition
TrackRecordGenerator.h:42
TrackRecordGenerator::m_polarization
std::vector< HepMC::Polarization > m_polarization
Definition
TrackRecordGenerator.h:44
TrackRecordGenerator::m_events
int m_events
Definition
TrackRecordGenerator.h:39
TrackRecordGenerator::m_fourPos
std::vector< CLHEP::HepLorentzVector > m_fourPos
Definition
TrackRecordGenerator.h:41
TrackRecordGenerator::m_recordName
std::string m_recordName
TrackRecord collection name.
Definition
TrackRecordGenerator.h:49
TrackRecordGenerator::m_pdgCode
std::vector< int > m_pdgCode
Definition
TrackRecordGenerator.h:40
TrackRecordGenerator::TrackRecordGenerator
TrackRecordGenerator(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TrackRecordGenerator.cxx:25
TrackRecordGenerator::m_smearTRp
double m_smearTRp
Amount by which to smear TR momentum.
Definition
TrackRecordGenerator.h:48
TrackRecordGenerator::m_gendata
std::shared_ptr< GenData > m_gendata
Definition
TrackRecordGenerator.h:53
TrackRecordGenerator::callGenerator
virtual StatusCode callGenerator()
For calling the generator on each iteration of the event loop.
Definition
TrackRecordGenerator.cxx:47
TrackRecordGenerator::m_stopped_tminus
float m_stopped_tminus
Definition
TrackRecordGenerator.h:51
TrackRecordGenerator::m_center
CLHEP::Hep3Vector m_center
Definition
TrackRecordGenerator.h:43
TrackRecordGenerator::m_add_cL
bool m_add_cL
For stopped particles, add c*L to the time.
Definition
TrackRecordGenerator.h:52
HepMC::GenEvent
HepMC3::GenEvent GenEvent
Definition
GenEvent.h:39
Generated on
for ATLAS Offline Software by
1.17.0