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
26
27using namespace o2::framework;
28
29namespace o2
30{
31namespace its
32{
33
35{
36 LOG(debug) << "Now Working on the GETTER BROS";
37}
38
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
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
Definition of the ITSMFT compact cluster.
Definition of the ITSMFT digit.
Definition of the GeometryManager class.
Definition of the Alpide pixel reader for MC digits processing.
Header of the General Run Parameters object.
Definition of the GeometryTGeo class.
Definition of the ITSMFT ROFrame (trigger) record.
Definition of a container to keep Monte Carlo truth external to simulation objects.
std::ostringstream debug
decltype(auto) get(R binding, int part=0) const
InputRecord & inputs()
The inputs associated with this processing context.
void init(InitContext &ic) final
void run(ProcessingContext &pc) final
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< InputSpec > Inputs
std::vector< OutputSpec > Outputs
framework::DataProcessorSpec getTestDataGetterSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
std::vector< Digit > digits