AliPhysics  09a22ae (09a22ae)
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  kEG1 = 1,
52  kEG2 = 2,
53  kEJ1 = 3,
54  kEJ2 = 4
55  };
56 
58  AliEmcalTriggerSimQATask(const char *name);
59  virtual ~AliEmcalTriggerSimQATask();
60 
62 
64 
65 
66  protected:
68  void ExecOnce();
69  Bool_t Run();
71  void FillEventQA();
72 
73  static const Int_t kNTriggerTypes = 6; // MB,L0,EG1,EG2,EJ1,EJ2
74  const TString fTriggerNames[kNTriggerTypes] = {"MB","L0","EG1","EG2","EJ1","EJ2"};
77  TClonesArray *fTriggerPatches;
78 
82 
84 
85  // Histograms
87 
88  void DoPatchLoop(); // Loop over patches, determine trigger condition
89  void FillPatchHistograms(AliEMCALTriggerPatchInfo * patch,Int_t i); // Fill histograms with patch information
90  void DoClusterLoop(); // Loop over clusters, fill histograms
91 
92  private:
93  AliEmcalTriggerSimQATask(const AliEmcalTriggerSimQATask&); // not implemented
95 
96 
98  ClassDef(AliEmcalTriggerSimQATask,2);
100 };
101 
102 #endif
103 
104 
105 
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