![]() |
ATLAS Offline Software
|
Standard tool to output CPU cluster info to the non-standard file format that we have been using for plotting and validation purposes. More...
#include <CaloCPUOutput.h>
Public Member Functions | |
| CaloCPUOutput (const std::string &type, const std::string &name, const IInterface *parent) | |
| virtual StatusCode | initialize () override |
| virtual StatusCode | execute (const EventContext &ctx, xAOD::CaloClusterContainer *cluster_collection) const override |
| virtual | ~CaloCPUOutput ()=default |
| virtual StatusCode | execute (xAOD::CaloClusterContainer *collection) final |
| Execute on an entire collection of clusters. | |
Private Attributes | |
| Gaudi::Property< std::string > | m_savePath {this, "SavePath", "./saved_clusters", "Path to where the files should be saved"} |
| The path specifying the folder to which the files should be saved. | |
| Gaudi::Property< std::string > | m_filePrefix {this, "FilePrefix", "", "Prefix of the saved files"} |
| The prefix of the saved files. | |
| Gaudi::Property< std::string > | m_fileSuffix {this, "FileSuffix", "", "Suffix of the saved files"} |
| The suffix of the saved files. | |
| Gaudi::Property< unsigned int > | m_numWidth {this, "NumberWidth", 9, "The number of digits to reserve for the events"} |
| The number of digits to reserve for the events. | |
| Gaudi::Property< bool > | m_saveCellInfo |
If true, also outputs the cell energies, times, gains, qualities and provenances. | |
| Gaudi::Property< bool > | m_outputTags {this, "OutputCellsAsTags", true, "Whether to output cell assignment as tags instead of a list of indices per cluster."} |
| Whether to output cell assignment as tags instead of a list of indices per cluster. | |
| SG::ReadHandleKey< CaloCellContainer > | m_cellsKey {this, "CellsName", "", "Name(s) of Cell Containers"} |
| vector of names of the cell containers to use as input. | |
| const CaloCell_ID * | m_calo_id {nullptr} |
| Pointer to Calo ID Helper. | |
Standard tool to output CPU cluster info to the non-standard file format that we have been using for plotting and validation purposes.
There are likely more elegant/general/generic/portable solutions, some of which might even avoid Root too, but our workflow was built around this one...
Definition at line 30 of file CaloCPUOutput.h.
| CaloCPUOutput::CaloCPUOutput | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Definition at line 17 of file CaloCPUOutput.cxx.
|
virtualdefault |
|
overridevirtual |
Definition at line 32 of file CaloCPUOutput.cxx.
|
inlinefinal |
Execute on an entire collection of clusters.
| collection | The container of clusters. (deprecated) |
Definition at line 50 of file CaloClusterCollectionProcessor.h.
|
overridevirtual |
Definition at line 23 of file CaloCPUOutput.cxx.
|
private |
|
private |
vector of names of the cell containers to use as input.
Definition at line 85 of file CaloCPUOutput.h.
|
private |
The prefix of the saved files.
Empty string by default.
Definition at line 57 of file CaloCPUOutput.h.
|
private |
The suffix of the saved files.
Empty string by default.
Definition at line 62 of file CaloCPUOutput.h.
|
private |
The number of digits to reserve for the events.
9 by default.
Definition at line 67 of file CaloCPUOutput.h.
|
private |
Whether to output cell assignment as tags instead of a list of indices per cluster.
True by default.
Definition at line 80 of file CaloCPUOutput.h.
|
private |
If true, also outputs the cell energies, times, gains, qualities and provenances.
As the GPU output contains exactly the same information, this will be redundant and thus it is defaulted to false.
Definition at line 74 of file CaloCPUOutput.h.
|
private |
The path specifying the folder to which the files should be saved.
Default ./saved_clusters
Definition at line 52 of file CaloCPUOutput.h.