-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Minimial version of CombineLogger Replace Logger with stripped down version (CombineLogger) * new splash * moving messages to the logger, 1 of many * replace couts with logger (2 of many) * fixing compilation errors, sorry --------- Co-authored-by: Nick Wardle <nckw@cern.ch> Co-authored-by: Giacomo Ortona <gortona@cern.ch>
- Loading branch information
1 parent
be488af
commit b47ce81
Showing
17 changed files
with
425 additions
and
573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,48 @@ | ||
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@, | ||
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@, | ||
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@, | ||
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@, | ||
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@, | ||
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@, | ||
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@, | ||
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@, | ||
|
||
|
||
`` | ||
:'''+++++'', | ||
`;`.++++++++'+'. | ||
`'` ;+''++++++';;: | ||
;+,'+++'''++++'+'+: | ||
.+++++'''''''''+::;+. | ||
`+++++''''''''''',.,#+ | ||
;++++''''''''''''``;+#; | ||
,+''++'''''''''+'+::####, | ||
`++'++'''''''''+''++++++#+` | ||
`;'''+#'` ;++++'''''''''''::;+++++#+' | ||
:';.`.''++,+++++'''''''''+;,.:++++++#+. | ||
.'';.` .''+++++++''''',:'''':``'+++++#;;; | ||
`;'''.`` ;''++++++'''';. .''+''.:+++++++::; | ||
:'''''. ;'''++++++''''. ;'++++++++++++;,:: | ||
.'''''''''''''''++++''''';.;'+'::'+++++++++`;. | ||
;''''''''''''';;;'++++++'''''++,,.;+++++++##++ | ||
,''''''''''''';;;;;'++'''++++++++.``'+++++#;:+#, | ||
:'''''''''''';;;;;;;;''''++++++###; :+++++#+,:++ | ||
::..';'''''';;;;;;;;;;'''++++++++##++++++++#'.,+. | ||
.,.``''''''';;;;;;;;;;;''++++;+'++++#++++++##+,'; | ||
'`` ,;;;'';;;;;;;;;;;;;;'++++';;.++++++++++##+##` | ||
.; .';'';;;;;;;;;;;;:;;;''+++#,#+,++++++++#::+#: | ||
:;;''''';;;;;;;;;;;:.``:;;;,'+++;#####+++++',,'+ | ||
;;''''';;;;;;;;;;;:.`` ,;;;,:+++#;########+;`,+. | ||
;;'';';;;;;;;;;;;;``` :'';;`'++#; .+##::#+#,': | ||
;''';;;;;;;;;;;;;;` ,;'''',,++#+` ,+;`###. | ||
;''';;;;;;;;;;;;;;: `:;+++'''.++##, .:. | ||
:''';';;;;;;;;;;;;;;;;'+++++++++##+ | ||
:''''';;;;;;;;;;;;;;;'+#####+++++##` | ||
,';;'';;;;;;;;;;;;;;+#+++###+++'+#+; | ||
.';;;:,;;;;;;;;;;;+#++++++++++++'+#+ | ||
.'';,.`.;;;;;;;;'#+++++++++++++#++++, | ||
`''.`` .;;;;;;'#++++++++++++++###+++' | ||
`'' :;;;;;++++++++++++++++###+#+++` | ||
;: ,;;;;+++++++++++++++++++++###++: | ||
';,`:';;++++++++++++++++++++++#####+' | ||
;';'';'#+++###++++++++++++++########; | ||
`++++##+++###+++++++++++++##########, | ||
'#######+++++++++':::,+###########+ | ||
`########++++++#+.,:,,+##########+. | ||
:#+######++++##+`.,,+####+######. | ||
'+##+++###+++++++############+` | ||
;###++#+++#++++++#########+` | ||
`+######+###++#########+` | ||
,##################+. | ||
`'##############+. | ||
.#++########+` | ||
;++#####+. | ||
.::,. | ||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | ||
@.%&&&&&&&&&&&&&&&&&&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@/% | ||
@.%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@/% | ||
@.%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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@@@@@@@@@/% | ||
@.(###########(.,//*./##/ /#(.,&&( /% /#.(&(../#( *&&%//..//&&&( *%%,.#&&*./#(/*&&&&&&&&&&&&&&&&&&,#@@@@@@@@@@@@@@@@@@/% | ||
@.(############################%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&#&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&,#&&@@@@@@@@@@@@@@@@@/% | ||
@.(#################################%&&&&&&&&&&&&&&&&&&&&&&&&(#&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&,(&&&&@@@@@@@@@@@@@@@@/% | ||
@.(#####################################%&&&&&&&&&&&&&&&&&&&(*&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&,(&&&&&&&@@@@@@@@@@@@@@/% | ||
@.(#########################################&&&&&&&&&&&&&&&*/&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&,(&&&&&&&&&@@@@@@@@@@@@@/% | ||
@.(############################################&&&&&&&&&&&%#&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&,(&&&&&&&&&&&@@@@@@@@@@@@/% | ||
@.(###############################################&&&&&&&*#&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&,#&&&&&&&&&&&&&&@@@@@@@@@@/% | ||
@.(#################################################%&&%(&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%,#&&&&&&&&&&&&&&&&@@@@@@@@@/% | ||
@.(//#((##############################################%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%,%&&&&&&&&&&&&&&&&&&@@@@@@@@/% | ||
@.(############/*(/(#################################/*#%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%,%&&&&&&&&&&&&&&&&&&&&@@@@@@@/% | ||
@.###################(/#/(##########################(#####%&&&&&&&&&&&&&&&&&&&&&&&&&&&&#,&&&&&&&&&&&&&&&&&&&&&&&@@@@@@/% | ||
@.#########################//#####################(,(#######&&&&&&&&&&&&&&&&&&&&&&&&&&(,&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@/% | ||
@.############################((/################//##########%&&&&&&&&&&&&&&&&&&&&&&&/*&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@@/% | ||
@.#######################/,/(((((/,*(###########//#############&&&&&&&&&&&&&&&&&&&&&*/&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@*% | ||
@.####################**(###########/,,(######/,(###############&&&&&&&&&&&&&&&&&&&*(&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@*% | ||
@.&&&&&&&&&&&%#####(*/################/**/####(##################&&&&&&&&&&&&&&&&&,%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@*% | ||
@.&&&&&&&&&&&&&&&&//####################*/**,(####################&&&&&&&&&&&&&&%,%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@*% | ||
@.&&&&&&&&&&&&&&#*&&&%###################(*(,/#####################&&&&&&&&&&&&(*&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@*% | ||
@.&&&&&&&&&&&&&*#&&&&&&&################(/#*((,(###################%&&&&&&&&&&/(&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@*% | ||
@.&&&&&&&&&&&%,&&&&&&&&&&&############,*####/(#**###################&&&&&&&&&,#&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*% | ||
@.%&&&&&&&&&/(&&&&&&&&&&&&&%#######(*########((##,(##################&&&&&&%,&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*% | ||
@.%&&&&&&&&,&&&&&&&&&&&&&&&&&#####(/##########(###(,(################%&&&&(/&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*% | ||
@.%&&&&&&#*&&&&&&&&&&&&&&&&&&&#*,(#############/####*/################&&&,%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*% | ||
@.%&&&&&*%&&&&&&&&&&&&&&&&&&(,#################*(####(,(##############&(*&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*% | ||
@.&@@&/(&&&&&&&&&&&&&&&&&*&&&&&#################*######(,(###########(,%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*% | ||
@.(@/(@@&&&&&&&&&&&%(/&%&&&&&&&%################*########(**#######/*(%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*% | ||
@.(&&#/%%,,,#%,,*(#############(/////////////////////////////*,,,,/////(((((((((((((((((((((((((((((((((((((((((((((((,% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifndef HiggsAnalysis_CombinedLimit_CombineLogger_h | ||
#define HiggsAnalysis_CombinedLimit_CombineLogger_h | ||
|
||
#include <iostream> | ||
#include <fstream> | ||
#include <string> | ||
|
||
class CombineLogger | ||
{ | ||
public: | ||
static int nLogs; | ||
|
||
static CombineLogger& instance(); | ||
|
||
static void setName(const char* _fName){ | ||
fName=_fName; | ||
}; | ||
|
||
void log(const std::string & _file, const int _lineN, const std::string& _logmsg, const std::string& _function); | ||
void printLog(); | ||
|
||
protected: | ||
// Static variable for the instance | ||
static CombineLogger* pL; | ||
|
||
static const char* fName; | ||
std::ofstream outStream; | ||
CombineLogger(); | ||
virtual ~CombineLogger(); | ||
}; | ||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.