|
Luiza
v03-01
|
Processor for writing tables to output TEXT files. More...
#include <FitsTableWriter.h>
Public Member Functions | |
| virtual FitsTableWriter * | newProcessor () |
| Return a new instance of the processor. More... | |
| virtual void | init () |
| virtual void | startAnalysis (GloriaDataContainer *data) |
| virtual void | processData (GloriaDataContainer *data) |
| virtual void | check (GloriaDataContainer *data) |
| Called for every loop - right after processData() call. More... | |
| virtual void | concludeAnalysis (GloriaDataContainer *data) |
| virtual void | end () |
Public Member Functions inherited from luiza::Processor | |
| Processor (const std::string &typeName) | |
| Default constructor. More... | |
| virtual | ~Processor () |
| Destructor. | |
| virtual const std::string & | type () const |
| Return type name for the processor (as set in constructor). | |
| virtual const std::string & | name () const |
| Return name of this processor. | |
| virtual const std::string & | logLevelName () const |
| Return name of the local verbosity level of this processor - "" if not set. | |
| virtual StringParameters * | parameters () |
| Return parameters defined for this Processor. | |
| virtual void | printDescription () |
| Print information about this processor in ASCII steering file format. | |
| virtual void | printDescriptionXML (std::ostream &stream=std::cout) |
| Print information about this processor in XML steering file format. | |
| template<class T > | |
| void | printParameters () |
| Print the parameters and their values depending on the given verbosity level. | |
| void | printParameters () |
| Print the parameters and their values with verbosity level MESSAGE. | |
| const std::string & | description () |
| Description of processor. | |
| bool | isFirstEvent () |
| True if first event in processEvent(evt) - use this e.g. to initialize histograms etc. | |
| GloriaCollectionType | getGloriaInType (const std::string &colName) |
| Return the input type for the collection colName. More... | |
| GloriaCollectionType | getGloriaOutType (const std::string &colName) |
| Return the output type for the collection colName. More... | |
| bool | isInputCollectionName (const std::string ¶meterName) |
| Check if parameter defines collection. More... | |
| bool | isOutputCollectionName (const std::string ¶meterName) |
| True if the given parameter defines an LCIO output collection */. | |
Protected Attributes | |
| string | _tableCollectionName |
| Name of the table collection which should be stored. | |
| string | _fitsFileNameRoot |
| Output file name root. | |
| bool | _binaryTable |
| Flag for output to single file. | |
| std::vector< std::string > | _selectedColumns |
| Table columns to be stored. | |
| GloriaFitsTable * | _outputTable |
| Temporary table to prepare text output. | |
| int | _nLoops |
| Loop counter. | |
| int | _nTables |
| Table counter, used to number file name. | |
| int | _nWritten |
| Counter for images successfully written to file. | |
Protected Attributes inherited from luiza::Processor | |
| std::string | _description |
| Describes what the processor does. Set in constructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from luiza::Processor | |
| void | setReturnValue (bool val) |
| Set the return value for this processor - typically at end of processEvent(). More... | |
| void | setReturnValue (const std::string &name, bool val) |
| Set a named return value for this processor - typically at end of processEvent() More... | |
| template<class T > | |
| void | registerProcessorParameter (const std::string &name, const std::string &description, T ¶meter, const T &defaultVal, int setSize=0) |
| Register a steering variable for this processor - call in constructor of processor. More... | |
| void | registerInputCollection (const GloriaCollectionType &type, const std::string &name, const std::string &description, std::string ¶meter, const std::string &defaultVal, int setSize=0) |
| Register parameter describing input collection. More... | |
| void | registerOutputCollection (const GloriaCollectionType &type, const std::string &name, const std::string &description, std::string ¶meter, const std::string &defaultVal, int setSize=0) |
| Register parameter describing output collection. More... | |
| void | registerInputCollections (const GloriaCollectionType &type, const std::string &name, const std::string &description, StringVec ¶meter, const StringVec &defaultVal, int setSize=0) |
| Register parameter describing input collections. More... | |
| template<class T > | |
| void | registerOptionalParameter (const std::string &name, const std::string &description, T ¶meter, const T &defaultVal, int setSize=0) |
| Same as registerProcessorParameter except that the parameter is optional. More... | |
| bool | parameterSet (const std::string &name) |
| Tests whether the parameter has been set in the steering file. | |
| template<class T > | |
| void | message (const std::string &message) const |
| Print message according to verbosity level. More... | |
| template<class T > | |
| void | message (const std::basic_ostream< char, std::char_traits< char > > &m) const |
| Similar to message(const std::string& message) More... | |
| std::stringstream & | log () const |
| Returns an empty stringstream that is used by the message method. | |
| virtual void | setProcessorParameters (StringParameters *parameters) |
| Allow friend class CCProcessor to change/reset processor parameters. | |
| virtual void | updateParameters () |
| Allow friend class CCProcessor to update processor parameters. | |
| virtual void | updateTelescopeParameters (std::string name) |
| Allow to update processor parameters for given telescope name. More... | |
| virtual void | updateTelescopeParameters (GloriaFitsHeader *header) |
| Update processor parameters based on FITS header. More... | |
Processor for writing tables to output TEXT files.
This processor writes tables to output FITS file It can be used to store analysis results, eg. object lists.
| TableCollectionName | - Name of the table collection which should be stored to file(s) |
| FitsFileNameRoot | - Output file name root, which will be appended by the table number and extension |
| BinaryTable | - flag to select binary table format |
|
virtual |
Called for every loop - right after processData() call.
Can be used to check processing and/or produce check plots.
Reimplemented from luiza::Processor.
|
virtual |
Called after all data loops to conclude analysis
Reimplemented from luiza::Processor.
References _binaryTable, _fitsFileNameRoot, _nTables, _nWritten, _outputTable, _selectedColumns, _tableCollectionName, gloria::GloriaFitsTable::AddColumn(), gloria::GloriaFitsTable::AdjustColumns(), gloria::GloriaFitsTable::ColumnExists(), gloria::GloriaFitsHeader::CopyHeader(), gloria::GloriaFitsHeader::Error(), gloria::GloriaFitsHeader::ErrorMessage(), gloria::GloriaFitsTable::GetColumn(), gloria::GloriaFitsHeader::InputFileName(), gloria::GloriaFitsTable::InsertColumn(), luiza::Processor::setReturnValue(), gloria::GloriaDataContainer::TableCollectionPermanent(), and gloria::GloriaFitsTable::WriteFitsFile().
Referenced by processData().
|
virtual |
Called after data processing for clean up.
Reimplemented from luiza::Processor.
|
virtual |
Called at the begin of the job before anything is read. Use to initialize the processor, e.g. book histograms.
Reimplemented from luiza::Processor.
References _nLoops, _nTables, _nWritten, _outputTable, luiza::Processor::name(), and luiza::Processor::parameters().
|
virtual |
Return a new instance of the processor.
Has to be implemented by subclasses.
Implements luiza::Processor.
|
virtual |
Called for every data collection
Reimplemented from luiza::Processor.
References _nLoops, _tableCollectionName, and concludeAnalysis().
|
virtual |
Called for before first data loop
Reimplemented from luiza::Processor.
1.8.9.1