pflib v3.9.0-rc3-11-g2537d8f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pftool.h File Reference

Shared declarations for all pftool menu commands. More...

#include "pflib/ECON.h"
#include "pflib/Target.h"
#include "pflib/menu/Menu.h"
Include dependency graph for pftool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pftool
 The type of menu we are constructing. More...
 
class  pftool::State
 static variables to share across menu More...
 

Macros

#define ENABLE_LOGGING()
 @macro ENABLE_LOGGING Enable logging using the file name as the channel name
 

Functions

::pflib::logging::logger get_by_file (const std::string &filepath)
 get a logger using the file name as the channel name
 

Variables

static const unsigned int NEED_FIBER = 0b1u
 category for commands that need an optical fiber
 
static const unsigned int ONLY_FIBERLESS = 0b10u
 category for commands that only are fiberless
 
static const unsigned int ONLY_HCAL = 0b100u
 menus/commands that only make sense for the Hcal
 

Detailed Description

Shared declarations for all pftool menu commands.

Macro Definition Documentation

◆ ENABLE_LOGGING

#define ENABLE_LOGGING ( )
Value:
static auto the_log_{get_by_file(__FILE__)};
::pflib::logging::logger get_by_file(const std::string &filepath)
get a logger using the file name as the channel name
Definition main.cxx:15

@macro ENABLE_LOGGING Enable logging using the file name as the channel name

Function Documentation

◆ get_by_file()

::pflib::logging::logger get_by_file ( const std::string & filepath)

get a logger using the file name as the channel name

the filename's extension is removed and the file path that is shared with the directory of this file is replaced by 'pftool'.