UtilRSM Namespace Reference

Typedefs

typedef std::string Str
typedef std::vector< std::string > StrVec

Functions

bool CheckDir (const char *DirName, bool MakeDir=true)
bool CheckFile (Str FileName, bool TestCreate=false)
StrVec DirFileList (Str DirName="./", Str Suf=".root", bool IncludePath=true, bool IncludeSuf=true, StrVec FList=(StrVec) 0)
StrVec FileFileList (Str FileName, Str Suf=".root", bool IncludePath=true, bool IncludeSuf=true, StrVec FList=(StrVec) 0)
short RunType (Str FileName)
Str RunTypeName (short RType)
Str ParseConfigBlock (RawRunConfigBlock *rrcfgb, Str ParseIt, bool Case=true)
void FileListOut (Str FileName, StrVec FList, bool Append=false)
void FileListOut (Str FileName, Str FStr, bool Append=false)

Variables

const unsigned char RTTest = 0x10
const unsigned char RTMod = 0x20
const unsigned char RTSpec = 0x40
const unsigned char RTFail = 0x80
const unsigned char RTMask = 0x0F
const unsigned char RTPhysics = 0x01
const unsigned char RTCheckOut = 0x02
const unsigned char RTVACalibrate = 0x03
const unsigned char RTVAPedestal = 0x04
const unsigned char RTQieCalibrate = 0x05
const unsigned char RTQieMonitor = 0x06

Typedef Documentation

typedef std::string UtilRSM::Str

Definition at line 17 of file UtilRSM.h.

typedef std::vector<std::string> UtilRSM::StrVec

Definition at line 18 of file UtilRSM.h.


Function Documentation

bool UtilRSM::CheckDir ( const char *  DirName,
bool  MakeDir = true 
)

Definition at line 36 of file UtilRSM.cxx.

References gSystem(), and RSMVer.

Referenced by RunFileModule::Config(), FarmListModule::FarmFileOUT(), RateSummary::OpenFile(), and RunSummary::SFileOUT().

00036                                                         {
00037   RSMVer << "UtilRSM::CheckDir" << endl;
00038 
00039   string cwd = gSystem->pwd();
00040 
00041   if (gSystem->cd(DirName)) {
00042     gSystem->cd(cwd.c_str());
00043     return true;
00044   }
00045 
00046   if (!MakeDir) return false;
00047 
00048   gSystem->mkdir(DirName,kTRUE);
00049   if (gSystem->cd(DirName)) {
00050     gSystem->cd(cwd.c_str());
00051     return true;
00052   }
00053 
00054   gSystem->cd(cwd.c_str());
00055 
00056   return false;
00057 }

bool UtilRSM::CheckFile ( Str  FileName,
bool  TestCreate = false 
)

Referenced by main().

StrVec UtilRSM::DirFileList ( Str  DirName = "./",
Str  Suf = ".root",
bool  IncludePath = true,
bool  IncludeSuf = true,
StrVec  FList = (StrVec) 0 
)

Referenced by main().

StrVec UtilRSM::FileFileList ( Str  FileName,
Str  Suf = ".root",
bool  IncludePath = true,
bool  IncludeSuf = true,
StrVec  FList = (StrVec) 0 
)

Referenced by main().

void UtilRSM::FileListOut ( Str  FileName,
Str  FStr,
bool  Append = false 
)
void UtilRSM::FileListOut ( Str  FileName,
StrVec  FList,
bool  Append = false 
)

Referenced by main().

Str UtilRSM::ParseConfigBlock ( RawRunConfigBlock rrcfgb,
Str  ParseIt,
bool  Case = true 
)

Referenced by FilterRunType::Ana().

short UtilRSM::RunType ( Str  FileName  ) 
string UtilRSM::RunTypeName ( short  RType  ) 

Definition at line 297 of file UtilRSM.cxx.

References RTCheckOut, RTFail, RTMask, RTMod, RTPhysics, RTQieCalibrate, RTQieMonitor, RTSpec, RTTest, RTVACalibrate, and RTVAPedestal.

Referenced by main().

00297                                        {
00298   string RTypeName="";
00299 
00300   short BaseRType=RType&RTMask;
00301   if(BaseRType==RTPhysics) RTypeName="Physics";
00302   if(BaseRType==RTCheckOut) RTypeName="CheckOut";
00303   if(BaseRType==RTVACalibrate) RTypeName="VACalibrate";
00304   if(BaseRType==RTVAPedestal) RTypeName="VAPedestal";
00305   if(BaseRType==RTQieCalibrate) RTypeName="QieCalibrate";
00306   if(BaseRType==RTQieMonitor) RTypeName="QieMonitor";
00307 
00308   if(RType&RTFail) RTypeName="Fail";
00309   if(RTypeName.size()==0) RTypeName="Unknown";
00310 
00311   if(RType&RTTest) RTypeName+=".Test";
00312   if(RType&RTMod) RTypeName+=".Modified";
00313   if(RType&RTSpec) RTypeName+=".Special";
00314 
00315   return RTypeName;
00316 }


Variable Documentation

const unsigned char UtilRSM::RTCheckOut = 0x02

Definition at line 40 of file UtilRSM.h.

Referenced by RunTypeName().

const unsigned char UtilRSM::RTFail = 0x80

Definition at line 36 of file UtilRSM.h.

Referenced by main(), and RunTypeName().

const unsigned char UtilRSM::RTMask = 0x0F

Definition at line 37 of file UtilRSM.h.

Referenced by main(), and RunTypeName().

const unsigned char UtilRSM::RTMod = 0x20

Definition at line 34 of file UtilRSM.h.

Referenced by RunTypeName().

const unsigned char UtilRSM::RTPhysics = 0x01

Definition at line 39 of file UtilRSM.h.

Referenced by RunTypeName().

const unsigned char UtilRSM::RTQieCalibrate = 0x05

Definition at line 43 of file UtilRSM.h.

Referenced by RunTypeName().

const unsigned char UtilRSM::RTQieMonitor = 0x06

Definition at line 44 of file UtilRSM.h.

Referenced by RunTypeName().

const unsigned char UtilRSM::RTSpec = 0x40

Definition at line 35 of file UtilRSM.h.

Referenced by RunTypeName().

const unsigned char UtilRSM::RTTest = 0x10

Definition at line 33 of file UtilRSM.h.

Referenced by RunTypeName().

const unsigned char UtilRSM::RTVACalibrate = 0x03

Definition at line 41 of file UtilRSM.h.

Referenced by RunTypeName().

const unsigned char UtilRSM::RTVAPedestal = 0x04

Definition at line 42 of file UtilRSM.h.

Referenced by RunTypeName().


Generated on 15 Jul 2018 for loon by  doxygen 1.6.1