ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Namespaces | Functions
AtContainerManip.h File Reference
#include <FairLogger.h>
#include <TH1.h>
#include <algorithm>
#include <iterator>
#include <memory>
#include <string>
#include <type_traits>
#include <vector>
Include dependency graph for AtContainerManip.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ContainerManip
 

Functions

template<typename T >
void ContainerManip::SetHistFromData (TH1 &hist, const T &data, double xMin=0, double xMax=0)
 Use contents of data to set the bin contents of hist. More...
 
template<typename Hist = TH1D, typename T >
std::unique_ptr< Hist > ContainerManip::CreateHistFromData (const std::string &name, const T &data, double xMin=0, double xMax=0)
 Use contents of data to create a histogram with the given name. More...
 
template<typename T >
ContainerManip::GetMedian (std::vector< T > &vec)
 
template<typename T >
T * ContainerManip::GetPointer (T &t)
 
template<typename T >
std::remove_const_t< T > * ContainerManip::GetPointerNonConst (T &t)
 
template<typename T >
std::vector< const T * > ContainerManip::GetConstPointerVector (const std::vector< T > &vec)
 
template<typename T >
std::vector< const T * > ContainerManip::GetConstPointerVector (const std::vector< std::unique_ptr< T >> &vec)
 
template<typename T >
std::vector< T * > ContainerManip::GetPointerVector (const std::vector< T > &vec)
 
template<typename T >
std::vector< T * > ContainerManip::GetPointerVector (const std::vector< std::unique_ptr< T >> &vec)
 
template<typename T >
std::vector< T > ContainerManip::GetObjectVector (const std::vector< std::unique_ptr< T >> &vec)
 
template<typename T >
std::vector< T & > ContainerManip::GetReferenceVector (const std::vector< std::unique_ptr< T >> &vec)
 
template<typename T , typename Operator >
std::vector< T > ContainerManip::MoveFromVector (std::vector< T > &vec, Operator op)