NAIA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Functions | Variables
NAIA::NtpTools Namespace Reference

Functions

std::pair< unsigned int,
unsigned int > 
GetInnerNHits (TrTrackR *track)
 
template<typename T >
GetDatacardValue (TObjString *datacard, const std::string &key)
 
FILE * muteOut (fopen("/dev/null","w"))
 
std::ofstream fout ("/dev/null")
 
void MuteOutput ()
 
void UnmuteOutput ()
 

Variables

FILE * stdoutSave = nullptr
 
FILE * stderrSave = nullptr
 
std::streambuf * cout_sbuf = nullptr
 
std::streambuf * cerr_sbuf = nullptr
 
bool isMuted = false
 

Function Documentation

std::ofstream NAIA::NtpTools::fout ( "/dev/null"  )

Referenced by MuteOutput().

template<typename T >
T NAIA::NtpTools::GetDatacardValue ( TObjString *  datacard,
const std::string &  key 
)

Definition at line 12 of file NtpTools.h.

std::pair< unsigned int, unsigned int > NAIA::NtpTools::GetInnerNHits ( TrTrackR *  track)

Definition at line 7 of file NtpTools.cpp.

FILE* NAIA::NtpTools::muteOut ( fopen("/dev/null","w")  )

Referenced by MuteOutput().

void NAIA::NtpTools::MuteOutput ( )

Definition at line 36 of file NtpTools.cpp.

References cerr_sbuf, cout_sbuf, fout(), isMuted, muteOut(), stderrSave, and stdoutSave.

void NAIA::NtpTools::UnmuteOutput ( )

Definition at line 50 of file NtpTools.cpp.

References cerr_sbuf, cout_sbuf, isMuted, stderrSave, and stdoutSave.

Variable Documentation

std::streambuf* NAIA::NtpTools::cerr_sbuf = nullptr

Definition at line 32 of file NtpTools.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

std::streambuf* NAIA::NtpTools::cout_sbuf = nullptr

Definition at line 31 of file NtpTools.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

bool NAIA::NtpTools::isMuted = false

Definition at line 34 of file NtpTools.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

FILE* NAIA::NtpTools::stderrSave = nullptr

Definition at line 30 of file NtpTools.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

FILE* NAIA::NtpTools::stdoutSave = nullptr

Definition at line 29 of file NtpTools.cpp.

Referenced by MuteOutput(), and UnmuteOutput().