CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventStreamConfigurationInfo.cc
Go to the documentation of this file.
1 // $Id: EventStreamConfigurationInfo.cc,v 1.12 2011/03/07 15:31:32 mommsen Exp $
3 
5 #include <ostream>
6 
8 
9 
11 {
12  if ( outputModuleLabel_ != other.outputModuleLabel() )
13  return ( outputModuleLabel_ < other.outputModuleLabel() );
14  if ( triggerSelection_ != other.triggerSelection() )
15  return ( triggerSelection_ < other.triggerSelection() );
16  if ( eventSelection_ != other.eventSelection() )
17  return ( eventSelection_ < other.eventSelection() );
18  if ( streamLabel_ != other.streamLabel() )
19  return ( streamLabel_ < other.streamLabel() );
20  if ( streamId_ != other.streamId() )
21  return ( streamId_ < other.streamId() );
22  if ( maxFileSizeMB_ != other.maxFileSizeMB() )
23  return ( maxFileSizeMB_ < other.maxFileSizeMB() );
24  return ( fractionToDisk_ < other.fractionToDisk() );
25 }
26 
27 
28 std::ostream& stor::operator<<
29 (
30  std::ostream& os,
32 )
33 {
34  os << "EventStreamConfigurationInfo:" << std::endl
35  << " Stream label: " << ci.streamLabel() << std::endl
36  << " Maximum file size, MB: " << ci.maxFileSizeMB() << std::endl
37  << " HLT output: " << ci.outputModuleLabel() << std::endl
38  << " Fraction of events written to disk: " << ci.fractionToDisk() << std::endl
39  << " Stream Id: " << ci.streamId() << std::endl;
40 
41  os << " Event filters:";
42  if (ci.triggerSelection().size()) {
43  os << std::endl << ci.triggerSelection();
44  }
45  else
46  for( unsigned int i = 0; i < ci.eventSelection().size(); ++i )
47  {
48  os << std::endl << " " << ci.eventSelection()[i];
49  }
50 
51  return os;
52 }
53 
54 
const std::string & triggerSelection() const
int i
Definition: DBlmapReader.cc:9
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
const std::string & outputModuleLabel() const