1 #ifndef PixelAliasList_h 2 #define PixelAliasList_h 36 std::ofstream
out(filename.c_str());
38 out <<
"ConfigurationAliases" <<std::endl;
42 << theAlias.
key() <<
" ";
45 for (
unsigned int j=0;j<
n;j++){
50 out <<
";" << std::endl;
54 out <<
"VersionAliases" <<std::endl;
60 << theAlias.
alias() <<
" ;"<<std::endl;
67 std::ifstream
in(filename.c_str());
69 std::cout <<
"[PixelAliasList::readfile()]\t\tCould not open file:"<<filename<<std::endl;
83 while(tag.substr(0,1) ==
"#") {
84 in.ignore(4096,
'\n');
88 assert(tag==
"ConfigurationAliases");
92 while(tag!=
"VersionAliases"){
107 pathAliasPair tmpPAPair ;
110 tmpPAPair[
""] =
" " ;
137 assert(tag==
"VersionAliases");
152 versionAliasPair tmpVAPair ;
161 tmpVAPair.second =
alias ;
178 std::cout <<
"[PixelAliasList::insertAlias()]\t\t\tReplacing existing alias:" << anAlias.
name()<<std::endl;
199 std::cout <<
"[PixelAliasList::insertVersionAlias()]\t\tReplacing existing version alias:" 200 <<anAlias.
path()<<
" " << anAlias.
alias() << std::endl;
227 std::vector<std::string>
tmp;
257 pathVersionAliasMmap
result ;
260 if((*it).first.find(koc) != std::string::npos)
262 result[(*it).first] = (*it).second ;
269 std::vector<pathAliasPair> configAliasVector ;
271 if( (*it).first == path ){
272 configAliasVector.push_back((*it).second) ;
275 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()