ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
Digitization
MCTruthSimAlgs
src
MergeTrackRecordCollTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MCTRUTHSIMALGS_MERGETRACKRECORDCOLLTOOL_H
6
#define MCTRUTHSIMALGS_MERGETRACKRECORDCOLLTOOL_H
7
8
#include "
PileUpTools/PileUpToolBase.h
"
9
#include "
TrackRecord/TrackRecordCollection.h
"
10
11
#include "Gaudi/Property.h"
12
#include "GaudiKernel/ServiceHandle.h"
13
#include "
PileUpTools/PileUpMergeSvc.h
"
14
15
#include <string>
16
24
class
MergeTrackRecordCollTool
:
public
PileUpToolBase
{
25
public
:
26
MergeTrackRecordCollTool
(
const
std::string&
type
,
27
const
std::string& name,
28
const
IInterface* parent);
30
virtual
StatusCode
initialize
()
override
final
;
33
virtual
StatusCode
prepareEvent
(
const
EventContext& ctx,
unsigned
int
nInputEvents)
override
final
;
36
virtual
StatusCode
mergeEvent
(
const
EventContext& ctx)
override
final
;
39
virtual
StatusCode
processBunchXing
(
int
bunchXing,
40
SubEventIterator
bSubEvents,
41
SubEventIterator
eSubEvents)
override
final
;
44
virtual
bool
toProcess
(
int
bunchXing)
const
override
final
;
48
virtual
StatusCode
processAllSubEvents
(
const
EventContext& ctx)
override
final
;
49
private
:
50
ServiceHandle<PileUpMergeSvc>
m_pMergeSvc
{
this
,
"PileUpMergeSvc"
,
"PileUpMergeSvc"
,
""
};
51
StringProperty
m_trRecCollKey
{
this
,
"TrackRecordCollKey"
,
"MuonEntryLayer"
,
""
};
52
SG::WriteHandleKey<TrackRecordCollection>
m_outputKey
{
this
,
"TrackRecordCollOutputKey"
,
"MuonExitLayer"
,
""
};
53
bool
m_firstSubEvent
{
true
};
54
};
55
#endif
//MCTRUTHSIMALGS_MERGETRACKRECORDCOLLTOOL_H
SubEventIterator
std::vector< xAOD::EventInfo::SubEvent >::const_iterator SubEventIterator
Definition
IPileUpTool.h:22
PileUpMergeSvc.h
the preferred mechanism to access information from the different event stores in a pileup job.
PileUpToolBase.h
helper base class IPileUpTool::toProcess().
TrackRecordCollection.h
MergeTrackRecordCollTool::processAllSubEvents
virtual StatusCode processAllSubEvents(const EventContext &ctx) override final
Propagate the TrackRecordCollections to the output StoreGate.
Definition
MergeTrackRecordCollTool.cxx:81
MergeTrackRecordCollTool::processBunchXing
virtual StatusCode processBunchXing(int bunchXing, SubEventIterator bSubEvents, SubEventIterator eSubEvents) override final
called for each active bunch-crossing to process current SubEvents bunchXing is in ns
Definition
MergeTrackRecordCollTool.cxx:32
MergeTrackRecordCollTool::mergeEvent
virtual StatusCode mergeEvent(const EventContext &ctx) override final
called at the end of the subevts loop.
Definition
MergeTrackRecordCollTool.cxx:68
MergeTrackRecordCollTool::m_outputKey
SG::WriteHandleKey< TrackRecordCollection > m_outputKey
Definition
MergeTrackRecordCollTool.h:52
MergeTrackRecordCollTool::initialize
virtual StatusCode initialize() override final
Initialize tool.
Definition
MergeTrackRecordCollTool.cxx:16
MergeTrackRecordCollTool::m_pMergeSvc
ServiceHandle< PileUpMergeSvc > m_pMergeSvc
Definition
MergeTrackRecordCollTool.h:50
MergeTrackRecordCollTool::m_trRecCollKey
StringProperty m_trRecCollKey
Definition
MergeTrackRecordCollTool.h:51
MergeTrackRecordCollTool::MergeTrackRecordCollTool
MergeTrackRecordCollTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
MergeTrackRecordCollTool.cxx:9
MergeTrackRecordCollTool::m_firstSubEvent
bool m_firstSubEvent
Definition
MergeTrackRecordCollTool.h:53
MergeTrackRecordCollTool::prepareEvent
virtual StatusCode prepareEvent(const EventContext &ctx, unsigned int nInputEvents) override final
called before the subevts loop.
Definition
MergeTrackRecordCollTool.cxx:24
MergeTrackRecordCollTool::toProcess
virtual bool toProcess(int bunchXing) const override final
return false if not interested in certain xing times (in ns) implemented by default in PileUpToolBase...
Definition
MergeTrackRecordCollTool.cxx:74
PileUpToolBase::PileUpToolBase
PileUpToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
PileUpToolBase.cxx:7
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
type
Generated on
for ATLAS Offline Software by
1.17.0