NAIA  1.0.1
 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)
 
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

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().

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 15 of file NtpTools.h.

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

Definition at line 7 of file NtpTools.cpp.

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().

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

Referenced by MuteOutput().

void NAIA::NtpTools::MuteOutput ( )

Definition at line 73 of file NtpTools.cpp.

References fout(), and muteOut().

void NAIA::NtpTools::UnmuteOutput ( )

Definition at line 87 of file NtpTools.cpp.

References stderrSave, and stdoutSave.

Variable Documentation

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

Definition at line 69 of file NtpTools.cpp.

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

Definition at line 68 of file NtpTools.cpp.

bool NAIA::NtpTools::isMuted = false

Definition at line 71 of file NtpTools.cpp.

FILE* NAIA::NtpTools::stderrSave = nullptr

Definition at line 67 of file NtpTools.cpp.

Referenced by UnmuteOutput().

FILE* NAIA::NtpTools::stdoutSave = nullptr

Definition at line 66 of file NtpTools.cpp.

Referenced by UnmuteOutput().