NAIA  1.1.1
Functions | Variables
NAIA::NtpTools Namespace Reference

Functions

std::pair< unsigned int, unsigned int > GetInnerNHits (TrTrackR *track)
 
std::vector< std::string > ExpandTextFilelist (const std::string &txtFile)
 
std::vector< std::string > LoadInputFiles (std::vector< std::string > &inputFiles)
 
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

◆ ExpandTextFilelist()

std::vector< std::string > NAIA::NtpTools::ExpandTextFilelist ( const std::string &  txtFile)

Definition at line 22 of file NtpTools.cpp.

References NAIA::begin(), and NAIA::end().

Referenced by LoadInputFiles().

◆ fout()

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

Referenced by MuteOutput().

◆ GetDatacardValue()

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

Definition at line 15 of file NtpTools.h.

◆ GetInnerNHits()

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

Definition at line 7 of file NtpTools.cpp.

◆ LoadInputFiles()

std::vector< std::string > NAIA::NtpTools::LoadInputFiles ( std::vector< std::string > &  inputFiles)

Definition at line 39 of file NtpTools.cpp.

References NAIA::begin(), NAIA::end(), and ExpandTextFilelist().

Referenced by main().

◆ muteOut()

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

Referenced by MuteOutput().

◆ MuteOutput()

void NAIA::NtpTools::MuteOutput ( )

Definition at line 73 of file NtpTools.cpp.

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

◆ UnmuteOutput()

void NAIA::NtpTools::UnmuteOutput ( )

Definition at line 87 of file NtpTools.cpp.

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

Variable Documentation

◆ cerr_sbuf

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

Definition at line 69 of file NtpTools.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

◆ cout_sbuf

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

Definition at line 68 of file NtpTools.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

◆ isMuted

bool NAIA::NtpTools::isMuted = false

Definition at line 71 of file NtpTools.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

◆ stderrSave

FILE* NAIA::NtpTools::stderrSave = nullptr

Definition at line 67 of file NtpTools.cpp.

Referenced by MuteOutput(), and UnmuteOutput().

◆ stdoutSave

FILE* NAIA::NtpTools::stdoutSave = nullptr

Definition at line 66 of file NtpTools.cpp.

Referenced by MuteOutput(), and UnmuteOutput().