ATLAS Offline Software
Loading...
Searching...
No Matches
TIDAAssociator.h File Reference
#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <map>
#include <memory>
#include <stdexcept>
Include dependency graph for TIDAAssociator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TIDA::Associator< T, S >

Namespaces

namespace  TIDA
 Test for xAOD.

Functions

template<typename T, typename S>
std::ostream & operator<< (std::ostream &s, const TIDA::Associator< T, S > &a)

Detailed Description

Author
mark sutton
Date
Sun 18 Jan 2009 19:08:11 GMT

Definition in file TIDAAssociator.h.

Function Documentation

◆ operator<<()

template<typename T, typename S>
std::ostream & operator<< ( std::ostream & s,
const TIDA::Associator< T, S > & a )
inline

Definition at line 86 of file TIDAAssociator.h.

86 {
87 typename TIDA::Associator<T,S>::map_type::const_iterator mitr = a.matched().begin();
88 typename TIDA::Associator<T,S>::map_type::const_iterator mend = a.matched().end();
89
90 std::cout << "TIDA::Associator size() " << a.size() << std::endl;
91
92 while ( mitr!=mend ) {
93 s << "\t[ ";
94 if ( mitr->first ) s << *(mitr->first) << "\t";
95 else s << "-------\t\t";
96
97 if ( mitr->second ) s << *(mitr->second);
98 else s << "-------";
99
100 s << " ]" << std::endl;
101
102 ++mitr;
103 }
104
105 return s;
106}
static Double_t a