AliPhysics  67e0feb (67e0feb)
AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKEMCALJETSPECTRA8TEVTRIGGERQA_H
2 #define ALIANALYSISTASKEMCALJETSPECTRA8TEVTRIGGERQA_H
3 
4 /**********************************************************************************
5  * Copyright (C) 2018, Copyright Holders of the ALICE Collaboration *
6  * All rights reserved. *
7  * *
8  * Redistribution and use in source and binary forms, with or without *
9  * modification, are permitted provided that the following conditions are met: *
10  * * Redistributions of source code must retain the above copyright *
11  * notice, this list of conditions and the following disclaimer. *
12  * * Redistributions in binary form must reproduce the above copyright *
13  * notice, this list of conditions and the following disclaimer in the *
14  * documentation and/or other materials provided with the distribution. *
15  * * Neither the name of the <organization> nor the *
16  * names of its contributors may be used to endorse or promote products *
17  * derived from this software without specific prior written permission. *
18  * *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND *
20  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
21  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
22  * DISCLAIMED. IN NO EVENT SHALL ALICE COLLABORATION BE LIABLE FOR ANY *
23  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
24  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; *
25  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
26  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
28  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
29  * *********************************************************************************/
30 
43 /* Copyright(c) 1998-2018, ALICE Experiment at CERN, All rights reserved. *
44  * See cxx source for full Copyright notice */
45 
46 
47 
49 #include "THistManager.h"
50 #include <string>
51 #include <vector>
54 #include "AliEventCuts.h"
55 #include <TCustomBinning.h>
56 #include <TString.h>
57 
58 class AliOADBContainer;
59 class AliEMCALTriggerPatchInfo;
60 class THistManager;
61 class TObjArray;
62 
75 public:
76 
80 
82  void Terminate(Option_t *option) ;
83  void ExtractMainPatch() ;
84 
85  //setters
86  void SetUseSumw2(Bool_t b) { fUseSumw2 = b ; }
87 
88 protected:
89  void ExecOnce() ;
91  Bool_t Run() ;
92 
93  void AllocateJetHistograms() ;
96  void AllocateCellHistograms() ;
98  //void AllocateMCJetHistograms() ;///< MC truth Jet Histograms
99 
100 
101 
102  void DoJetLoop() ;
103  void DoTrackLoop() ;
104  void DoClusterLoop() ;
105  void DoCellLoop() ;
106  //void DoParticleLoop() ;
107  //void DoMCJetLoop() ;
108  //Bool_t IsLEDEvent() const ;
109 
111  Bool_t SelectSingleShowerPatch(const AliEMCALTriggerPatchInfo *patch) const;
112  Bool_t SelectJetPatch(const AliEMCALTriggerPatchInfo *patch) const;
114 
115  // Sparse Definition
116  virtual THnSparse* NewTHnSparseF(const char* name, UInt_t entries);
117  virtual void GetDimParams(Int_t iEntry,TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax);
118  // Binning helper functions
119 
120  // Utilities
121 
122 
123 private:
124 
125 
127 
129  TH1F *fHistJetPt ;
135 
136 
139 
143 };
144 #endif
virtual THnSparse * NewTHnSparseF(const char *name, UInt_t entries)
double Double_t
Definition: External.C:58
void AllocateParticleHistograms()
Generator Level MC Histograms.
AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA & operator=(const AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA &)
int Int_t
Definition: External.C:63
Bool_t fUseRecalcPatches
Switch between offline (FEE) and recalc (L1) patches.
unsigned int UInt_t
Definition: External.C:33
Bool_t SelectSingleShowerPatch(const AliEMCALTriggerPatchInfo *patch) const
Implementation of a EMCal spectra task and QA for EMCal triggers.
Bool_t SelectJetPatch(const AliEMCALTriggerPatchInfo *patch) const
Base task in the EMCAL jet framework.
Container class for histograms.
Definition: THistManager.h:99
const char Option_t
Definition: External.C:48
const Int_t nbins
bool Bool_t
Definition: External.C:53
virtual void GetDimParams(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax)