|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #include "GaudiKernel/MsgStream.h"
25 #define MSGLVL MSG::DEBUG
28 #define ATH_MSG( MSG ) \
30 if( log.level() <= MSGLVL ) { \
31 log << MSGLVL << MSG << endmsg; \
42 MsgStream&
log )
const {
45 ATH_MSG(
"Converting xAOD::TrackParticleAuxContainer_v1 to current version..." );
58 for(
size_t i = 0;
i < oldObj->
size(); ++
i ) {
61 oldInt.setStore( oldObj );
64 for(
size_t i = 0;
i < newObj->
size(); ++
i ) {
67 newInt.setStore( newObj );
72 std::vector<float> covMatrixVec;
74 for(
size_t i = 0;
i < oldInt.
size(); ++
i ) {
77 x = oldInt[
i ]->parameterX(
index);
78 y = oldInt[
i ]->parameterY(
index);
79 newInt[
i ]->setRadiusOfFirstHit(std::sqrt(
x*
x +
y*
y));
81 ATH_MSG(
"Can't find first hit!" );
91 if( numberOfBLayerHitsAcc.
isAvailable( *( oldInt[
i ] ) ) ) {
98 if( numberOfBLayerSharedHitsAcc.
isAvailable( *( oldInt[
i ] ) ) ) {
105 if( numberOfBLayerOutliersAcc.
isAvailable( *( oldInt[
i ] ) ) ) {
112 if( numberOfBLayerSplitHitsAcc.
isAvailable( *( oldInt[
i ] ) ) ) {
119 if( expectBLayerHitAcc.
isAvailable( *( oldInt[
i ] ) ) ) {
128 if( definingParametersCovMatrixAcc.
isAvailable( *( oldInt[
i ] ) ) ) {
130 covMatrixVec = definingParametersCovMatrixAcc( *( oldInt[
i ] ) );
131 xAOD::ParametersCovMatrix_t
cov;
133 newInt[
i ]->setDefiningParametersCovMatrix(
cov);
142 ATH_MSG(
"Converting xAOD::TrackParticleAuxContainer_v1 to current version "
153 MsgStream&
log )
const {
156 <<
"Somebody called xAODTrackParticleAuxContainerCnv_v1::transToPers"
158 throw std::runtime_error(
"Somebody called xAODTrackParticleAuxContainerCnv_v1::"
void copyAuxStoreThinned(const SG::IConstAuxStore &orig, SG::IAuxStore ©, const SG::ThinningInfo *info)
Helper to copy an aux store while applying thinning.
@ numberOfInnermostPixelLayerSplitHits
number of Pixel 0th layer barrel hits split by cluster splitting
Temporary container used until we have I/O for AuxStoreInternal.
virtual void persToTrans(const xAOD::TrackParticleAuxContainer_v1 *oldObj, xAOD::TrackParticleAuxContainer *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
@ expectBLayerHit
Do we expect a b-layer hit for this track? [unit8_t] (should be [bool])
@ expectInnermostPixelLayerHit
Do we expect a 0th-layer barrel hit for this track?
Helper class to provide constant type-safe access to aux data.
virtual bool resize(size_t size) override
Resize the arrays to a given size.
@ numberOfBLayerHits
these are the hits in the first pixel layer, i.e.
@ numberOfBLayerSplitHits
number of Pixel b-layer hits split by cluster splitting [unit8_t].
void expand(std::vector< float >::const_iterator it, std::vector< float >::const_iterator, AmgSymMatrix(N) &covMatrix)
virtual size_t size() const override
Get the size of the container.
@ numberOfInnermostPixelLayerOutliers
number of 0th layer barrel outliers
Helper to copy an aux store while applying thinning.
@ FirstMeasurement
Parameter defined at the position of the 1st measurement.
Temporary container used until we have I/O for AuxStoreInternal.
@ numberOfBLayerSharedHits
number of Pixel b-layer hits shared by several tracks [unit8_t].
value_type push_back(value_type pElem)
Add an element to the end of the collection.
@ numberOfInnermostPixelLayerSharedHits
number of Pixel 0th layer barrel hits shared by several tracks.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
virtual void transToPers(const xAOD::TrackParticleAuxContainer *, xAOD::TrackParticleAuxContainer_v1 *, MsgStream &log) const override
Dummy function inherited from the base class.
xAODTrackParticleAuxContainerCnv_v1()
Default constructor.
Class describing a TrackParticle.
size_type size() const noexcept
Returns the number of elements in the collection.
#define ATH_MSG(MSG)
Another convenience macro for printing messages in the converter.
@ numberOfBLayerOutliers
number of blayer outliers [unit8_t].
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer