Project
Loading...
Searching...
No Matches
TestDataGetter.cxx
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
12
#include <vector>
13
14
#include "
Framework/ControlService.h
"
15
#include "
ITSQCDataReaderWorkflow/TestDataGetter.h
"
16
#include "
DataFormatsITSMFT/Digit.h
"
17
#include "
ITSMFTReconstruction/ChipMappingITS.h
"
18
#include "
DataFormatsITSMFT/CompCluster.h
"
19
#include "
SimulationDataFormat/MCCompLabel.h
"
20
#include "
SimulationDataFormat/MCTruthContainer.h
"
21
#include "
DataFormatsITSMFT/ROFRecord.h
"
22
#include "
DataFormatsParameters/GRPObject.h
"
23
#include "
ITSMFTReconstruction/DigitPixelReader.h
"
24
#include "
DetectorsBase/GeometryManager.h
"
25
#include "
ITSBase/GeometryTGeo.h
"
26
27
using namespace
o2::framework
;
28
29
namespace
o2
30
{
31
namespace
its
32
{
33
34
void
TestDataGetter::init
(
InitContext
& ic)
35
{
36
LOG
(
debug
) <<
"Now Working on the GETTER BROS"
;
37
}
38
39
void
TestDataGetter::run
(
ProcessingContext
& pc)
40
{
41
LOG
(
debug
) <<
"START Getter"
;
42
auto
digits
= pc.
inputs
().
get
<
const
std::vector<o2::itsmft::Digit>>(
"digits"
);
43
LOG
(
debug
) <<
"Digit Size Getting For This TimeFrame (Event) = "
<<
digits
.size();
44
45
int
Run = pc.
inputs
().
get
<
int
>(
"Run"
);
46
LOG
(
debug
) <<
"New "
<< Run;
47
48
/*
49
int ResetDecision = pc.inputs().get<int>("in");
50
LOG(debug) << "Reset Histogram Decision = " << ResetDecision;
51
52
o2::itsmft::Digit digit = pc.inputs().get<o2::itsmft::Digit>("digits");
53
LOG(debug) << "Chip ID Getting " << digit.getChipIndex() << " Row = " << digit.getRow() << " Column = " << digit.getColumn();
54
*/
55
56
//pc.services().get<ControlService>().readyToQuit(QuitRequest::All);
57
}
58
59
DataProcessorSpec
getTestDataGetterSpec
()
60
{
61
return
DataProcessorSpec
{
62
"its-rawpixel-getter"
,
63
Inputs
{
64
InputSpec
{
"digits"
,
"ITS"
,
"DIGITS"
, 0, Lifetime::Timeframe},
65
InputSpec
{
"in"
,
"ITS"
,
"TEST"
, 0, Lifetime::Timeframe},
66
// InputSpec{ "Run", "TST", "TEST2", 0, Lifetime::Timeframe },
67
},
68
Outputs
{},
69
AlgorithmSpec
{adaptFromTask<TestDataGetter>()},
70
};
71
}
72
}
// namespace its
73
}
// namespace o2
ChipMappingITS.h
CompCluster.h
Definition of the ITSMFT compact cluster.
ControlService.h
Digit.h
Definition of the ITSMFT digit.
GeometryManager.h
Definition of the GeometryManager class.
DigitPixelReader.h
Definition of the Alpide pixel reader for MC digits processing.
GRPObject.h
Header of the General Run Parameters object.
GeometryTGeo.h
Definition of the GeometryTGeo class.
ROFRecord.h
Definition of the ITSMFT ROFrame (trigger) record.
MCCompLabel.h
MCTruthContainer.h
Definition of a container to keep Monte Carlo truth external to simulation objects.
TestDataGetter.h
debug
std::ostringstream debug
Definition
VariantJSONHelpers.h:307
o2::framework::InitContext
Definition
InitContext.h:25
o2::framework::InputRecord::get
decltype(auto) get(R binding, int part=0) const
Definition
InputRecord.h:248
o2::framework::ProcessingContext
Definition
ProcessingContext.h:27
o2::framework::ProcessingContext::inputs
InputRecord & inputs()
The inputs associated with this processing context.
Definition
ProcessingContext.h:37
o2::its::TestDataGetter::init
void init(InitContext &ic) final
Definition
TestDataGetter.cxx:34
o2::its::TestDataGetter::run
void run(ProcessingContext &pc) final
Definition
TestDataGetter.cxx:39
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::Inputs
std::vector< InputSpec > Inputs
Definition
DataProcessorSpec.h:29
o2::framework::Outputs
std::vector< OutputSpec > Outputs
Definition
DataProcessorSpec.h:30
o2::its::getTestDataGetterSpec
framework::DataProcessorSpec getTestDataGetterSpec()
Definition
TestDataGetter.cxx:59
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::framework::AlgorithmSpec
Definition
AlgorithmSpec.h:43
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
o2::framework::InputSpec
Definition
InputSpec.h:31
LOG
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
digits
std::vector< Digit > digits
Definition
test_ctf_io_hmpid.cxx:40
Detectors
ITSMFT
ITS
QC
TestDataReaderWorkflow
src
TestDataGetter.cxx
Generated on Tue Feb 25 2025 17:03:01 for Project by
1.9.8