![]() |
AliPhysics
0937c79 (0937c79)
|
Container for trigger decision. More...
#include <AliEmcalTriggerDecision.h>
Public Member Functions | |
AliEmcalTriggerDecision () | |
Dummy constructor. More... | |
AliEmcalTriggerDecision (const char *name, const char *title="") | |
The main (named) constructor. More... | |
virtual | ~AliEmcalTriggerDecision () |
Destructor. More... | |
const AliEMCALTriggerPatchInfo * | GetMainPatch () const |
Get the highest energetic trigger patch of the event firing the trigger. More... | |
const AliEmcalTriggerSelectionCuts * | GetSelectionCuts () const |
Get the selection cuts used in the trigger selection. More... | |
const TList * | GetAcceptedPatches () const |
Get the list of all patches in the event satisfying the trigger condition. More... | |
Bool_t | IsSelected () const |
Check whether event is selected under the given trigger. More... | |
void | SetSelectionCuts (const AliEmcalTriggerSelectionCuts *const cuts) |
Set the selection cuts used in the trigger selection. More... | |
void | SetMainPatch (const AliEMCALTriggerPatchInfo *const mainpatch) |
Set the main (highest-energetic) trigger patch. More... | |
void | AddAcceptedPatch (AliEMCALTriggerPatchInfo *const acceptedPatch) |
Protected Attributes | |
const AliEMCALTriggerPatchInfo * | fMainPatch |
Main trigger patch which fires the decision. More... | |
const AliEmcalTriggerSelectionCuts * | fSelectionCuts |
Pointer to the cuts used for the trigger selection. More... | |
TList | fAcceptedPatches |
All trigger patches which are accepted as well. More... | |
Private Member Functions | |
AliEmcalTriggerDecision (const AliEmcalTriggerDecision &ref) | |
AliEmcalTriggerDecision & | operator= (const AliEmcalTriggerDecision &ref) |
Container for trigger decision.
AliEmcalTriggerDecision object collect all relevant information for a given Level1 trigger:
An AliEmcalTriggerDecision object handles only one Level1 trigger class, each trigger class supported by the dataset has its own AliEmcalTriggerDecision object.
The presence of a maximum patch marks an event as triggered. Consequently it is sufficient to check for the presence of this. The following example selects events triggered by the EG1 trigger:
The trigger is fired if at least one patch above threshold according to the definition in the associated trigger selection cuts is found. Consequently all patches above threshold are valid trigger patches. They are attached to the event and can be queried via GetAcceptedPatches(). The following example draws the energy spectrum of all accepted trigger patches:
The AliEmcalTriggerDecision object is not owner of the patches. Delete calls would probably lead to double delets. Users must not delete patches attached.
The level1 trigger is specified in the corresponding AliEmcalTriggerSelectionCuts object. The specifications consist of
The associated trigger selection cut object is used in the trigger selection process and linked to this trigger selection object. It can be queried via GetSelectionCuts(). The following example indicates how to query the trigger threshold:
The trigger decision object is not owner of the trigger selection cuts. Users must not delete them.
Definition at line 117 of file AliEmcalTriggerDecision.h.
PWG::EMCAL::AliEmcalTriggerDecision::AliEmcalTriggerDecision | ( | ) |
Dummy constructor.
Needed for I/O, not to be used by the user
Definition at line 36 of file AliEmcalTriggerDecision.cxx.
PWG::EMCAL::AliEmcalTriggerDecision::AliEmcalTriggerDecision | ( | const char * | name, |
const char * | title = "" |
||
) |
The main (named) constructor.
The decision object can be read out later by the consumer task according to the name. The name has to be a valid Level1 trigger name of the corresponding Level1 trigger supported in the data set, according to the EMCAL naming convention.
[in] | name | Name of the decision object |
[in] | title | Title of the decision object |
Definition at line 45 of file AliEmcalTriggerDecision.cxx.
|
virtual |
Destructor.
As this class is not owner of the trigger patches the destructor will not delete them. Deleting trigger patches has to be the responsibility of the owner (typically the TClonesArray created by the trigger maker attached to the input event).
Definition at line 54 of file AliEmcalTriggerDecision.cxx.
|
private |
void PWG::EMCAL::AliEmcalTriggerDecision::AddAcceptedPatch | ( | AliEMCALTriggerPatchInfo *const | acceptedPatch | ) |
Add accepted patch to the trigger decision
Patches added to the trigger selection object must comply with the trigger definition specified in the corresponding AliEmcalTriggerDecision object. All accepted patches would have fired the corresponding Level1 trigger.
[in] | patch | the accepted patch |
Definition at line 58 of file AliEmcalTriggerDecision.cxx.
Referenced by PWG::EMCAL::AliEmcalTriggerSelection::MakeDecison(), and SetMainPatch().
|
inline |
Get the list of all patches in the event satisfying the trigger condition.
The trigger patch selection is specified in the PWG::EMCAL::AliEmcalTriggerSelectionCuts object which can be obtained via GetSelectionCuts() and is configured in the task PWG::EMCAL::AliAnalysisTaskEmcalTrigger selection. Selected trigger patches must be above the trigger threshold for the given trigger class according to the energy definition specified in the corresponding AliEmcalTriggerSelectionCuts (ADC amplitude or offline patch energy)
Definition at line 187 of file AliEmcalTriggerDecision.h.
|
inline |
Get the highest energetic trigger patch of the event firing the trigger.
The highest energic patch is defined according to the energy definition (FastOR ADC amplitude or FEE energy) and matching patch type above threshold. The presence of a main patch indicates that the event was fired for the Level1 trigger handled by this trigger selection.
Definition at line 161 of file AliEmcalTriggerDecision.h.
Referenced by PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::AliEmcalTriggerSelectionQA::Fill().
|
inline |
Get the selection cuts used in the trigger selection.
Selection cuts specify the trigger patch selection configuration for the Level1 trigger producing this trigger selection result (patch type, energy definition, trigger threshold) and process the trigger patch selection.
Definition at line 172 of file AliEmcalTriggerDecision.h.
|
inline |
Check whether event is selected under the given trigger.
An event is selected if a main (highest energy) patch was found, indicating at least one patch was above nominal threshold according to the energy definition specified in the corresponding AliEmcalTriggerSelectionCuts object.
Definition at line 199 of file AliEmcalTriggerDecision.h.
Referenced by PWG::EMCAL::AliEmcalTriggerDecisionContainer::IsEventSelected(), and PWGJE::EMCALJetTasks::Test::AliAnalysisTaskEmcalTriggerSelectionTest::Run().
|
private |
|
inline |
Set the main (highest-energetic) trigger patch.
The main patch is defined as the highest energetic trigger patch according to patch type and energy definition selected by the associated trigger selection cuts.
Setting the main patch marks the event as triggered for the given Level1 trigger producing this result.
[in] | mainpatch | Highest energetic trigger patch of the event firing the trigger |
Definition at line 227 of file AliEmcalTriggerDecision.h.
Referenced by PWG::EMCAL::AliEmcalTriggerSelection::MakeDecison().
|
inline |
Set the selection cuts used in the trigger selection.
Selection cuts specify the trigger patch selection configuration for the Level1 trigger producing this trigger selection result (patch type, energy definition, trigger threshold) and process the trigger patch selection.
Users can access the trigger selection cuts in thier task via the corresponding getter (GetSelectionCuts)
[in] | cuts | Selection cuts for the given trigger class |
Definition at line 213 of file AliEmcalTriggerDecision.h.
Referenced by PWG::EMCAL::AliEmcalTriggerSelection::MakeDecison().
|
protected |
All trigger patches which are accepted as well.
Definition at line 244 of file AliEmcalTriggerDecision.h.
Referenced by AddAcceptedPatch(), AliEmcalTriggerDecision(), GetAcceptedPatches(), and ~AliEmcalTriggerDecision().
|
protected |
Main trigger patch which fires the decision.
Definition at line 242 of file AliEmcalTriggerDecision.h.
Referenced by GetMainPatch(), IsSelected(), and SetMainPatch().
|
protected |
Pointer to the cuts used for the trigger selection.
Definition at line 243 of file AliEmcalTriggerDecision.h.
Referenced by GetSelectionCuts(), and SetSelectionCuts().