|
ATLAS Offline Software
|
Go to the documentation of this file.
32 declareInterface<IVertexCollectionSortingTool>(
this);
41 return StatusCode::FAILURE;
45 return StatusCode::SUCCESS;
51 return StatusCode::SUCCESS;
54 std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*>
58 std::vector<Vertex_pair> MyVertex_pairs;
62 NewContainer->setStore(auxNewContainer);
65 if(MyVxCont.
size()<=1){
67 NewContainer->
push_back(dummyVxCandidate);
68 if(MyVxCont.
size()==1){
78 sigWeightDec(*dummyVxCandidate) = 0.;
79 return std::make_pair(NewContainer, auxNewContainer);
91 MyVertex_pairs.emplace_back(Weight, (*
i));
96 if (!MyVertex_pairs.empty()) {
97 std::sort(MyVertex_pairs.begin(), MyVertex_pairs.end());
100 unsigned int vtxCount(1);
101 for (
auto MyVertex_pair : MyVertex_pairs) {
102 ATH_MSG_DEBUG(
"Weight after sorting: " << MyVertex_pair.first);
104 *(MyVertex_pair.second));
112 sigWeightDec(*vxCand) = MyVertex_pair.first;
119 NewContainer->
push_back(dummyVxCandidate);
123 sigWeightDec(*dummyVxCandidate) = 0.;
125 return std::make_pair(NewContainer, auxNewContainer);
bool operator<(const DataVector< T > &a, const DataVector< T > &b)
Vector ordering relation.
void setPosition(const Amg::Vector3D &position)
Sets the 3-position.
Const iterator class for DataVector/DataList.
Temporary container used until we have I/O for AuxStoreInternal.
Vertex_v1 Vertex
Define the latest version of the vertex class.
Helper class to provide type-safe access to aux data.
const Amg::Vector3D & position() const
Returns the 3-pos.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
@ NoVtx
Dummy vertex. TrackParticle was not used in vertex fit.
AmgSymMatrix(5) &GXFTrackState
void setVertexType(VxType::VertexType vType)
Set the type of the vertex.
VertexAuxContainer_v1 VertexAuxContainer
Definition of the current jet auxiliary container.
::StatusCode StatusCode
StatusCode definition for legacy code.
const T * front() const
Access the first element in the collection as an rvalue.
const T * back() const
Access the last element in the collection as an rvalue.
Ensure that the ATLAS eigen extensions are properly loaded.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Eigen::Matrix< double, 3, 1 > Vector3D
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Class describing a Vertex.
size_type size() const noexcept
Returns the number of elements in the collection.
void setCovariancePosition(const AmgSymMatrix(3)&covariancePosition)
Sets the vertex covariance matrix.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.