ATLAS Offline Software
Classes | Namespaces | Functions
TIDAAssociator.h File Reference
#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <map>
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

 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 84 of file TIDAAssociator.h.

84  {
85  typename TIDA::Associator<T,S>::map_type::const_iterator mitr = a.matched().begin();
86  typename TIDA::Associator<T,S>::map_type::const_iterator mend = a.matched().end();
87 
88  std::cout << "TIDA::Associator size() " << a.size() << std::endl;
89 
90  while ( mitr!=mend ) {
91  s << "\t[ ";
92  if ( mitr->first ) s << *(mitr->first) << "\t";
93  else s << "-------\t\t";
94 
95  if ( mitr->second ) s << *(mitr->second);
96  else s << "-------";
97 
98  s << " ]" << std::endl;
99 
100  mitr++;
101  }
102 
103  return s;
104 }
TIDA::Associator
Definition: TIDAAssociator.h:24
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
a
TList * a
Definition: liststreamerinfos.cxx:10