AliPhysics  41af4b0 (41af4b0)
AliEMCALTriggerOfflineQAPP.h
Go to the documentation of this file.
1 
9 #ifndef ALIEMCALTRIGGEROFFLINEQAPP_H
10 #define ALIEMCALTRIGGEROFFLINEQAPP_H
11 
12 /**************************************************************************
13 * Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
14 * *
15 * Author: The ALICE Off-line Project. *
16 * Contributors are mentioned in the code where appropriate. *
17 * *
18 * Permission to use, copy, modify and distribute this software and its *
19 * documentation strictly for non-commercial purposes is hereby granted *
20 * without fee, provided that the above copyright notice appears in all *
21 * copies and that both the copyright notice and this permission notice *
22 * appear in the supporting documentation. The authors make no claims *
23 * about the suitability of this software for any purpose. It is *
24 * provided "as is" without express or implied warranty. *
25 **************************************************************************/
26 
27 // C++
28 #include <set>
29 #include <iostream>
30 
31 // Root
32 #include <TNamed.h>
33 #include <TArrayF.h>
34 
35 // AliRoot
36 #include <AliEMCALTriggerQA.h>
37 
38 // AliPhysics
39 #include "THistManager.h"
40 
41 class AliEMCALTriggerPatchInfo;
42 class TObjArray;
43 class THashList;
44 class AliEMCALTriggerFastOR;
45 class AliEMCALGeometry;
46 class AliVCaloCells;
47 
48 class AliEMCALTriggerOfflineQAPP : public AliEMCALTriggerQA {
49 public:
50 
52  AliEMCALTriggerOfflineQAPP(const char* name);
55 
56  void SetL0TimeRange(Int_t min, Int_t max) { fL0MinTime = min; fL0MaxTime = max; }
58  void EnableDCal(Bool_t e = kTRUE) { fDCalPlots = e; }
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  void AddOfflineBadChannel(Short_t absId) { fOfflineBadChannels.insert(absId) ; }
65  void ReadOfflineBadChannelFromFile(const char* fname);
66  void ReadOfflineBadChannelFromStream(std::istream& stream);
67 
68  // Overloaded methods of AliEMCALTriggerQA
69  void Init();
70  void ProcessPatch(const AliEMCALTriggerPatchInfo* patch);
71  void ProcessFastor(const AliEMCALTriggerFastOR* fastor, AliVCaloCells* cells = 0);
72  void ProcessCell(const AliEMCALCellInfo& cell);
73  void EventCompleted();
75  void EventTimeStamp(UInt_t timeStamp);
76 
77 
78 protected:
79 
80  std::set<Short_t> fOfflineBadChannels;
81  std::set<Short_t> fBadChannels;
82 
90 
91  const AliEMCALTriggerPatchInfo *fMaxPatchEMCal[fgkNTriggerTypes][fgkNPatchTypes];
92  const AliEMCALTriggerPatchInfo *fMaxPatchDCal[fgkNTriggerTypes][fgkNPatchTypes];
107 
108 private:
110 
112  ClassDef(AliEMCALTriggerOfflineQAPP, 1);
114 };
115 
116 #endif
void ProcessCell(const AliEMCALCellInfo &cell)
void ReadFastORBadChannelFromFile(const char *fname)
Int_t fNL0EMCal
! EMCal number of L0 FastORs (will be reset each event)
AliEMCALTriggerOfflineQAPP()
Dummy constructor for ROOT I/O.
Int_t fSumL1DCal
! DCal sum of all online energy deposition (will be reset each event)
void ReadOfflineBadChannelFromStream(std::istream &stream)
double Double_t
Definition: External.C:58
Int_t fNL1DCal
! DCal number of L1 FastORs (will be reset each event)
Int_t fSumL0DCal
! DCal sum of all online energy deposition (will be reset each event)
void SetFastORandCellThresholds(Int_t l0, Int_t l1, Double_t cell)
AliEMCALTriggerOfflineQAPP & operator=(const AliEMCALTriggerOfflineQAPP &)
Int_t fNL0DCal
! DCal number of L0 FastORs (will be reset each event)
std::set< Short_t > fBadChannels
Container of bad channels.
Class to generate EMCal trigger QA plots in pp collisions.
UInt_t fMinL0FastORAmp
Minimum L0 amplitude of the FastORs.
Double_t fMinCellAmp
Minimum offline amplitude of the cells.
virtual ~AliEMCALTriggerOfflineQAPP()
Destructor.
void ProcessFastor(const AliEMCALTriggerFastOR *fastor, AliVCaloCells *cells=0)
int Int_t
Definition: External.C:63
Bool_t fDCalPlots
Whether to add DCal QA plots.
Int_t fNL1EMCal
! EMCal number of L1 FastORs (will be reset each event)
unsigned int UInt_t
Definition: External.C:33
THashList * GetListOfHistograms() const
Get the list of histograms.
Definition: THistManager.h:671
Int_t fNTotTRU
! Total number of TRUs
void Init()
Initialize the class, i.e. allocate histograms.
void SetL0TimeRange(Int_t min, Int_t max)
Int_t fMaxFORabsId
! Maximum FastOR abs id
const AliEMCALTriggerPatchInfo * fMaxPatchDCal[fgkNTriggerTypes][fgkNPatchTypes]
! DCal max patch (will be reset each event)
Int_t fSumL1EMCal
! EMCal sum of all online energy deposition (will be reset each event)
void ReadFastORBadChannelFromStream(std::istream &stream)
UInt_t fMinL1FastORAmp
Minimum L1 amplitude of the FastORs.
void ReadOfflineBadChannelFromFile(const char *fname)
short Short_t
Definition: External.C:23
std::set< Short_t > fOfflineBadChannels
Abs ID of offline bad channels.
void ProcessPatch(const AliEMCALTriggerPatchInfo *patch)
const AliEMCALTriggerPatchInfo * fMaxPatchEMCal[fgkNTriggerTypes][fgkNPatchTypes]
! EMCal max patch (will be reset each event)
Container class for histograms.
Definition: THistManager.h:99
Double_t fSumOfflineDCal
! DCal sum of all offline energy deposition (will be reset each event)
Int_t fNCellEMCal
! EMCal number of offline cells (will be reset each event)
Int_t fSumL0EMCal
! EMCal sum of all online energy deposition (will be reset each event)
bool Bool_t
Definition: External.C:53
Double_t fSumOfflineEMCal
! EMCal sum of all offline energy deposition (will be reset each event)
Int_t fNCellDCal
! DCal number of offline cells (will be reset each event)
THistManager fHistManager
Histogram manager.