ATLAS Offline Software
Loading...
Searching...
No Matches
IDTPM2 Namespace Reference

emacs: this is -*- c++ -*- More...

Classes

class  decorator
 decorates types with the truth match information More...
class  TagNProbe
class  TMatchingTool
class  TOfflineTruthMatcher
class  TrackAnalysisStore

Typedefs

using TrackViewMatchingTool = TMatchingTool<const TrackView>

Functions

template<typename T, typename Iterator>
void append_pointers (std::vector< const T * > &t, Iterator first, Iterator last)
template<typename T, typename Iterator>
void fill_pointers (std::vector< const T * > &t, Iterator first, Iterator last)
template<typename T, typename Iterator>
void fill_upointers (std::vector< const T * > &t, Iterator first, Iterator last)
template<typename T, typename Iterator>
void append (std::vector< const T * > &t, Iterator first, Iterator last)
 don't actually really need this, just call insert directly !!
template<typename T, typename Iterator>
void fillv (std::vector< T > &t, Iterator first, Iterator last)
template<typename T, typename V = T, typename Iterator>
void fillv (std::vector< std::unique_ptr< T > > &t, Iterator first, Iterator last)
std::string stime ()
 this is as optimal as it gets because it allows ctime_r to construct the time string in place and exploits the fixed size ctime_r output

Detailed Description

emacs: this is -*- c++ -*-

Athena includes.

@file    OfflineTruthMatcher.h        

@author  sutt
@date    Fri  2 Oct 2026 18:14:07 BST

$Id: OfflineTruthMatcher.h, v0.0   Fri  2 Oct 2026 18:14:07 BST sutt $

Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration **

EDM includes stl includes class to do all the loading of the collections, can load any collection and can automatically convert any class which has a custom TrackTraits so it can be used in the analysis

Typedef Documentation

◆ TrackViewMatchingTool

Function Documentation

◆ append()

template<typename T, typename Iterator>
void IDTPM2::append ( std::vector< const T * > & t,
Iterator first,
Iterator last )

don't actually really need this, just call insert directly !!

Definition at line 45 of file Trigger/TrigMonitoring/TrigIDR4Monitoring/src/Utils.h.

45 {
46 t.insert( t.end(), first, last );
47}

◆ append_pointers()

template<typename T, typename Iterator>
void IDTPM2::append_pointers ( std::vector< const T * > & t,
Iterator first,
Iterator last )

Definition at line 26 of file Trigger/TrigMonitoring/TrigIDR4Monitoring/src/Utils.h.

26 {
27 for ( ; first!=last ; first++ ) t.push_back( &*first );
28}

◆ fill_pointers()

template<typename T, typename Iterator>
void IDTPM2::fill_pointers ( std::vector< const T * > & t,
Iterator first,
Iterator last )

Definition at line 31 of file Trigger/TrigMonitoring/TrigIDR4Monitoring/src/Utils.h.

31 {
32 t.clear();
33 for ( ; first!=last ; first++ ) t.push_back( &*first );
34}

◆ fill_upointers()

template<typename T, typename Iterator>
void IDTPM2::fill_upointers ( std::vector< const T * > & t,
Iterator first,
Iterator last )

Definition at line 37 of file Trigger/TrigMonitoring/TrigIDR4Monitoring/src/Utils.h.

37 {
38 t.clear();
39 for ( ; first!=last ; first++ ) t.push_back( first->get() );
40}

◆ fillv() [1/2]

template<typename T, typename V = T, typename Iterator>
void IDTPM2::fillv ( std::vector< std::unique_ptr< T > > & t,
Iterator first,
Iterator last )

Definition at line 55 of file Trigger/TrigMonitoring/TrigIDR4Monitoring/src/Utils.h.

55 {
56 t.clear(); t.reserve(last-first);
57 for ( ; first!=last ; first++ ) t.push_back(std::make_unique<V>(*first));
58}

◆ fillv() [2/2]

template<typename T, typename Iterator>
void IDTPM2::fillv ( std::vector< T > & t,
Iterator first,
Iterator last )

Definition at line 50 of file Trigger/TrigMonitoring/TrigIDR4Monitoring/src/Utils.h.

50 {
51 t = std::vector<T>(first, last );
52}

◆ stime()

std::string IDTPM2::stime ( )

this is as optimal as it gets because it allows ctime_r to construct the time string in place and exploits the fixed size ctime_r output

Definition at line 22 of file Trigger/TrigMonitoring/TrigIDR4Monitoring/src/Utils.cxx.

22 {
23 time_t t;
24 time(&t);
25 std::string s(25,'\0');
26 ctime_r(&t,&s[0]);
27 s.pop_back();
28 return s;
29}