1 #ifndef PixelAliasList_h
2 #define PixelAliasList_h
35 std::ofstream
out(filename.c_str());
37 out <<
"ConfigurationAliases" <<std::endl;
41 << theAlias.
key() <<
" ";
44 for (
unsigned int j=0;
j<
n;
j++){
49 out <<
";" << std::endl;
53 out <<
"VersionAliases" <<std::endl;
59 << theAlias.
alias() <<
" ;"<<std::endl;
66 std::ifstream
in(filename.c_str());
68 std::cout <<
"[PixelAliasList::readfile()]\t\tCould not open file:"<<filename<<std::endl;
82 while(tag.substr(0,1) ==
"#") {
83 in.ignore(4096,
'\n');
87 assert(tag==
"ConfigurationAliases");
91 while(tag!=
"VersionAliases"){
109 tmpPAPair[
""] =
" " ;
136 assert(tag==
"VersionAliases");
160 tmpVAPair.second =
alias ;
177 std::cout <<
"[PixelAliasList::insertAlias()]\t\t\tReplacing existing alias:" << anAlias.
name()<<std::endl;
198 std::cout <<
"[PixelAliasList::insertVersionAlias()]\t\tReplacing existing version alias:"
199 <<anAlias.
path()<<
" " << anAlias.
alias() << std::endl;
226 std::vector<std::string>
tmp;
259 if((*it).first.find(koc) != std::string::npos)
261 result[(*it).first] = (*it).second ;
268 std::vector<pathAliasPair> configAliasVector ;
270 if( (*it).first == path ){
271 configAliasVector.push_back((*it).second) ;
274 return configAliasVector ;
unsigned int getVersion(std::string path, std::string alias)
void readfile(std::string filename)
std::string alias(unsigned int i)
unsigned int version(unsigned int i)
pathVersionAliasMmap getVersionData()
void updateConfigAlias(std::string path, unsigned int version, std::string alias, PixelConfigList &config)
std::map< std::string, vectorVAPairs > pathVersionAliasMmap
std::string versionAliasesAlias(unsigned int i)
std::string versionAliasesPath(unsigned int i)
std::vector< pathAliasPair > getConfigAliases(std::string path)
unsigned int key(unsigned int i)
std::string path(unsigned int i)
PixelConfigAlias operator[](unsigned int i)
std::map< std::string, std::string > pathAliasPair
std::string name(unsigned int i)
void insertVersionAlias(PixelVersionAlias &anAlias)
unsigned int nVersionAliases()
void addVersionAlias(std::string path, std::string alias)
void insertAlias(PixelConfigAlias &anAlias)
std::vector< std::string > getVersionAliases(std::string path)
pathVersionAliasMmap versionMmap
std::pair< unsigned int, std::string > versionAliasPair
std::vector< std::vector< double > > tmp
PixelConfigAlias * versionAliases(std::string aliasName)
std::map< std::string, pathAliasPair > pathAliasMmap
pathVersionAliasMmap getVersionData(std::string koc)
std::vector< PixelVersionAlias > pixelVersionAliases_
std::vector< PixelConfigAlias > pixelConfigAliases_
This class implements the steps that are used in a scan over Threshold and CalDelay.
std::vector< versionAliasPair > vectorVAPairs
unsigned int clone(unsigned int oldkey, std::string path, unsigned int version)
unsigned int nVersionAliases()