AliPhysics  608b256 (608b256)
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 AliEMCALGeometry;
29 //class TH1;
30 //class TH2;
31 //class TH3;
32 
33 class TString;
34 
35 #include <TObjArray.h>
36 #include <AliLog.h>
37 
38 #include "THistManager.h"
39 #include "AliAnalysisTaskEmcal.h"
40 #include "AliEMCALGeometry.h"
41 
48  public:
49 
50  enum EventEMCALTriggerType_t { // Which bit is set for the event type
51  kMB = -1, // Minimum Bias
52  kEL0 = 0,
53  kDL0 = 1,
54  kEG1 = 2,
55  kDG1 = 3,
56  kEG2 = 4,
57  kDG2 = 5,
58  kEJ1 = 6,
59  kDJ1 = 7,
60  kEJ2 = 8,
61  kDJ2 = 9
62  };
63 
65  AliEmcalTriggerSimQATask(const char *name);
66  virtual ~AliEmcalTriggerSimQATask();
67 
69 
72 
73 
74  protected:
76  void ExecOnce();
77  Bool_t Run();
79  void FillEventQA();
80 
81 // static const Int_t kNTriggerTypes = 6; // MB,L0,EG1,EG2,EJ1,EJ2
82  static const Int_t kNTriggerTypes = 11; // MB,EL0,DL0,EG1,DG1,EG2,DG2,EJ1,DJ1,EJ2,DJ2
83 // const TString fTriggerNames[kNTriggerTypes] = {"MB","L0","EG1","EG2","EJ1","EJ2"};
84  const TString fTriggerNames[kNTriggerTypes] = {"MB","EL0","DL0","EG1","DG1","EG2","DG2","EJ1","DJ1","EJ2","DJ2"};
87  TClonesArray *fTriggerPatches;
88 
93 
95 
96  // Histograms
98 
99  void DoPatchLoop(); // Loop over patches, determine trigger condition
100  void FillPatchHistograms(AliEMCALTriggerPatchInfo * patch,Int_t i); // Fill histograms with patch information
101  Int_t GeneratePatchTriggerBits(AliEMCALTriggerPatchInfo * patch); // Generate a trigger bits int for a single patch
102  void DoClusterLoop(); // Loop over clusters, fill histograms
103  void MatchClusterToPatches(AliVCluster * cluster); // Match cluster to trigger patches, fill histos
104 
105  private:
106  AliEmcalTriggerSimQATask(const AliEmcalTriggerSimQATask&); // not implemented
107  AliEmcalTriggerSimQATask &operator=(const AliEmcalTriggerSimQATask&); // not implemented
108 
109 
111  ClassDef(AliEmcalTriggerSimQATask,2);
113 };
114 
115 #endif
116 
117 
118 
Base task in the EMCAL framework.
EventEMCALTriggerType_t fTriggerTypes[kNTriggerTypes]
Trigger type array.
void MatchClusterToPatches(AliVCluster *cluster)
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()
Int_t GeneratePatchTriggerBits(AliEMCALTriggerPatchInfo *patch)
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
Float_t fMinClusterEnergy
Minimum cluster energy.
TClonesArray * fTriggerPatches
! trigger array in