|
| 1 | +// Copyright CERN and copyright holders of ALICE O2. This software is |
| 2 | +// distributed under the terms of the GNU General Public License v3 (GPL |
| 3 | +// Version 3), copied verbatim in the file "COPYING". |
| 4 | +// |
| 5 | +// See http://alice-o2.web.cern.ch/license for full licensing information. |
| 6 | +// |
| 7 | +// In applying this license CERN does not waive the privileges and immunities |
| 8 | +// granted to it by virtue of its status as an Intergovernmental Organization |
| 9 | +// or submit itself to any jurisdiction. |
| 10 | + |
| 11 | +/// |
| 12 | +/// \file TOFTask.h |
| 13 | +/// \author Nicolo' Jacazio |
| 14 | +/// |
| 15 | + |
| 16 | +#ifndef QC_MODULE_TOF_TOFTASK_H |
| 17 | +#define QC_MODULE_TOF_TOFTASK_H |
| 18 | + |
| 19 | +#include "QualityControl/TaskInterface.h" |
| 20 | + |
| 21 | +class TH1F; |
| 22 | +class TH2F; |
| 23 | +class TH1I; |
| 24 | +class TH2I; |
| 25 | + |
| 26 | +using namespace o2::quality_control::core; |
| 27 | + |
| 28 | +namespace o2::quality_control_modules::tof |
| 29 | +{ |
| 30 | + |
| 31 | +/// \brief TOF Quality Control DPL Task |
| 32 | +/// \author Nicolo' Jacazio |
| 33 | +class TOFTask /*final*/ |
| 34 | + : public TaskInterface // todo add back the "final" when doxygen is fixed |
| 35 | +{ |
| 36 | + public: |
| 37 | + /// \brief Constructor |
| 38 | + TOFTask(); |
| 39 | + /// Destructor |
| 40 | + ~TOFTask() override; |
| 41 | + |
| 42 | + // Definition of the methods for the template method pattern |
| 43 | + void initialize(o2::framework::InitContext& ctx) override; |
| 44 | + void startOfActivity(Activity& activity) override; |
| 45 | + void startOfCycle() override; |
| 46 | + void monitorData(o2::framework::ProcessingContext& ctx) override; |
| 47 | + void endOfCycle() override; |
| 48 | + void endOfActivity(Activity& activity) override; |
| 49 | + void reset() override; |
| 50 | + |
| 51 | + static Int_t fgNbinsMultiplicity; /// Number of bins in multiplicity plot |
| 52 | + static Int_t fgRangeMinMultiplicity; /// Min range in multiplicity plot |
| 53 | + static Int_t fgRangeMaxMultiplicity; /// Max range in multiplicity plot |
| 54 | + static Int_t fgNbinsTime; /// Number of bins in time plot |
| 55 | + static const Float_t fgkNbinsWidthTime; /// Width of bins in time plot |
| 56 | + static Float_t fgRangeMinTime; /// Range min in time plot |
| 57 | + static Float_t fgRangeMaxTime; /// Range max in time plot |
| 58 | + static Int_t fgCutNmaxFiredMacropad; /// Cut on max number of fired macropad |
| 59 | + static const Int_t fgkFiredMacropadLimit; /// Limit on cut on number of fired macropad |
| 60 | + |
| 61 | + private: |
| 62 | + std::shared_ptr<TH1I> mTOFRawsMulti; /// TOF raw hit multiplicity per event |
| 63 | + std::shared_ptr<TH1I> mTOFRawsMultiIA; /// TOF raw hit multiplicity per event - I/A side |
| 64 | + std::shared_ptr<TH1I> mTOFRawsMultiOA; /// TOF raw hit multiplicity per event - O/A side |
| 65 | + std::shared_ptr<TH1I> mTOFRawsMultiIC; /// TOF raw hit multiplicity per event - I/C side |
| 66 | + std::shared_ptr<TH1I> mTOFRawsMultiOC; /// TOF raw hit multiplicity per event- O/C side |
| 67 | + |
| 68 | + std::shared_ptr<TH1F> mTOFRawsTime; /// TOF Raws - Hit time (ns) |
| 69 | + std::shared_ptr<TH1F> mTOFRawsTimeIA; /// TOF Raws - Hit time (ns) - I/A side |
| 70 | + std::shared_ptr<TH1F> mTOFRawsTimeOA; /// TOF Raws - Hit time (ns) - O/A side |
| 71 | + std::shared_ptr<TH1F> mTOFRawsTimeIC; /// TOF Raws - Hit time (ns) - I/C side |
| 72 | + std::shared_ptr<TH1F> mTOFRawsTimeOC; /// TOF Raws - Hit time (ns) - O/C side |
| 73 | + |
| 74 | + std::shared_ptr<TH1F> mTOFRawsToT; /// TOF Raws - Hit ToT (ns) |
| 75 | + std::shared_ptr<TH1F> mTOFRawsToTIA; /// TOF Raws - Hit ToT (ns) - I/A side |
| 76 | + std::shared_ptr<TH1F> mTOFRawsToTOA; /// TOF Raws - Hit ToT (ns) - O/A side |
| 77 | + std::shared_ptr<TH1F> mTOFRawsToTIC; /// TOF Raws - Hit ToT (ns) - I/C side |
| 78 | + std::shared_ptr<TH1F> mTOFRawsToTOC; /// TOF Raws - Hit ToT (ns) - O/C side |
| 79 | + |
| 80 | + std::shared_ptr<TH1F> mTOFRawsLTMHits; /// LTMs OR signals |
| 81 | + std::shared_ptr<TH2F> mTOFrefMap; /// TOF enabled channel reference map |
| 82 | + std::shared_ptr<TH2F> mTOFRawHitMap; /// TOF raw hit map (1 bin = 1 FEA = 24 channels) |
| 83 | + |
| 84 | + std::shared_ptr<TH2I> mTOFDecodingErrors; /// Decoding error monitoring |
| 85 | + |
| 86 | + std::shared_ptr<TH1F> mTOFOrphansTime; /// TOF Raws - Orphans time (ns) |
| 87 | + std::shared_ptr<TH2F> mTOFRawTimeVsTRM035; /// TOF raws - Hit time vs TRM - crates 0 to 35 |
| 88 | + std::shared_ptr<TH2F> mTOFRawTimeVsTRM3671; /// TOF raws - Hit time vs TRM - crates 36 to 72 |
| 89 | + std::shared_ptr<TH2F> mTOFTimeVsStrip; /// TOF raw hit time vs. MRPC (along z axis) |
| 90 | + std::shared_ptr<TH2F> mTOFtimeVsBCID; /// TOF time vs BCID |
| 91 | + std::shared_ptr<TH2F> mTOFchannelEfficiencyMap; /// TOF channels (HWok && efficient && !noisy && !problematic) |
| 92 | + std::shared_ptr<TH2F> mTOFhitsCTTM; /// Map of hit pads according to CTTM numbering |
| 93 | + std::shared_ptr<TH2F> mTOFmacropadCTTM; /// Map of hit macropads according to CTTM numbering |
| 94 | + std::shared_ptr<TH2F> mTOFmacropadDeltaPhiTime; /// #Deltat vs #Delta#Phi of hit macropads |
| 95 | + std::shared_ptr<TH2I> mBXVsCttmBit; /// BX ID in TOF matching window vs trg channel |
| 96 | + std::shared_ptr<TH2F> mTimeVsCttmBit; /// TOF raw time vs trg channel |
| 97 | + std::shared_ptr<TH2F> mTOFRawHitMap24; /// TOF average raw hits/channel map (1 bin = 1 FEA = 24 channels) |
| 98 | + std::shared_ptr<TH2I> mHitMultiVsDDL; /// TOF raw hit multiplicity per event vs DDL |
| 99 | + std::shared_ptr<TH1I> mNfiredMacropad; /// Number of fired TOF macropads per event |
| 100 | +}; |
| 101 | + |
| 102 | +} // namespace o2::quality_control_modules::tof |
| 103 | + |
| 104 | +#endif // QC_MODULE_TOF_TOFTASK_H |
0 commit comments