![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
#include <ConversionFinder.h>
|
| ConversionFinder (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~ConversionFinder () |
|
StatusCode | initialize () |
|
StatusCode | finalize () |
|
StatusCode | execute () |
|
void | resetStatistics () |
|
void | analyzeResults (xAOD::VertexContainer *) |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. 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 | 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 26 of file ConversionFinder.h.
◆ StoreGateSvc_t
◆ ConversionFinder()
InDet::ConversionFinder::ConversionFinder |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~ConversionFinder()
InDet::ConversionFinder::~ConversionFinder |
( |
| ) |
|
|
default |
◆ analyzeResults()
Definition at line 197 of file ConversionFinder.cxx.
200 const auto *trackParticle = fz->trackParticle(
i );
201 if(!trackParticle)
continue;
210 if(ncl>0) isSi1 =
true;
211 if(ncl==0 && ntrt>0) isTrt1 =
true;
214 if(ncl>0) isSi2 =
true;
215 if(ncl==0 && ntrt>0) isTrt2 =
true;
219 if(numTracksPerVertex==2){
224 if(numTracksPerVertex==1){
◆ 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);
◆ 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.
◆ 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.
◆ 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()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode InDet::ConversionFinder::execute |
( |
| ) |
|
Definition at line 130 of file ConversionFinder.cxx.
134 return StatusCode::SUCCESS;
137 cleanup_pair conversions(
m_VertexFinderTool->findVertex ( trackParticleCollection.cptr() ) );
139 if (!conversions.first || !conversions.second)
142 return StatusCode::SUCCESS;
144 ATH_MSG_DEBUG(
"New conversion container size: " << conversions.first->size());
152 float etaAtCalo = -9999., phiAtCalo = -9999.;
157 for (
unsigned int i = 0;
i <
vertex->nTrackParticles(); ++
i){
173 acceta(*
vertex) = etaAtCalo;
174 accphi(*
vertex) = phiAtCalo;
181 if (
output.record( std::unique_ptr<xAOD::VertexContainer>(conversions.releaseFirst()) ,
182 std::unique_ptr<xAOD::VertexAuxContainer>(conversions.releaseSecond())).isFailure()) {
184 return StatusCode::FAILURE;
187 return StatusCode::SUCCESS;
192 for (
auto fz : *convContainer){
194 int numTracksPerVertex = fz->nTrackParticles();
◆ 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
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode InDet::ConversionFinder::finalize |
( |
| ) |
|
◆ initialize()
StatusCode InDet::ConversionFinder::initialize |
( |
| ) |
|
Definition at line 52 of file ConversionFinder.cxx.
63 std::cout<<
"------------------------------------------------------------"<<std::endl;
◆ 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.
◆ 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()
◆ resetStatistics()
void InDet::ConversionFinder::resetStatistics |
( |
| ) |
|
Definition at line 93 of file ConversionFinder.cxx.
99 class cleanup_pair :
public std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*>
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ 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_detStore
◆ m_doExtrapolation
bool InDet::ConversionFinder::m_doExtrapolation |
|
protected |
◆ m_Double_Conversions
long InDet::ConversionFinder::m_Double_Conversions {} |
|
protected |
◆ m_EMExtrapolationTool
◆ m_events_processed
long InDet::ConversionFinder::m_events_processed {} |
|
protected |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_Gamma_stored
long InDet::ConversionFinder::m_Gamma_stored {} |
|
protected |
◆ m_InDetConversionOutputName
◆ m_Si_Conversions
long InDet::ConversionFinder::m_Si_Conversions {} |
|
protected |
◆ m_Single_Conversions
long InDet::ConversionFinder::m_Single_Conversions {} |
|
protected |
◆ m_SiSi_Conversions
long InDet::ConversionFinder::m_SiSi_Conversions {} |
|
protected |
◆ m_SiTrt_Conversions
long InDet::ConversionFinder::m_SiTrt_Conversions {} |
|
protected |
◆ m_tracksName
◆ m_Trt_Conversions
long InDet::ConversionFinder::m_Trt_Conversions {} |
|
protected |
◆ m_TrtTrt_Conversions
long InDet::ConversionFinder::m_TrtTrt_Conversions {} |
|
protected |
◆ m_varHandleArraysDeclared
◆ m_VertexFinderTool
ToolHandle<IVertexFinder> InDet::ConversionFinder::m_VertexFinderTool |
|
protected |
Initial value:{
this,
"VertexFinderTool",
"InDet::InDetConversionFinderTools",
"vertex finder tool"
}
Definition at line 42 of file ConversionFinder.h.
◆ m_vhka
The documentation for this class was generated from the following files:
Temporary container used until we have I/O for AuxStoreInternal.
long m_SiSi_Conversions
Number of Si-Si track conversions.
Helper class to provide type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
long m_Gamma_stored
Number of conversion vertices stored.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
void analyzeResults(xAOD::VertexContainer *)
std::vector< SG::VarHandleKeyArray * > m_vhka
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
@ numberOfTRTHits
number of TRT hits [unit8_t].
long m_Single_Conversions
Number of single-track conversions.
ToolHandle< IEMExtrapolationTools > m_EMExtrapolationTool
virtual void setOwner(IDataHandleHolder *o)=0
long m_Trt_Conversions
Number of TRT single-track conversions.
long m_SiTrt_Conversions
Number of Si-TRT track conversions.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksName
Name of track container in StoreGate.
long m_Double_Conversions
Number of two-track conversions.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
long m_events_processed
Statistics
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
SG::WriteHandleKey< xAOD::VertexContainer > m_InDetConversionOutputName
Name of output container to store results.
long m_TrtTrt_Conversions
Number of TRT-TRT track conversions.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Eigen::Matrix< double, 3, 1 > Vector3D
DataObjIDColl m_extendedExtraObjects
Class describing a Vertex.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
@ numberOfSCTHits
number of hits in SCT [unit8_t].
long m_Si_Conversions
Number of Si single-track conversions.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ToolHandle< IVertexFinder > m_VertexFinderTool