AliPhysics  c7b8e89 (c7b8e89)
AliEmcalTriggerSimQATask.h
Go to the documentation of this file.
1 
8 #ifndef ALIEMCALTRIGGERSIMQATASK_H
9 #define ALIEMCALTRIGGERSIMQATASK_H
10 
11 /**************************************************************************
12  * Copyright(c) 1998-2018, ALICE Experiment at CERN, All rights reserved. *
13  * *
14  * Author: The ALICE Off-line Project. *
15  * Contributors are mentioned in the code where appropriate. *
16  * *
17  * Permission to use, copy, modify and distribute this software and its *
18  * documentation strictly for non-commercial purposes is hereby granted *
19  * without fee, provided that the above copyright notice appears in all *
20  * copies and that both the copyright notice and this permission notice *
21  * appear in the supporting documentation. The authors make no claims *
22  * about the suitability of this software for any purpose. It is *
23  * provided "as is" without express or implied warranty. *
24  **************************************************************************/
25 
26 class TClonesArray;
27 class THistManager;
28 //class TH1;
29 //class TH2;
30 //class TH3;
31 
32 class TString;
33 
34 #include <TObjArray.h>
35 #include <AliLog.h>
36 
37 #include "THistManager.h"
38 #include "AliAnalysisTaskEmcal.h"
39 
46  public:
47 
48  enum EventEMCALTriggerType_t { // Which bit is set for the event type
49  kNTr = -1, // No Trigger
50  kEL0 = 0,
51  kEG1 = 1,
52  kEG2 = 2,
53  kEJ1 = 3,
54  kEJ2 = 4
55  };
56 
58  AliEmcalTriggerSimQATask(const char *name);
59  virtual ~AliEmcalTriggerSimQATask();
60 
62 
63  protected:
65  void ExecOnce();
66  Bool_t Run();
68  void FillEventQA();
69 
70  static const Int_t kNTriggerTypes = 6; // No Trigger,L0,EG1,EG2,EJ1,EJ2
71  const TString fTriggerNames[kNTriggerTypes] = {"NTr","L0","EG1","EG2","EJ1","EJ2"};
74  TClonesArray *fTriggerPatches;
75 
79 
81 
82  // Histograms
84 
85  void DoPatchLoop(); // Loop over patches, determine trigger condition
86  void DoClusterLoop(); // Loop over clusters, fill histograms
87 
88  private:
89  AliEmcalTriggerSimQATask(const AliEmcalTriggerSimQATask&); // not implemented
91 
92 
94  ClassDef(AliEmcalTriggerSimQATask,2);
96 };
97 
98 #endif
99 
100 
101 
Base task in the EMCAL framework.
EventEMCALTriggerType_t fTriggerTypes[kNTriggerTypes]
! Trigger type array
Float_t fMaxPt
Histogram pt limit.
Float_t fPtBinWidth
Histogram pt bin width.
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
AliEmcalTriggerSimQATask & operator=(const AliEmcalTriggerSimQATask &)
Int_t fMinAmplitude
Minimum trigger patch amplitude.
Int_t fEventTriggerBits
! Variable storing trigger bits for entire event, set by DoPatchLoop()
const TString fTriggerNames[kNTriggerTypes]
TString fTriggerPatchesName
name of input trigger array
static AliEmcalTriggerSimQATask * AddTaskEmcalTriggerSimQA()
THistManager fHistManager
Histogram Manager.
Container class for histograms.
Definition: THistManager.h:99
EMCAL trigger simulation QA Task Produces QA histograms for the simulated EMCAL trigger in MC...
bool Bool_t
Definition: External.C:53
TClonesArray * fTriggerPatches
! trigger array in