ATLAS Offline Software
Namespaces | Functions
TruthParticleHitCountAlg.cxx File Reference
#include "TruthParticleHitCountAlg.h"
#include "ActsGeometry/ATLASSourceLink.h"
#include "xAODTruth/TruthVertex.h"
#include "xAODTruth/TruthParticle.h"
#include <iomanip>
#include <cmath>
#include <type_traits>
#include <typeinfo>
#include <numeric>
#include <version>

Go to the source code of this file.

Namespaces

 ActsTrk
 The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout geometry to cache the final transformations of the sensor surfaces associated to one particular detector technology (Pixel, Sct, etc.).
 

Functions

template<class T_container , class T_Func >
std::size_t std::erase_if (T_container &container, T_Func pred)
 
MsgStream & ActsTrk::operator<< (MsgStream &out, const ActsUtils::Stat &stat)
 

Function Documentation

◆ erase_if()

template<class T_container , class T_Func >
std::size_t std::erase_if ( T_container &  container,
T_Func  pred 
)
inline

Definition at line 29 of file TruthParticleHitCountAlg.cxx.

29  {
30  std::size_t orig_size = container->size();
31  for ( typename T_container::iterator iter = container.begin();
32  iter != container.end();
33  /* increment only if nothing was erased! */ ) {
34  if (pred(*iter)) {
35  iter = erase(iter);
36  }
37  else {
38  ++iter;
39  }
40  }
41  return orig_size - container->size();
42  }
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68