#include <Alignment/CocoaUtilities/interface/ALIFileOut.h>
Public Member Functions | |
ALIFileOut (const ALIstring &name) | |
ALIFileOut () | |
const ALIstring & | name () |
~ALIFileOut () | |
Static Public Member Functions | |
static ALIFileOut & | getInstance (const ALIstring &filename) |
Private Attributes | |
ALIstring | theName |
Name of file. | |
Static Private Attributes | |
static std::vector< ALIFileOut * > | theInstances |
Definition at line 22 of file ALIFileOut.h.
ALIFileOut::ALIFileOut | ( | ) | [inline] |
ALIFileOut::ALIFileOut | ( | const ALIstring & | name | ) | [inline] |
ALIFileOut::~ALIFileOut | ( | ) | [inline] |
ALIFileOut & ALIFileOut::getInstance | ( | const ALIstring & | filename | ) | [static] |
Definition at line 19 of file ALIFileOut.cc.
References ALIFileOut(), TestMuL1L2Filter_cff::cerr, lat::endl(), cmsRelvalreport::exit, and theInstances.
Referenced by Fit::dumpMatrices(), Fit::fitNextEvent(), Fit::getFitQuality(), Fit::PrintChi2(), and CocoaAnalyzer::RunCocoa().
00020 { 00021 std::vector<ALIFileOut*>::const_iterator vfcite; 00022 for( vfcite = theInstances.begin(); vfcite != theInstances.end(); vfcite++) { 00023 if( (*vfcite)->name() == filename) { 00024 return *(*vfcite); 00025 break; 00026 } 00027 } 00028 00029 if( vfcite == theInstances.end() ) { 00030 ALIFileOut* instance = new ALIFileOut( filename ); 00031 instance->open(filename.c_str()); 00032 if( !instance ) { 00033 std::cerr << "!! cannot open output file " << filename << std::endl; 00034 exit(0); 00035 } 00036 theInstances.push_back( instance ); 00037 return *instance; 00038 } 00039 }
const ALIstring& ALIFileOut::name | ( | ) | [inline] |
Definition at line 33 of file ALIFileOut.h.
References theName.
Referenced by CocoaToDDLMgr::so(), and CocoaToDDLMgr::writeSpecParsCocoa().
00033 { return theName; }
std::vector< ALIFileOut * > ALIFileOut::theInstances [static, private] |
ALIstring ALIFileOut::theName [private] |