Project
Loading...
Searching...
No Matches
ITSTPCMatchingQCSpec.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
12#ifndef O2_ITSTPC_MATCHING_QC_DEVICE_H
13#define O2_ITSTPC_MATCHING_QC_DEVICE_H
14
17
19#include "Framework/Task.h"
20#include "GLOQC/MatchITSTPCQC.h"
22
23using namespace o2::framework;
24
25namespace o2
26{
27namespace globaltracking
28{
30{
31 public:
32 ITSTPCMatchingQCDevice(std::shared_ptr<DataRequest> dr, std::shared_ptr<o2::base::GRPGeomRequest> req, bool useMC, bool doK0QC, std::string trkSources) : mDataRequest(dr), mCCDBRequest(req), mUseMC(useMC), mDoK0QC(doK0QC), mTrkSources(trkSources){};
33 void init(o2::framework::InitContext& ic) final;
36 void finaliseCCDB(ConcreteDataMatcher& matcher, void* obj) final;
37
38 private:
39 void sendOutput(DataAllocator& output);
40 std::unique_ptr<o2::gloqc::MatchITSTPCQC> mMatchITSTPCQC;
41 std::shared_ptr<DataRequest> mDataRequest;
42 std::shared_ptr<o2::base::GRPGeomRequest> mCCDBRequest;
43 bool mUseMC = true;
44 bool mDoK0QC = true;
45 std::string mTrkSources = "ITS,TPC,ITS-TPC";
46};
47
48} // namespace globaltracking
49
50namespace framework
51{
52DataProcessorSpec getITSTPCMatchingQCDevice(bool useMC, bool doK0QC, std::string trkSources);
53
54} // namespace framework
55} // namespace o2
56
57#endif
Class to perform QC for ITSTPC matching.
Helper for geometry and GRP related CCDB requests.
void output(const std::map< std::string, ChannelStat > &channels)
Definition rawdump.cxx:197
void init(o2::framework::InitContext &ic) final
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
ITSTPCMatchingQCDevice(std::shared_ptr< DataRequest > dr, std::shared_ptr< o2::base::GRPGeomRequest > req, bool useMC, bool doK0QC, std::string trkSources)
void run(o2::framework::ProcessingContext &pc) final
void finaliseCCDB(ConcreteDataMatcher &matcher, void *obj) final
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...