FairRoot/PandaRoot
Functions
FairEvtFilter.cxx File Reference
#include "FairEvtFilter.h"

Go to the source code of this file.

Functions

std::ostreamoperator<< (std::ostream &os, const std::set< Int_t > &set)
 

Function Documentation

std::ostream& operator<< ( std::ostream os,
const std::set< Int_t > &  set 
)

FairEvtFilter.h

Authors: Martin Galuska, Katja Kleeberg

abstract base class for event filters used to reject generated events which should not be fed into the transport. Each concrete filter class derived from this one must implement the abstract method EventMatches, in which the particular filter criteria are realized.

Definition at line 38 of file FairEvtFilter.cxx.

39 {
40  std::set<Int_t>::iterator iter;
41  os << "{";
42  for(iter=set.begin(); iter!=set.end(); ++iter){
43  os << *iter;
44  if(iter!=--set.end()){os << ",";}
45  }
46  os << "}\n";
47 
48  return os;
49 }