Project
Loading...
Searching...
No Matches
RecoQCworkflow.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
15
16
#ifndef O2_RECOQC_WORKFLOW
17
#define O2_RECOQC_WORKFLOW
18
19
#include <fairlogger/Logger.h>
20
#include <
Framework/ConfigContext.h
>
21
#include <TMath.h>
22
#include "
Framework/DeviceSpec.h
"
23
#include "
Framework/WorkflowSpec.h
"
24
#include "
Framework/Task.h
"
25
#include "
DataFormatsGlobalTracking/RecoContainer.h
"
26
#include "
DataFormatsFT0/RecPoints.h
"
27
#include "
CommonDataFormat/InteractionRecord.h
"
28
#include "
CommonDataFormat/TimeStamp.h
"
29
#include "
ReconstructionDataFormats/GlobalTrackID.h
"
30
#include "
ReconstructionDataFormats/PrimaryVertex.h
"
31
//#include "DataFormatsFT0/RecoCalibInfoObject.h"
32
#include "TStopwatch.h"
33
#include <string>
34
#include <vector>
35
#include <TH1F.h>
36
#include <TH2F.h>
37
#include <TFile.h>
38
39
using namespace
o2::framework
;
40
using
DataRequest
=
o2::globaltracking::DataRequest
;
41
using
GID
=
o2::dataformats::GlobalTrackID
;
42
43
namespace
o2::ft0
44
{
45
46
class
RecoQCworkflow
final :
public
o2::framework::Task
47
{
48
public
:
49
RecoQCworkflow
(
GID::mask_t
src
, std::shared_ptr<DataRequest>
const
& dataRequest) : mInputSources(
src
), mDataRequest(dataRequest) {}
50
void
run
(
o2::framework::ProcessingContext
& pc)
final
;
51
void
init
(
InitContext
& ic)
final
;
52
void
endOfStream
(
framework::EndOfStreamContext
& ec)
final
;
53
54
private
:
55
std::shared_ptr<DataRequest> mDataRequest;
56
const
float
cSpeed = 0.029979246f;
// speed of light in TOF units
57
GID::mask_t
mInputSources;
58
TStopwatch mTimer;
59
TFile* mFileOut;
60
TH1F* mHisto[10];
61
TH2F* mVertexComp;
62
TH1F* mVertexT0;
63
TH1F* mPV;
64
};
65
66
framework::DataProcessorSpec
getRecoQCworkflow
(
GID::mask_t
src
);
67
68
}
// namespace o2::ft0
69
70
#endif
/* O2_RECOQC_WORKFLOW */
ConfigContext.h
RecoContainer.h
Wrapper container for different reconstructed object types.
DeviceSpec.h
RecPoints.h
Definition of the FIT RecPoints class.
GlobalTrackID.h
Global index for barrel track: provides provenance (detectors combination), index in respective array...
InteractionRecord.h
PrimaryVertex.h
Task.h
WorkflowSpec.h
o2::dataformats::GlobalTrackID
Definition
GlobalTrackID.h:36
o2::framework::EndOfStreamContext
Definition
EndOfStreamContext.h:22
o2::framework::InitContext
Definition
InitContext.h:25
o2::framework::ProcessingContext
Definition
ProcessingContext.h:27
o2::framework::Task
Definition
Task.h:32
o2::ft0::RecoQCworkflow
Definition
RecoQCworkflow.h:47
o2::ft0::RecoQCworkflow::endOfStream
void endOfStream(framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
Definition
RecoQCworkflow.cxx:119
o2::ft0::RecoQCworkflow::RecoQCworkflow
RecoQCworkflow(GID::mask_t src, std::shared_ptr< DataRequest > const &dataRequest)
Definition
RecoQCworkflow.h:49
o2::ft0::RecoQCworkflow::init
void init(InitContext &ic) final
Definition
RecoQCworkflow.cxx:48
o2::ft0::RecoQCworkflow::run
void run(o2::framework::ProcessingContext &pc) final
Definition
RecoQCworkflow.cxx:61
o2::gpu::gpustd::bitset< 32 >
TimeStamp.h
src
GLenum src
Definition
glcorearb.h:1767
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::ft0
Definition
SimTraits.h:139
o2::ft0::getRecoQCworkflow
framework::DataProcessorSpec getRecoQCworkflow(GID::mask_t src)
Definition
RecoQCworkflow.cxx:131
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
o2::globaltracking::DataRequest
Definition
RecoContainer.h:191
Detectors
FIT
FT0
workflow
include
FT0Workflow
RecoQCworkflow.h
Generated on Tue Feb 25 2025 23:16:15 for Project by
1.9.8