AliPhysics  1976924 (1976924)
AliEMCALTriggerOfflineLightQAPP.h
Go to the documentation of this file.
1 
10 #ifndef ALIEMCALTRIGGEROFFLINELIGHTQAPP_H
11 #define ALIEMCALTRIGGEROFFLINELIGHTQAPP_H
12 
13 /**************************************************************************
14 * Copyright(c) 1998-2017, ALICE Experiment at CERN, All rights reserved. *
15 * *
16 * Author: The ALICE Off-line Project. *
17 * Contributors are mentioned in the code where appropriate. *
18 * *
19 * Permission to use, copy, modify and distribute this software and its *
20 * documentation strictly for non-commercial purposes is hereby granted *
21 * without fee, provided that the above copyright notice appears in all *
22 * copies and that both the copyright notice and this permission notice *
23 * appear in the supporting documentation. The authors make no claims *
24 * about the suitability of this software for any purpose. It is *
25 * provided "as is" without express or implied warranty. *
26 **************************************************************************/
27 
28 // C++
29 #include <set>
30 #include <iostream>
31 
32 // Root
33 #include <TNamed.h>
34 #include <TArrayF.h>
35 
36 // AliRoot
37 #include <AliEMCALTriggerQA.h>
38 
39 // AliPhysics
40 #include "THistManager.h"
41 
42 class AliEMCALTriggerPatchInfo;
43 class TObjArray;
44 class THashList;
45 class AliEMCALTriggerFastOR;
46 class AliEMCALGeometry;
47 class AliVCaloCells;
48 
49 class AliEMCALTriggerOfflineLightQAPP : public AliEMCALTriggerQA {
50 public:
51 
53  AliEMCALTriggerOfflineLightQAPP(const char* name);
56 
57  void SetL0TimeRange(Int_t min, Int_t max) { fL0MinTime = min; fL0MaxTime = max; }
59 
60  // TRU bad channel
61  void AddFastORBadChannel(Short_t absId) { fBadChannels.insert(absId); }
62  void ReadFastORBadChannelFromStream(std::istream& stream);
63  void ReadFastORBadChannelFromFile(const char* fname);
64 
65  // Overloaded methods of AliEMCALTriggerQA
66  void Init();
67  void ProcessPatch(const AliEMCALTriggerPatchInfo* patch);
68  void ProcessFastor(const AliEMCALTriggerFastOR* fastor, AliVCaloCells* cells = 0);
69  void ProcessCell(const AliEMCALCellInfo& cell) {;}
70  void EventCompleted();
72  void EventTimeStamp(UInt_t timeStamp);
73 
74 
75 protected:
76  std::set<Short_t> fBadChannels;
77 
83 
84  const AliEMCALTriggerPatchInfo *fMaxPatchEMCal[fgkNTriggerTypes][fgkNPatchTypes];
85  const AliEMCALTriggerPatchInfo *fMaxPatchDCal[fgkNTriggerTypes][fgkNPatchTypes];
88 
89 private:
91 
95 };
96 
97 #endif
AliEMCALTriggerOfflineLightQAPP()
Dummy constructor for ROOT I/O.
UInt_t fMinL0FastORAmp
Minimum L0 amplitude of the FastORs.
void ReadFastORBadChannelFromStream(std::istream &stream)
Int_t fMaxFORabsId
! Maximum FastOR abs id
void ProcessFastor(const AliEMCALTriggerFastOR *fastor, AliVCaloCells *cells=0)
const AliEMCALTriggerPatchInfo * fMaxPatchDCal[fgkNTriggerTypes][fgkNPatchTypes]
! DCal max patch (will be reset each event)
void Init()
Initialize the class, i.e. allocate histograms.
UInt_t fMinL1FastORAmp
Minimum L1 amplitude of the FastORs.
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
THashList * GetListOfHistograms() const
Get the list of histograms.
Definition: THistManager.h:671
void ProcessCell(const AliEMCALCellInfo &cell)
void ProcessPatch(const AliEMCALTriggerPatchInfo *patch)
THistManager fHistManager
Histogram manager.
const AliEMCALTriggerPatchInfo * fMaxPatchEMCal[fgkNTriggerTypes][fgkNPatchTypes]
! EMCal max patch (will be reset each event)
std::set< Short_t > fBadChannels
Container of bad channels.
short Short_t
Definition: External.C:23
Container class for histograms.
Definition: THistManager.h:99
AliEMCALTriggerOfflineLightQAPP & operator=(const AliEMCALTriggerOfflineLightQAPP &)