|
ATLAS Offline Software
|
#include <Thin_vtxTrk.h>
|
| Thin_vtxTrk (const std::string &t, const std::string &n, const IInterface *p) |
|
| ~Thin_vtxTrk () |
|
StatusCode | initialize () |
|
StatusCode | finalize () |
|
virtual StatusCode | doThinning () const |
| Pass the thinning service
More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 29 of file Thin_vtxTrk.h.
◆ StoreGateSvc_t
◆ Thin_vtxTrk()
DerivationFramework::Thin_vtxTrk::Thin_vtxTrk |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
Definition at line 19 of file Thin_vtxTrk.cxx.
28 declareInterface<DerivationFramework::IThinningTool>(
this);
◆ ~Thin_vtxTrk()
DerivationFramework::Thin_vtxTrk::~Thin_vtxTrk |
( |
| ) |
|
|
default |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ doThinning()
StatusCode DerivationFramework::Thin_vtxTrk::doThinning |
( |
| ) |
const |
|
virtual |
Pass the thinning service
Implements DerivationFramework::IThinningTool.
Definition at line 90 of file Thin_vtxTrk.cxx.
92 const EventContext& ctx = Gaudi::Hive::currentContext();
97 unsigned int nTracks = importedTrackParticles->size();
98 if (nTracks==0)
return StatusCode::SUCCESS;
101 std::vector<bool> trackMask(nTracks,
false);
106 std::unordered_map<std::string, SG::ReadDecorHandle<xAOD::VertexContainer, Char_t>> handles;
109 auto it = handles.emplace(std::piecewise_construct, std::forward_as_tuple(
key.key()), std::forward_as_tuple(
key, ctx));
110 if(!(*
it.first).second.isPresent())
return StatusCode::FAILURE;
116 std::vector<bool> vtxMask(vertexContainer->size(),
false);
120 for(
auto vtxItr = vertexContainer->begin(); vtxItr!=vertexContainer->end(); ++vtxItr, ++
k) {
126 for(std::vector<std::string>::const_iterator flagItr =
m_passFlags.begin(); flagItr!=
m_passFlags.end(); ++flagItr) {
127 std::string lookupstr =
name.key() +
'.' + (*flagItr);
128 const auto& handle = handles.at(lookupstr);
129 if(handle(*vtx) != 0) {
144 TLorentzVector centreCandidate;
149 for(
uint i=0;
i<nTracks; ++
i) {
159 for(
uint i=0;
i<nTracks; ++
i) {
175 vertexContainer.keep(vtxMask);
184 importedTrackParticles.keep(trackMask);
187 return StatusCode::SUCCESS;
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
StatusCode DerivationFramework::Thin_vtxTrk::finalize |
( |
| ) |
|
◆ initialize()
StatusCode DerivationFramework::Thin_vtxTrk::initialize |
( |
| ) |
|
Definition at line 42 of file Thin_vtxTrk.cxx.
50 ATH_MSG_INFO(
"IgnoreFlags is set, all vertices in the container will be kept");
56 return StatusCode::FAILURE;
59 ATH_MSG_INFO(
"Vertices must pass the \"" << *itr <<
"\" selection");
77 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
static const InterfaceID& DerivationFramework::IThinningTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
AlgTool interface methods.
Definition at line 31 of file IThinningTool.h.
31 {
return IID_IThinningTool; }
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_acceptanceR
double DerivationFramework::Thin_vtxTrk::m_acceptanceR |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_noFlags
bool DerivationFramework::Thin_vtxTrk::m_noFlags |
|
private |
◆ m_npass
std::atomic<unsigned int> DerivationFramework::Thin_vtxTrk::m_npass |
|
private |
◆ m_ntot
std::atomic<unsigned int> DerivationFramework::Thin_vtxTrk::m_ntot |
|
mutableprivate |
◆ m_nVtxPass
std::atomic<unsigned int> DerivationFramework::Thin_vtxTrk::m_nVtxPass |
|
private |
◆ m_nVtxTot
std::atomic<unsigned int> DerivationFramework::Thin_vtxTrk::m_nVtxTot |
|
mutableprivate |
◆ m_passArray
◆ m_passFlags
std::vector<std::string> DerivationFramework::Thin_vtxTrk::m_passFlags |
|
private |
◆ m_streamName
StringProperty DerivationFramework::Thin_vtxTrk::m_streamName { this, "StreamName", "", "Name of the stream being thinned" } |
|
private |
◆ m_thinTracks
bool DerivationFramework::Thin_vtxTrk::m_thinTracks |
|
private |
◆ m_trackParticleContainerName
◆ m_varHandleArraysDeclared
◆ m_vertexContainerName
◆ m_vhka
The documentation for this class was generated from the following files:
std::atomic< unsigned int > m_ntot
size_t nTrackParticles() const
Get the number of tracks associated with this vertex.
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
SG::ReadDecorHandleKeyArray< xAOD::VertexContainer > m_passArray
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerName
Handle for requesting thinning for a data object.
virtual void setOwner(IDataHandleHolder *o)=0
std::atomic< unsigned int > m_nVtxPass
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
std::vector< std::string > m_passFlags
const TrackParticle * trackParticle(size_t i) const
Get the pointer to a given track that was used in vertex reco.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::atomic< unsigned int > m_nVtxTot
SG::ThinningHandleKeyArray< xAOD::VertexContainer > m_vertexContainerName
std::atomic< unsigned int > m_npass
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Class describing a Vertex.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
StringProperty m_streamName
Class describing a TrackParticle.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>