|
Gaudi Framework, version v21r11 |
| Home | Generated: 30 Sep 2010 |
#include <iostream>
#include <sstream>
#include <string>
#include <cmath>
#include <limits>
#include "GaudiKernel/StatEntity.h"
#include "boost/format.hpp"
#include "boost/static_assert.hpp"
#include "boost/algorithm/string/case_conv.hpp"
Go to the source code of this file.
Defines | |
| #define | GAUDIKERNEL_STATENTITY_CPP 1 |
Functions | |
| StatEntity | operator+ (const StatEntity &entity, const double value) |
| external operator for addition of StatEntity and a number | |
| StatEntity | operator+ (const double value, const StatEntity &entity) |
| external operator for addition of StatEntity and a number | |
| StatEntity | operator- (const StatEntity &entity, const double value) |
| external operator for subtraction of StatEntity and a number | |
| StatEntity | operator+ (const StatEntity &entity, const StatEntity &value) |
| external operator for addition of StatEntity and a number | |
| std::ostream & | operator<< (std::ostream &stream, const StatEntity &entity) |
| external printout operator to std::ostream | |
| bool | effCounter (const std::string &name) |
| simple function which checks the presence of "efficicncy"/"accepted" in the given string: | |
| GAUDI_API std::string | Gaudi::Utils::formatAsTableRow (const StatEntity &counter, const bool flag, const std::string &format1=" |%|7d| |%|11.7g| |%|#11.5g| |%|#10.5g| |%|#10.5g| |%|#10.5g| |", const std::string &format2="*|%|7d| |%|11.5g| |(%|#9.7g| +- %|-#8.6g|)%%| ----- | ----- |") |
| print the counter in a form of the table row | |
| GAUDI_API std::string | Gaudi::Utils::formatAsTableRow (const std::string &name, const StatEntity &counter, const bool flag=true, const std::string &format1=" %|-15.15s|%|17t||%|7d| |%|11.7g| |%|#11.5g| |%|#10.5g| |%|#10.5g| |%|#10.5g| |", const std::string &format2="*%|-15.15s|%|17t||%|7d| |%|11.5g| |(%|#9.7g| +- %|-#8.6g|)%%| ----- | ----- |") |
| print the counter in a form of the table row | |
| GAUDI_API std::string | Gaudi::Utils::formatAsTableRow (const std::string &name, const std::string &group, const StatEntity &entity, const bool flag=true, const std::string &format1=" %|15.15s|%|-15.15s|%|32t||%|7d| |%|11.7g| |%|#11.5g| |%|#10.5g| |%|#10.5g| |%|#10.5g| |", const std::string &format2="*%|15.15s|%|-15.15s|%|32t||%|7d| |%|11.5g| |(%|#9.7g| +- %|-#8.6g|)%%| ----- | ----- |") |
| print the counter in a form of the table row | |
Definition in file StatEntity.cpp.
| #define GAUDIKERNEL_STATENTITY_CPP 1 |
Definition at line 5 of file StatEntity.cpp.
| bool @456::effCounter | ( | const std::string & | name | ) | [inline, static] |
simple function which checks the presence of "efficicncy"/"accepted" in the given string:
| name | input string |
Definition at line 280 of file StatEntity.cpp.
00281 { 00282 const std::string lower = boost::algorithm::to_lower_copy( name ) ; 00283 return 00284 std::string::npos != lower.find ( "eff" ) || 00285 std::string::npos != lower.find ( "acc" ) || 00286 std::string::npos != lower.find ( "filt" ) || 00287 std::string::npos != lower.find ( "fltr" ) || 00288 std::string::npos != lower.find ( "pass" ) ; 00289 }
| StatEntity operator+ | ( | const StatEntity & | entity, | |
| const StatEntity & | value | |||
| ) |
external operator for addition of StatEntity and a number
Definition at line 262 of file StatEntity.cpp.
00263 { StatEntity aux ( entity ) ; return aux+=value ; }
| StatEntity operator+ | ( | const double | value, | |
| const StatEntity & | entity | |||
| ) |
external operator for addition of StatEntity and a number
Definition at line 252 of file StatEntity.cpp.
| StatEntity operator+ | ( | const StatEntity & | entity, | |
| const double | value | |||
| ) |
external operator for addition of StatEntity and a number
Definition at line 247 of file StatEntity.cpp.
00248 { StatEntity aux ( entity ) ; return aux+=value ; }
| StatEntity operator- | ( | const StatEntity & | entity, | |
| const double | value | |||
| ) |
external operator for subtraction of StatEntity and a number
Definition at line 257 of file StatEntity.cpp.
00258 { StatEntity aux ( entity ) ; return aux-=value ; }
| std::ostream& operator<< | ( | std::ostream & | stream, | |
| const StatEntity & | entity | |||
| ) |
external printout operator to std::ostream
Definition at line 267 of file StatEntity.cpp.
00268 { return entity.print ( stream ) ; }