All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
ana::IFDHSilent Class Reference

ifdh calls between construction and destruction produce no output More...

#include <Utilities.h>

Public Member Functions

 IFDHSilent ()
 
 ~IFDHSilent ()
 

Protected Attributes

bool fSet
 

Detailed Description

ifdh calls between construction and destruction produce no output

Upon going out of scope, restores the previous setting

Definition at line 68 of file sbnana/sbnana/CAFAna/Core/Utilities.h.

Constructor & Destructor Documentation

ana::IFDHSilent::IFDHSilent ( )

Definition at line 52 of file sbnana/sbnana/CAFAna/Core/Utilities.cxx.

53  {
54  const char* s = getenv("IFDH_SILENT");
55  fSet = (s && s == std::string("0"));
56  if(!fSet) setenv("IFDH_SILENT", "1", 1);
57  if(s) std::cout << "IFDH_SILENT=" << s << std::endl;
58  }
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
BEGIN_PROLOG could also be cout
ana::IFDHSilent::~IFDHSilent ( )

Definition at line 61 of file sbnana/sbnana/CAFAna/Core/Utilities.cxx.

62  {
63  if(!fSet) unsetenv("IFDH_SILENT");
64  }

Member Data Documentation

bool ana::IFDHSilent::fSet
protected

Definition at line 74 of file sbnana/sbnana/CAFAna/Core/Utilities.h.


The documentation for this class was generated from the following files: