1 #ifndef MARLINSTEERCHECK_H
2 #define MARLINSTEERCHECK_H
15 #define clrscr() printf("\033[2J")
16 #define dblue() printf("\x1b[34m")
17 #define dred() printf("\x1b[31m")
18 #define dyellow() printf("\x1b[33m")
19 #define dgreen() printf("\x1b[32m")
20 #define dunderline() printf("\x1b[4m")
21 #define ditalic() printf("\x1b[3m")
22 #define ddunkel() printf("\x1b[2m")
23 #define dhell() printf("\x1b[1m")
24 #define dblink() printf("\x1b[5m")
25 #define endcolor() printf("\x1b[m")
std::string _XMLFileRelPath
MarlinSteerCheck(const char *steerFileName=NULL, const CommandLineParametersMap *cmdlineparams=NULL)
void remProcessor(unsigned int index, bool status)
Remove processor with the given status at the given index.
This singleton class contains an instance of every available marlin processor type.
void repCondition(const std::string &oldCond, const std::string &newCond)
Replace a Condition.
sSet & getPConditions()
Returns a set with all the processor's conditions.
ColVec & getProcCols(const ProcVec &v, const std::string &iotype) const
this class is a Marlin Steering File consistency check Tool.
const std::string getXMLFileRelPath()
ColVec & getLCIOCols() const
Returns the collections read from LCIO files.
ColVec & findMatchingCols(ColVec &v, CCProcessor *srcProc, const std::string &type, const std::string &value="UNDEFINED", const std::string &name="UNDEFINED")
void remCondition(const std::string &condition)
Removes the given condition.
std::shared_ptr< StringParameters > getGlobalParameters()
Returns the Global Parameters.
std::shared_ptr< StringParameters > _gparam
Interface for a parser of a steering file to be used with marlin.
CCProcessor * popProc(ProcVec &v, CCProcessor *p)
handles information about marlin processors and their collections needed by MarlinSteerCheck ...
void dump_information()
Dumps all information read from the steering file to stdout.
const std::string getCondition(unsigned int index)
Returns the condition for a given index.
void activateProcessor(unsigned int index)
Activate processor at the given index.
bool parseXMLFile(const std::string &file, const CommandLineParametersMap *cmdlineparams=NULL)
sSet & getColsSet(const std::string &type, const std::string &name, CCProcessor *proc)
Returns a list of all available Collections for a given type, name and processor (to use in a ComboBo...
std::string _steeringFile
ColVec & getAllCols() const
const std::string getXMLFileAbsPath()
bool saveAsDOTFile(const std::string &file)
Saves steering file in dot format.
void addProcessor(bool status, const std::string &name, const std::string &type, std::shared_ptr< StringParameters > p)
Add a new processor.
std::string _XMLFileAbsPath
sSet & getErrors()
Returns a set with all the errors found after performing a consistency check.
ProcVec & getIProcs()
Returns the Inactive Processors.
bool saveAsXMLFile(const std::string &file)
Saves the data to an XML file with the given name Returns false if error occured. ...
const std::string getXMLFile()
void consistencyCheck()
Performs a check at all active processors to search for unavailable collections.
CMProcessor * getMProcs()
Returns the Marlin Processors.
ProcVec & getAllProcs() const
MarlinSteerCheck operator=(const marlin::MarlinSteerCheck &)=delete
void changeProcessorPos(unsigned int pos, unsigned int newPos)
Change the active processor at the given index to the new given position.
void dumpColErrors(unsigned int i, std::ostream &stream, bool separators=false)
Writes the collection errors for the active processor with given index to the given stream...
void deactivateProcessor(unsigned int index)
Deactivate processor at the given index.
const std::string getXMLFileName()
ProcVec & getAProcs()
Returns the Active Processors.
StringVec & getLCIOFiles()
Returns the names of the LCIO files found in the global section.
void changeLCIOFilePos(unsigned int pos, unsigned int newPos)
Change the LCIO File at the given index to the new given position.
void addCondition(const std::string &condition)
Add a new Condition.
int addLCIOFile(const std::string &file)
Add LCIO file and read all collections inside it.
void remLCIOFile(const std::string &file)
Remove LCIO file and all collections associated to it.
CMProcessor * _marlinProcs
int existsProcessor(const std::string &type, const std::string &name="")
Check if a processor of the given type with the given name already exists Returns 0 if the processor ...
std::vector< CCProcessor * > ProcVec