ATLAS Offline Software
Loading...
Searching...
No Matches
TIDAAssociator.h File Reference
#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <map>
#include <memory>
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 87 of file TIDAAssociator.h.

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