15 _description(
" description not set by author ") ,
16 _typeName( typeName ) ,
18 _isFirstEvent( true ),
27 "verbosity level of this processor (\"DEBUG0-4,MESSAGE0-4,WARNING0-4,ERROR0-4,SILENT\")" ,
41 typedef ProcParamMap::iterator PMI ;
92 typedef ProcParamMap::iterator PMI ;
103 <<
"#\t type: " <<
" [" << p->
type() <<
"]"
128 std::cout <<
".end -------------------------------------------------"
138 stream <<
" <processor name=\"My" <<
type() <<
"\""
139 <<
" type=\"" <<
type() <<
"\">"
143 stream <<
" <processor name=\"" <<
name() <<
"\""
144 <<
" type=\"" <<
type() <<
"\">"
151 typedef ProcParamMap::iterator PMI ;
160 stream <<
" <!--parameter name=\"" << p->
name() <<
"\" "
161 <<
"type=\"" << p->
type() ;
174 stream <<
" <parameter name=\"" << p->
name() <<
"\" "
175 <<
"type=\"" << p->
type() ;
190 stream <<
"</processor>"
206 ProcParamMap::iterator it =
_map.
find(parameterName) ;
209 return it->second->valueSet() ;
224 typedef ProcParamMap::iterator PMI ;
virtual const std::string type()=0
std::string getLCIOOutType(const std::string &colName)
Return the LCIO output type for the collection colName - empty string if colName is not a registered ...
static ProcessorMgr * instance()
Return the instance of this manager.
bool parameterSet(const std::string &name)
Tests whether the parameter has been set in the steering file.
virtual void setProcessorReturnValue(Processor *proc, bool val)
Set the return value for the given processor.
std::string getLCIOInType(const std::string &colName)
Return the LCIO input type for the collection colName - empty string if colName is not a registered c...
virtual const std::string & name() const
Return name of this processor.
virtual const std::string & type() const
Return type name for the processor (as set in constructor).
void setLCIOOutType(const std::string &collectionName, const std::string &lcioOutType)
Set the LCIO type for a parameter that refers to an output collections, i.e.
virtual ~Processor()
Destructor.
virtual void init()
Called at the begin of the job before anything is read.
std::string _logLevelName
virtual const std::string & name()
bool isInputCollectionName(const std::string ¶meterName)
True if the given parameter defines an LCIO input collection, i.e.
void printParameters()
Print the parameters and their values depending on the given verbosity level.
void registerProcessor(Processor *processor)
Register a processor with the given name.
virtual void setParameters(std::shared_ptr< StringParameters > parameters)
Helper function returns the ProcessorParameter for the given name.
void setLCIOInType(const std::string &colName, const std::string &lcioInType)
Set the expected LCIO type for a parameter that refers to one or more input collections, e.g.
std::shared_ptr< StringParameters > _parameters
std::stringstream & log() const
Returns an empty stringstream that is used by the message method.
void setReturnValue(bool val)
Set the return value for this processor - typically at end of processEvent().
void registerOptionalParameter(const std::string ¶meterName, const std::string ¶meterDescription, T ¶meter, const T &defaultVal, int setSize=0)
Same as registerProcessorParameter except that the parameter is optional.
const std::string & description()
Description of processor.
virtual void updateParameters()
Allow friend class CCProcessor to update processor parameters.
bool isOutputCollectionName(const std::string ¶meterName)
True if the given parameter defines an LCIO output collection.
virtual const std::string & description()
virtual void printDescriptionXML(std::ostream &stream=std::cout)
Print information about this processor in XML steering file format.
Class that holds a steering variable for a marlin processor - automatically created by Processor::reg...
virtual const std::string defaultValue()=0
virtual bool isOptional()
virtual void printDescription()
Print information about this processor in ASCII steering file format.
virtual void baseInit()
Sets the registered steering parameters before calling init()