Project
Loading...
Searching...
No Matches
CompressedInspectorTask.h
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
16
17
#ifndef O2_TOF_COMPRESSEDINSPECTORTASK
18
#define O2_TOF_COMPRESSEDINSPECTORTASK
19
20
#include "
Framework/RootSerializationSupport.h
"
21
#include "
Framework/Task.h
"
22
#include "
Framework/DataProcessorSpec.h
"
23
#include "
TOFReconstruction/DecoderBase.h
"
24
#include <fstream>
25
26
class
TFile;
27
class
TH1;
28
class
TH2;
29
30
using namespace
o2::framework
;
31
32
namespace
o2
33
{
34
namespace
tof
35
{
36
37
using namespace
compressed;
38
39
template
<
typename
RDH>
40
class
CompressedInspectorTask
:
public
DecoderBaseT
<RDH>,
public
Task
41
{
42
public
:
43
CompressedInspectorTask
() =
default
;
44
~CompressedInspectorTask
()
override
=
default
;
45
void
init
(
InitContext
& ic)
final
;
46
void
run
(
ProcessingContext
& pc)
final
;
47
48
private
:
50
void
rdhHandler(
const
RDH
* rdh)
override
{};
51
52
void
headerHandler(
const
CrateHeader_t
* crateHeader,
const
CrateOrbit_t
* crateOrbit)
override
;
53
54
void
frameHandler(
const
CrateHeader_t
* crateHeader,
const
CrateOrbit_t
* crateOrbit,
55
const
FrameHeader_t
* frameHeader,
const
PackedHit_t
* packedHits)
override
;
56
57
void
trailerHandler(
const
CrateHeader_t
* crateHeader,
const
CrateOrbit_t
* crateOrbit,
58
const
CrateTrailer_t
* crateTrailer,
const
Diagnostic_t
* diagnostics,
59
const
Error_t
* errors)
override
;
60
61
bool
mStatus =
false
;
62
TFile* mFile =
nullptr
;
63
std::map<std::string, TH1*> mHistos1D;
64
std::map<std::string, TH1*> mHistos2D;
65
};
66
67
}
// namespace tof
68
}
// namespace o2
69
70
#endif
/* O2_TOF_COMPRESSEDINSPECTORTASK */
DataProcessorSpec.h
DecoderBase.h
RootSerializationSupport.h
Task.h
o2::framework::InitContext
Definition
InitContext.h:25
o2::framework::ProcessingContext
Definition
ProcessingContext.h:27
o2::framework::Task
Definition
Task.h:32
o2::tof::CompressedInspectorTask
Definition
CompressedInspectorTask.h:41
o2::tof::CompressedInspectorTask::~CompressedInspectorTask
~CompressedInspectorTask() override=default
o2::tof::CompressedInspectorTask::CompressedInspectorTask
CompressedInspectorTask()=default
o2::tof::CompressedInspectorTask::init
void init(InitContext &ic) final
Definition
CompressedInspectorTask.cxx:36
o2::tof::compressed::DecoderBaseT
Definition
DecoderBase.h:36
o2::tof::compressed::DecoderBaseT::run
bool run()
Definition
DecoderBase.h:42
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::header::RAWDataHeaderV7
Definition
RAWDataHeader.h:71
o2::tof::compressed::CrateHeader_t
Definition
CompressedDataFormat.h:34
o2::tof::compressed::CrateOrbit_t
Definition
CompressedDataFormat.h:43
o2::tof::compressed::CrateTrailer_t
Definition
CompressedDataFormat.h:63
o2::tof::compressed::Diagnostic_t
Definition
CompressedDataFormat.h:71
o2::tof::compressed::Error_t
Definition
CompressedDataFormat.h:76
o2::tof::compressed::FrameHeader_t
Definition
CompressedDataFormat.h:47
o2::tof::compressed::PackedHit_t
Definition
CompressedDataFormat.h:55
Detectors
TOF
workflow
include
TOFWorkflowUtils
CompressedInspectorTask.h
Generated on Tue Feb 25 2025 23:16:26 for Project by
1.9.8