Project
Loading...
Searching...
No Matches
CPVDigitizerSpec.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 STEER_DIGITIZERWORKFLOW_CPVDIGITIZER_H_
13#define STEER_DIGITIZERWORKFLOW_CPVDIGITIZER_H_
14#include <vector>
16#include "Framework/Task.h"
18#include "DataFormatsCPV/Hit.h"
22
23class TChain;
24
25namespace o2
26{
27namespace cpv
28{
35{
36 public:
38 DigitizerSpec() : o2::base::BaseDPLDigitizer(o2::base::InitServices::GEOM) {}
39
41 ~DigitizerSpec() final = default;
42
45 void initDigitizerTask(framework::InitContext& ctx) final;
46
55
56 private:
57 void updateTimeDependentParams(framework::ProcessingContext& ctx);
58
59 float mReadoutTime = 0.;
60 float mDeadTime = 0.;
61 Digitizer mDigitizer;
62 std::vector<TChain*> mSimChains;
63 std::vector<Hit>* mHits = nullptr;
64 std::vector<Digit> mDigitsTmp;
65 std::vector<Digit> mDigitsFinal;
66 std::vector<Digit> mDigitsOut;
67 dataformats::MCTruthContainer<o2::MCCompLabel> mLabels;
68};
69
72o2::framework::DataProcessorSpec getCPVDigitizerSpec(int channel, bool mctruth = true);
73
74} // end namespace cpv
75} // end namespace o2
76
77#endif /* STEER_DIGITIZERWORKFLOW_CPVDIGITIZER_H_ */
Definition of the base digitizer task class.
Definition of a container to keep Monte Carlo truth external to simulation objects.
Task for CPV digitization in the data processing layer.
void run(framework::ProcessingContext &ctx)
run digitizer
void initDigitizerTask(framework::InitContext &ctx) final
init digitizer
~DigitizerSpec() final=default
Destructor.
CPV simulation hit information.
Definition Hit.h:25
DataProcessorSpec getCPVDigitizerSpec(int channel, bool mctruth)
Create new digitizer spec.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Defining DataPointCompositeObject explicitly as copiable.