AliPhysics  59e0e03 (59e0e03)
AliAnalysisTaskEmcalPatchMasking.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKEMCALPATCHMASKING_H
2 #define ALIANALYSISTASKEMCALPATCHMASKING_H
3 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 #include "AliAnalysisTaskEmcal.h"
7 #include "AliEMCALTriggerDataGrid.h"
8 #include <TString.h>
9 #include <vector>
10 
12 class AliOADBContainer;
13 class THistManager;
14 
15 namespace EMCalTriggerPtAnalysis {
16 
24 public:
25 
30 
36  AliAnalysisTaskEmcalPatchMasking(const char *name);
37 
42 
49  void SetRequireTrigger(UInt_t triggerbits, const TString & triggerstring = "") {
50  fTriggerBits = triggerbits; fTriggerPattern = triggerstring;
51  }
52 
57  void SetMaskedFastorOADB(const TString &oadbcont) { fNameMaskedFastorOADB = oadbcont; }
58 
59 protected:
60 
61  virtual void UserCreateOutputObjects();
62  virtual bool IsEventSelected();
63  virtual bool Run();
64 
69  virtual void ExecOnce();
70 
76  virtual void RunChanged(int newrun);
77 
81  void PrepareL1FastorADC();
82 
90  AliEMCALTriggerPatchADCInfoAP *MakeFastorADCValuesForPatch(const AliEMCALTriggerPatchInfo &patch) const;
91 
97  void ProcessPatch(const AliEMCALTriggerPatchInfo &patch);
98 
105  void ProcessMaxPatch(const AliEMCALTriggerPatchInfo &patch, const TString &maxtype);
106 
111 
113  AliOADBContainer *fMaskedFastorOADB;
114  std::vector<UShort_t> fListMaskedFastors;
115 
116 private:
119 
123 };
124 
125 } /* namespace EMCalTriggerPtAnalysis */
126 
127 #endif /* ALIANALYSISTASKEMCALPATCHMASKING_H */
void SetRequireTrigger(UInt_t triggerbits, const TString &triggerstring="")
TString fNameMaskedFastorOADB
Name of the masked fastor OADB container.
Base task in the EMCAL framework.
std::vector< UShort_t > fListMaskedFastors
List of masked fastors.
AliAnalysisTaskEmcalPatchMasking & operator=(const AliAnalysisTaskEmcalPatchMasking &)
Investigation of observables related to masked fastors within trigger patches.
AliEMCALTriggerPatchADCInfoAP * MakeFastorADCValuesForPatch(const AliEMCALTriggerPatchInfo &patch) const
unsigned int UInt_t
Definition: External.C:33
void ProcessMaxPatch(const AliEMCALTriggerPatchInfo &patch, const TString &maxtype)
unsigned long ULong_t
Definition: External.C:38
AliOADBContainer * fMaskedFastorOADB
! OADB container of the masked fastors
Analysis of high- tracks in triggered events.
Container class for histograms.
Definition: THistManager.h:99
virtual bool Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.