AliPhysics  a0db429 (a0db429)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AliEmcalPatchFromCellMaker.h
Go to the documentation of this file.
1 #ifndef ALIEMCALPATCHFROMCELLMAKER_H
2 #define ALIEMCALPATCHFROMCELLMAKER_H
3 
4 class TClonesArray;
5 class TH3F;
6 class AliEmcalTriggerBitConfigAP;
7 
8 #include "AliAnalysisTaskEmcal.h"
9 
11  public:
13  AliEmcalPatchFromCellMaker(const char *name);
15 
16  void SetCaloTriggersOutName(const char *name) { fCaloTriggersOutName = name; }
17  void SetPatchDimension(Int_t i) { fPatchDim = i; }
18  void SetMinCellE(Double_t e) { fMinCellE = e; }
19  void SetCellTimeCuts(Double_t min, Double_t max) { fCellTimeMin = min; fCellTimeMax = max; }
20  void ActivateSlidingPatch(Bool_t b) { fL1Slide = b; }
21 
22  protected:
23  enum{
24  kPatchCols = 48,
26  };
27 
28  void ExecOnce();
29  Bool_t Run();
30  // Bool_t FillHistograms();
32 
33  Bool_t FillPatchADCSimple();
35 
36  //Getters
37  Int_t GetPatchDimension() const { return fPatchDim; }
38  Double_t GetPatchArea() const { return (Double_t)(fPatchDim*fPatchDim)*0.014*0.014; }
39  Int_t GetDimFastor() const;
40  Int_t GetSlidingStepSizeFastor() const;
41 
42  TString fCaloTriggersOutName; // name of output patch array
43  TClonesArray *fCaloTriggersOut;
44 
45  Double_t fPatchADCSimple[kPatchCols][kPatchRows]; // patch map for simple offline trigger
46  Double_t fPatchESimple[kPatchCols][kPatchRows]; // patch map for simple offline trigger
47 
48  Int_t fPatchDim; // dimension of patch in #cells
49  Double_t fMinCellE; // minimum cell energy
50  Double_t fCellTimeMin; // minimum time cell
51  Double_t fCellTimeMax; // maximum time cell
52  Bool_t fL1Slide; // sliding window on
53  AliEmcalTriggerBitConfigAP *fTriggerBitConfig; // dummy trigger bit config
54 
55  private:
59 
60  AliEmcalPatchFromCellMaker(const AliEmcalPatchFromCellMaker&); // not implemented
62 
63  ClassDef(AliEmcalPatchFromCellMaker, 1); // Task to make PicoTracks in a grid corresponding to EMCAL/DCAL acceptance
64 };
65 #endif
Double_t fPatchESimple[kPatchCols][kPatchRows]
AliEmcalTriggerBitConfigAP * fTriggerBitConfig
AliEmcalPatchFromCellMaker & operator=(const AliEmcalPatchFromCellMaker &)
void SetCellTimeCuts(Double_t min, Double_t max)
TH2F * fh2CellEnergyVsTime
cell E, eta, phi
Double_t fPatchADCSimple[kPatchCols][kPatchRows]
trigger array out
void SetCaloTriggersOutName(const char *name)
ClassDef(AliEmcalPatchFromCellMaker, 1)
TH1F * fh1CellEnergySum
emcal cell energy vs time