AliPhysics  2c6b7ad (2c6b7ad)
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>
53 #include "AliCutValueRange.h"
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 
110 
112  Bool_t SelectSingleShowerPatch(const AliEMCALTriggerPatchInfo *patch) const;
113  Bool_t SelectJetPatch(const AliEMCALTriggerPatchInfo *patch) const;
115 
116  // Sparse Definition
117  virtual THnSparse* NewTHnSparseF(const char* name, UInt_t entries);
118  virtual void GetDimParams(Int_t iEntry,TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax);
119  // Binning helper functions
120 
121  // Utilities
122 
123 
124 private:
125 
126 
128 
130  TH1F *fHistJetPt ;
136 
137 
140 
144 };
145 #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)