![]() |
AliPhysics
2aaea23 (2aaea23)
|
#include <AliEmcalContainerUtils.h>
Public Types | |
enum | InputObject_t { kNoDefinedInputObject = -1, kCaloCells = 0, kCluster = 1, kTrack = 2 } |
Type of input object to be created More... | |
Static Public Member Functions | |
static UInt_t | DeterminePhysicsSelectionFromYAML (const std::vector< std::string > &selections) |
static std::string | DetermineUseDefaultName (InputObject_t objType) |
static std::string | DetermineUseDefaultName (InputObject_t objType, bool esdMode, bool returnObjectType=false) |
static const AliVEvent * | GetEvent (const AliVEvent *inputEvent, bool isEmbedding=false) |
static AliVEvent * | GetEvent (AliVEvent *inputEvent, bool isEmbedding=false) |
template<class T > | |
static T * | AddContainer (const char *n, TObjArray &collection) |
template<class T > | |
static T * | GetContainer (Int_t i, const TObjArray &collection) |
template<class T > | |
static T * | GetContainer (const char *name, const TObjArray &collection) |
Static Public Attributes | |
static const std::map< std::string, AliVEvent::EOfflineTriggerTypes > | fgkPhysicsSelectionMap |
Relates string to the physics selection enumeration for YAML configuration. More... | |
Definition at line 39 of file AliEmcalContainerUtils.h.
Type of input object to be created
Enumerator | |
---|---|
kNoDefinedInputObject |
! Not initialized type |
kCaloCells |
! Calo cells |
kCluster |
! Cluster container |
kTrack |
! Track container |
Definition at line 45 of file AliEmcalContainerUtils.h.
|
inlinestatic |
Create new container and attach it to the passed collection. The name provided to this function must match the name of the array attached to the new container inside the input event.
[in] | n | Name of the container and the array the container points to |
[in] | collection | Collection into which the new container will be added |
Definition at line 90 of file AliEmcalContainerUtils.h.
|
static |
Determines the physics selection that is retrieved from a YAML configuration. Note that the result is an OR of all of the individual selections in the input.
UInt_t
is what is used for fOfflineTriggerMask, so it's fine to return it here. Definition at line 77 of file AliEmcalContainerUtils.cxx.
Referenced by AliAnalysisTaskEmcalEmbeddingHelper::RetrieveTaskPropertiesFromYAMLConfig().
|
static |
Determines the "usedefault" pattern using the Analysis Manager to determine the datatype automatically. This will often work fine, but it may not always. Note that the use cause for this function is assumed to be solely about returning the "usedefault" collection name and not the object type.
[in] | objType | Type of the input object |
Definition at line 95 of file AliEmcalContainerUtils.cxx.
Referenced by AliEmcalCorrectionTask::AddContainer(), AliEmcalCorrectionTask::CheckForContainerArray(), PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetHCorrelations::ConfigureForEmbeddingAnalysis(), PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetHCorrelations::ConfigureForStandardAnalysis(), AliEmcalCopyCollection::CreateNewObjectBranch(), PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetHCorrelations::CreateParticleOrTrackContainer(), AliEmcalCorrectionCellCombineCollections::Initialize(), AliEmcalCopyCollection::NewBranch(), PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetHCorrelations::RetrieveAndInitializeJESCorrectionHist(), and AliEmcalCorrectionTask::SetupCellsInfo().
|
static |
Given a container type, it returns the proper default branch name based on the "usedefault" pattern. This is useful to properly handle creating input objects such as AliEmcalContainer derived objects. If returnObjectType is true, it returns the "default" (unlikely to change) object type instead of the branch name. This is useful to properly determine the type of an object for a TClonesArray.
This function can also be very useful in places such as an AddTask(). Using it can significantly reduce code duplication!
[in] | objType | Type of the input object |
[in] | esdMode | True if running with an ESD |
[in] | returnObjectType | Returns the "default" type of the object rather than the branch name |
Definition at line 148 of file AliEmcalContainerUtils.cxx.
|
inlinestatic |
Get \( i^{th} \) container contained in the collection
[in] | i | Index of the container |
[in] | collection | Collection which stores available containers |
Definition at line 108 of file AliEmcalContainerUtils.h.
|
inlinestatic |
Find container container in the collection according to its name
[in] | name | Name of the container |
[in] | collection | Collection which stores available containers |
Definition at line 122 of file AliEmcalContainerUtils.h.
|
static |
Get the proper event based on whether embedding is enabled or not. Useful when determining from which event an input object should be retrieved. It could either be the current input event or an embedded event. This is the const version.
[in] | inputEvent | The input event of the analysis. Will be returned if nothing else is requested. Usually just InputEvent(). |
[in] | isEmbedding | True if the event from embedding should be used. |
Definition at line 224 of file AliEmcalContainerUtils.cxx.
Referenced by AliEmcalCorrectionTask::CheckForContainerArray(), AliEmcalCopyCollection::CreateNewObjectBranch(), GetEvent(), AliEmcalCorrectionEventManager::InputEvent(), and AliEmcalCorrectionTask::SetCellsObjectInCellContainerBasedOnProperties().
|
static |
Get the proper event based on whether embedding is enabled or not. Useful when determining from which event an input object should be retrieved. It could either be the current input event or an embedded event. This is the non-const version.
[in] | inputEvent | The input event of the analysis. Will be returned if nothing else is requested. Usually just InputEvent(). |
[in] | isEmbedding | True if the event from embedding should be used. |
Definition at line 251 of file AliEmcalContainerUtils.cxx.
|
static |
Relates string to the physics selection enumeration for YAML configuration.
!
Definition at line 54 of file AliEmcalContainerUtils.h.
Referenced by DeterminePhysicsSelectionFromYAML().