Pandora
Pandora source code navigator
|
InputObjectManager class. More...
#include "InputObjectManager.h"
Public Member Functions | |
InputObjectManager (const Pandora *const pPandora) | |
Constructor. | |
virtual | ~InputObjectManager () |
Destructor. | |
Protected Types | |
typedef Manager< T >::ObjectList | ObjectList |
typedef std::map< std::string, ObjectList * > | NameToListMap |
typedef std::unordered_map< const Algorithm *, AlgorithmInfo > | AlgorithmInfoMap |
Protected Member Functions | |
virtual StatusCode | CreateInputList () |
Create the input list (accessible to algorithms), using objects created by client application. | |
virtual StatusCode | CreateTemporaryListAndSetCurrent (const Algorithm *const pAlgorithm, const ObjectList &objectList, std::string &temporaryListName) |
Change the current list to a specified temporary list. | |
virtual StatusCode | SaveList (const std::string &listName, const ObjectList &objectList) |
Save a list of objects in a list with a specified name; create new list if required. | |
virtual StatusCode | AddObjectsToList (const std::string &listName, const ObjectList &objectList) |
Add objects to a saved list with a specified name. | |
virtual StatusCode | RemoveObjectsFromList (const std::string &listName, const ObjectList &objectList) |
Remove objects from a saved list. | |
virtual StatusCode | RenameList (const std::string &oldListName, const std::string &newListName) |
Rename a saved list, altering its saved name from a specified old list name to a specified new list name. | |
virtual StatusCode | EraseAllContent () |
Erase all manager content. | |
virtual StatusCode | CreateInitialLists () |
Create initial lists. | |
virtual StatusCode | GetList (const std::string &listName, const ObjectList *&pObjectList) const |
Get a list. | |
virtual StatusCode | GetCurrentList (const ObjectList *&pObjectList, std::string &listName) const |
Get the current list. | |
virtual StatusCode | GetCurrentListName (std::string &listName) const |
Get the current list name. | |
virtual StatusCode | GetAlgorithmInputList (const Algorithm *const pAlgorithm, const ObjectList *&pObjectList, std::string &listName) const |
Get the algorithm input list. | |
virtual StatusCode | GetAlgorithmInputListName (const Algorithm *const pAlgorithm, std::string &listName) const |
Get the algorithm track list name. | |
virtual StatusCode | ResetCurrentListToAlgorithmInputList (const Algorithm *const pAlgorithm) |
Reset the current list to the algorithm input list. | |
virtual StatusCode | ReplaceCurrentAndAlgorithmInputLists (const Algorithm *const pAlgorithm, const std::string &listName) |
Replace the current and algorithm input lists with a pre-existing list. | |
virtual StatusCode | DropCurrentList (const Algorithm *const pAlgorithm) |
Drop the current list, returning the current list to its default empty/null state. | |
virtual StatusCode | CreateTemporaryListAndSetCurrent (const Algorithm *const pAlgorithm, std::string &temporaryListName) |
Create a temporary list associated with a particular algorithm. | |
virtual StatusCode | RegisterAlgorithm (const Algorithm *const pAlgorithm) |
Register an algorithm with the manager. | |
virtual StatusCode | ResetAlgorithmInfo (const Algorithm *const pAlgorithm, bool isAlgorithmFinished) |
Remove temporary lists and reset the current list to that when algorithm was initialized. | |
virtual StatusCode | ResetForNextEvent () |
Reset the manager. | |
virtual T * | Modifiable (const T *const pT) const |
Access a modifiable object, when provided with address to const object. | |
Protected Attributes | |
const std::string | m_inputListName |
The name of the input list. | |
const std::string | m_nullListName |
The name of the default empty (NULL) list. | |
const Pandora *const | m_pPandora |
The associated pandora object. | |
NameToListMap | m_nameToListMap |
The name to list map. | |
AlgorithmInfoMap | m_algorithmInfoMap |
The algorithm info map. | |
std::string | m_currentListName |
The name of the current list. | |
StringSet | m_savedLists |
The set of saved lists. | |
InputObjectManager class.
Definition at line 20 of file InputObjectManager.h.
|
protectedinherited |
|
protectedinherited |
|
protected |
Definition at line 36 of file InputObjectManager.h.
pandora::InputObjectManager< T >::InputObjectManager | ( | const Pandora *const | pPandora | ) |
Constructor.
pPandora | address of the associated pandora object |
Definition at line 24 of file InputObjectManager.cc.
|
virtual |
Destructor.
Definition at line 33 of file InputObjectManager.cc.
|
protectedvirtual |
Add objects to a saved list with a specified name.
listName | the list to add the objects to |
objectList | the list of objects to be added |
Definition at line 91 of file InputObjectManager.cc.
|
protectedvirtual |
Create initial lists.
Reimplemented from pandora::Manager< T >.
Definition at line 181 of file InputObjectManager.cc.
|
protectedvirtual |
Create the input list (accessible to algorithms), using objects created by client application.
Definition at line 40 of file InputObjectManager.cc.
|
protectedvirtual |
Change the current list to a specified temporary list.
pAlgorithm | address of the algorithm changing the current list |
objectList | the specified temporary list |
temporaryListName | to receive the name of the temporary list |
Definition at line 57 of file InputObjectManager.cc.
|
protectedvirtualinherited |
Create a temporary list associated with a particular algorithm.
pAlgorithm | address of the algorithm |
temporaryListName | to receive the name of the temporary list |
Reimplemented in pandora::AlgorithmObjectManager< T >, pandora::AlgorithmObjectManager< Cluster >, pandora::AlgorithmObjectManager< ParticleFlowObject >, and pandora::AlgorithmObjectManager< Vertex >.
Definition at line 177 of file Manager.cc.
|
protectedvirtualinherited |
Drop the current list, returning the current list to its default empty/null state.
pAlgorithm | address of the algorithm altering the lists |
Reimplemented in pandora::AlgorithmObjectManager< T >, pandora::AlgorithmObjectManager< Cluster >, pandora::AlgorithmObjectManager< ParticleFlowObject >, and pandora::AlgorithmObjectManager< Vertex >.
Definition at line 134 of file Manager.cc.
|
protectedvirtual |
Erase all manager content.
Reimplemented from pandora::Manager< T >.
Reimplemented in pandora::CaloHitManager, pandora::MCManager, and pandora::TrackManager.
Definition at line 161 of file InputObjectManager.cc.
|
protectedvirtualinherited |
Get the algorithm input list.
pAlgorithm | address of the algorithm |
pObjectList | to receive the algorithm input list |
listName | to receive the name of the algorithm input list |
Definition at line 69 of file Manager.cc.
|
inlineprotectedvirtualinherited |
Get the algorithm track list name.
pAlgorithm | address of the algorithm |
listName | to receive the algorithm input list name |
Definition at line 88 of file Manager.cc.
|
protectedvirtualinherited |
Get the current list.
pObjectList | to receive the current list |
listName | to receive the name of the current list |
Definition at line 48 of file Manager.cc.
|
inlineprotectedvirtualinherited |
Get the current list name.
listName | to receive the current list name |
Definition at line 57 of file Manager.cc.
|
protectedvirtualinherited |
Get a list.
listName | the name of the list |
pObjectList | to receive the list |
Definition at line 34 of file Manager.cc.
|
protectedvirtualinherited |
Access a modifiable object, when provided with address to const object.
pT | the address of the const object |
Definition at line 288 of file Manager.cc.
|
protectedvirtualinherited |
Register an algorithm with the manager.
pAlgorithm | address of the algorithm |
Definition at line 198 of file Manager.cc.
|
protectedvirtual |
Remove objects from a saved list.
listName | the list to remove the objects from |
objectList | the list of objects to be removed |
Definition at line 124 of file InputObjectManager.cc.
|
protectedvirtual |
Rename a saved list, altering its saved name from a specified old list name to a specified new list name.
oldListName | the old list name |
newListName | the new list name |
Reimplemented from pandora::Manager< T >.
Definition at line 150 of file InputObjectManager.cc.
|
protectedvirtualinherited |
Replace the current and algorithm input lists with a pre-existing list.
pAlgorithm | address of the algorithm changing the current list |
listName | the name of the new current (and algorithm input) list |
Reimplemented in pandora::AlgorithmObjectManager< T >, pandora::AlgorithmObjectManager< Cluster >, pandora::AlgorithmObjectManager< ParticleFlowObject >, and pandora::AlgorithmObjectManager< Vertex >.
Definition at line 110 of file Manager.cc.
|
protectedvirtualinherited |
Remove temporary lists and reset the current list to that when algorithm was initialized.
pAlgorithm | address of the algorithm altering the lists |
isAlgorithmFinished | whether the algorithm has completely finished and the algorithm info should be entirely removed |
Reimplemented in pandora::AlgorithmObjectManager< T >, pandora::AlgorithmObjectManager< Cluster >, pandora::AlgorithmObjectManager< ParticleFlowObject >, and pandora::AlgorithmObjectManager< Vertex >.
Definition at line 216 of file Manager.cc.
|
protectedvirtualinherited |
Reset the current list to the algorithm input list.
pAlgorithm | address of the algorithm changing the current track list |
Reimplemented in pandora::AlgorithmObjectManager< T >, pandora::AlgorithmObjectManager< Cluster >, pandora::AlgorithmObjectManager< ParticleFlowObject >, and pandora::AlgorithmObjectManager< Vertex >.
Definition at line 102 of file Manager.cc.
|
protectedvirtualinherited |
Reset the manager.
Definition at line 247 of file Manager.cc.
|
protectedvirtual |
Save a list of objects in a list with a specified name; create new list if required.
listName | the list name |
objectList | the object list |
Definition at line 69 of file InputObjectManager.cc.
|
protectedinherited |
|
protectedinherited |
|
protected |
The name of the input list.
Definition at line 97 of file InputObjectManager.h.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |