AliPhysics  c2ade29 (c2ade29)
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  kMB = -1, // Minimum Bias
50  kEL0 = 0,
51  kDL0 = 1,
52  kEG1 = 2,
53  kDG1 = 3,
54  kEG2 = 4,
55  kDG2 = 5,
56  kEJ1 = 6,
57  kDJ1 = 7,
58  kEJ2 = 8,
59  kDJ2 = 9
60  };
61 
63  AliEmcalTriggerSimQATask(const char *name);
64  virtual ~AliEmcalTriggerSimQATask();
65 
67 
69 
70 
71  protected:
73  void ExecOnce();
74  Bool_t Run();
76  void FillEventQA();
77 
78 // static const Int_t kNTriggerTypes = 6; // MB,L0,EG1,EG2,EJ1,EJ2
79  static const Int_t kNTriggerTypes = 11; // MB,EL0,DL0,EG1,DG1,EG2,DG2,EJ1,DJ1,EJ2,DJ2
80 // const TString fTriggerNames[kNTriggerTypes] = {"MB","L0","EG1","EG2","EJ1","EJ2"};
81  const TString fTriggerNames[kNTriggerTypes] = {"MB","EL0","DL0","EG1","DG1","EG2","DG2","EJ1","DJ1","EJ2","DJ2"};
84  TClonesArray *fTriggerPatches;
85 
89 
91 
92  // Histograms
94 
95  void DoPatchLoop(); // Loop over patches, determine trigger condition
96  void FillPatchHistograms(AliEMCALTriggerPatchInfo * patch,Int_t i); // Fill histograms with patch information
97  void DoClusterLoop(); // Loop over clusters, fill histograms
98 
99  private:
100  AliEmcalTriggerSimQATask(const AliEmcalTriggerSimQATask&); // not implemented
101  AliEmcalTriggerSimQATask &operator=(const AliEmcalTriggerSimQATask&); // not implemented
102 
103 
105  ClassDef(AliEmcalTriggerSimQATask,2);
107 };
108 
109 #endif
110 
111 
112 
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
void FillPatchHistograms(AliEMCALTriggerPatchInfo *patch, Int_t i)
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