AliPhysics  764b6ea (764b6ea)
AliAnalysisTaskEmcalTriggerSelection.h
Go to the documentation of this file.
1 /************************************************************************************
2  * Copyright (C) 2017, Copyright Holders of the ALICE Collaboration *
3  * All rights reserved. *
4  * *
5  * Redistribution and use in source and binary forms, with or without *
6  * modification, are permitted provided that the following conditions are met: *
7  * * Redistributions of source code must retain the above copyright *
8  * notice, this list of conditions and the following disclaimer. *
9  * * Redistributions in binary form must reproduce the above copyright *
10  * notice, this list of conditions and the following disclaimer in the *
11  * documentation and/or other materials provided with the distribution. *
12  * * Neither the name of the <organization> nor the *
13  * names of its contributors may be used to endorse or promote products *
14  * derived from this software without specific prior written permission. *
15  * *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND *
17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
19  * DISCLAIMED. IN NO EVENT SHALL ALICE COLLABORATION BE LIABLE FOR ANY *
20  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
21  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; *
22  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
23  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
25  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
26  ************************************************************************************/
27 #ifndef ALIANALYSISTASKEMCALTRIGGERSELECTION_H
28 #define ALIANALYSISTASKEMCALTRIGGERSELECTION_H
29 
30 #include <TList.h>
31 #include <TNamed.h>
32 #include <TString.h>
33 #include "AliAnalysisTaskEmcal.h"
34 
35 namespace PWG{
36 namespace EMCAL {
37 
38 class AliEmcalTriggerDecision;
39 class AliEmcalTriggerDecisionContainer;
40 class AliEmcalTriggerSelection;
41 
51 public:
58 
64  AliAnalysisTaskEmcalTriggerSelection(const char *name);
65 
70 
76  void AddTriggerSelection(AliEmcalTriggerSelection * const selection);
77 
86 
90  void AutoConfigure(const char *period);
91 
98  void ConfigurePP2016();
99 
106  void ConfigureMCPP2016();
107 
108 protected:
109 
117  public:
118 
123 
132 
140 
149 
154 
159  void Fill(const AliEmcalTriggerDecision * const decision);
160 
168  void GetHistos(TList *targetlist) const;
169 
170  private:
174  };
175 
179  virtual void UserCreateOutputObjects();
180 
184  virtual void UserExecOnce();
185 
190  virtual Bool_t Run();
191 
201  virtual Bool_t FillHistograms();
202 
209 
214  void MakeQA(const AliEmcalTriggerDecisionContainer *cont);
215 
220  void InitQA(const AliEmcalTriggerSelection *const sel);
221 
226 
228  ClassDef(AliAnalysisTaskEmcalTriggerSelection, 1); // Task running different EMCAL trigger selections
230 };
231 
232 }
233 }
234 
235 #endif /* ALIANALYSISTASKEMCALTRIGGERSELECTION_H */
Object performing offline EMCAL trigger selection.
virtual Bool_t Run()
Run over all trigger selections, and append the selection to the global trigger selection container...
void ConfigurePP2016()
Configure the trigger selection task for pp anchored to 2016.
Container for trigger decision.
void MakeQA(const AliEmcalTriggerDecisionContainer *cont)
Fill QA histograms for the event.
virtual void UserExecOnce()
Initializing common output container for trigger decision.
void SetGlobalDecisionContainerName(const char *name)
Set the name of the global trigger decision container.
void AutoConfigure(const char *period)
Automatically configure trigger decision handler for different periods.
TString fGlobalDecisionContainerName
Name of the global trigger selection.
Base task in the EMCAL framework.
virtual Bool_t FillHistograms()
Filling basic QA Histograms of the trigger selection task.
void InitQA(const AliEmcalTriggerSelection *const sel)
Initialize QA histograms for trigger selection.
Namespace for EMCAL framework classes and task.
AliEmcalTriggerDecisionContainer * GetGlobalTriggerDecisionContainer() const
Find the main trigger container in the input event.
AliEmcalTriggerSelectionQA & operator=(const AliEmcalTriggerSelectionQA &ref)
Assignment operator.
void GetHistos(TList *targetlist) const
Fill histograms of this QA component into the targetlist.
Namespace for PWG framework classes.
Task providing an event selection for EMCAL-triggered events based on the reconstructed EMCAL trigger...
void ConfigureMCPP2016()
Configure the trigger selection task for MC anchored to pp 2016.
bool Bool_t
Definition: External.C:53
void AddTriggerSelection(AliEmcalTriggerSelection *const selection)
Definition: External.C:196