32 TString myfile = inputFile;
33 gSystem->ExpandPathName (myfile);
34 std::ifstream
file (myfile.Data());
40 while (std::getline (
file, line))
42 if (line[0] >=
'0' && line[0] <=
'9')
44 std::istringstream
str (line);
45 std::string DSID, name;
46 float crossSection = 0, kFactor = 0, filterEfficiency = 0,
49 if (!(
str >> DSID >> name >> crossSection >> kFactor >> filterEfficiency
53 std::string mydsid =
"." + DSID +
".";
55 end =
sh.end(); sample != end; ++ sample)
57 if ((*sample)->name().find (mydsid) != std::string::npos)
59 double oldCrossSection
73 TString mydir = inputDir;
74 gSystem->ExpandPathName (mydir);
79 dirp = gSystem->OpenDirectory (mydir.Data());
81 while ((
file = gSystem->GetDirEntry (dirp)))
83 std::string myfile = inputDir +
"/" +
file;
84 if (myfile.size() > 4 && myfile.substr (myfile.size()-4) ==
".txt")
87 gSystem->FreeDirectory (dirp);
90 gSystem->FreeDirectory (dirp);
#define RCU_THROW_MSG(message)
A class that manages a list of Sample objects.
std::vector< Sample * >::const_iterator iterator
the iterator to use
This module provides a lot of global definitions, forward declarations and includes that are used by ...
void readSusyMeta(const SampleHandler &sh, const std::string &inputFile)
effects: read the susy-meta-data file and add its information to the samples from the given sample ha...
void readSusyMetaDir(const SampleHandler &sh, const std::string &inputDir)
effects: read an entire directory of susy-meta-data files and add their information to the samples fr...