ATLAS Offline Software
Loading...
Searching...
No Matches
TrigConfData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include <iostream>
8#include <iomanip>
9#include <sstream>
10
11using namespace std;
12using namespace TrigConf;
13
15 m_smk(0),
16 m_id(0),
17 m_name(name),
18 m_version(0),
19 m_comment("")
20{}
21
22std::ostream&
23TrigConfData::indent(std::ostream& o, int lvl, int size) const {
24 int width = lvl*size;
25 if(width==0) return o;
26 o << setw(lvl*size) << " ";
27 return o;
28}
29
30void
31TrigConfData::printNameIdV(const string& indent) const {
32 cout << indent << name();
33 if(id()>0 || version()>0)
34 cout << " (id=" << id() << "/v=" << version() << ")";
35 cout << endl;
36 if(comment()!="")
37 cout << indent << "Comment: " << comment() << endl;
38}
39
40
41std::ostream &
42TrigConf::operator<<(std::ostream & o, const TrigConf::TrigConfData & data) {
43 o << data.name();
44 if(data.id()>0 || data.version()>0)
45 o << " (id=" << data.id() << "/v=" << data.version() << ")";
46 return o;
47}
48
49string
51 stringstream s;
52 s << *this;
53 return s.str();
54}
55
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
const double width
unsigned int id() const
std::ostream & indent(std::ostream &o, int lvl, int size) const
virtual std::string __str__() const
const std::string & name() const
void printNameIdV(const std::string &indent="") const
const std::string & comment() const
TrigConfData(const std::string &name="")
unsigned int version() const
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)
STL namespace.