Project
Loading...
Searching...
No Matches
PHOSDigitizerSpec.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_PHOSDIGITIZER_H_
13#define STEER_DIGITIZERWORKFLOW_PHOSDIGITIZER_H_
14#include <vector>
16#include "Framework/Task.h"
19#include "PHOSBase/Hit.h"
23
24class TChain;
25
26namespace o2
27{
28namespace phos
29{
36{
37 public:
39 DigitizerSpec() : o2::base::BaseDPLDigitizer(o2::base::InitServices::GEOM) {}
40
42 ~DigitizerSpec() final = default;
43
46 void initDigitizerTask(framework::InitContext& ctx) final;
47
56
57 private:
58 float mReadoutTime = 0.;
59 float mDeadTime = 0.;
60 bool mInitSimParams = true;
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::phos::MCLabel> mLabels;
68};
69
72o2::framework::DataProcessorSpec getPHOSDigitizerSpec(int channel, bool mctruth = true);
73
74} // end namespace phos
75} // end namespace o2
76
77#endif /* STEER_DIGITIZERWORKFLOW_PHOSDIGITIZER_H_ */
Definition of the base digitizer task class.
Definition of a container to keep Monte Carlo truth external to simulation objects.
Task for PHOS 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.
PHOS simulation hit information.
Definition Hit.h:25
DataProcessorSpec getPHOSDigitizerSpec(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.