Project
Loading...
Searching...
No Matches
Digitizer.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
16
17#ifndef ALICEO2_ECAL_DIGITIZER_H
18#define ALICEO2_ECAL_DIGITIZER_H
19#include <vector>
20#include <ECalBase/Hit.h>
24
25using o2::ecal::Digit;
26using o2::ecal::Hit;
28
29namespace o2
30{
31namespace ecal
32{
34{
35 public:
36 Digitizer();
37 ~Digitizer() = default;
38 Digitizer(const Digitizer&) = delete;
39 Digitizer& operator=(const Digitizer&) = delete;
40 void init() {}
41 void finish() {}
42 void processHits(const std::vector<Hit>* mHits, std::vector<Digit>& digits, o2::dataformats::MCTruthContainer<MCLabel>& labels, int collId);
43 void setThreshold(double threshold) { mThreshold = threshold; }
44 void setSmearCrystal(bool smearCrystal) { mSmearCrystal = smearCrystal; }
45 void setSamplingFraction(double fraction) { mSamplingFraction = fraction; }
46 void setCrystalPePerGeV(double pePerGeV) { mCrystalPePerGeV = pePerGeV; }
47
48 private:
49 std::vector<Digit> mArrayD;
50 bool mSmearCrystal = 0;
51 double mThreshold = 0.001;
52 double mSamplingFraction = 9.8;
53 double mCrystalPePerGeV = 4000;
54};
55} // namespace ecal
56} // namespace o2
57
58#endif // ALICEO2_ECAL_DIGITIZER_H
Definition of ECal digit class.
MCLabel class to store MC truth info for ECal.
MC hit class to store energy loss per cell and per superparent.
Definition of a container to keep Monte Carlo truth external to simulation objects.
A container to hold and manage MC truth information/labels.
Digitizer & operator=(const Digitizer &)=delete
void setSamplingFraction(double fraction)
Definition Digitizer.h:45
void setCrystalPePerGeV(double pePerGeV)
Definition Digitizer.h:46
Digitizer(const Digitizer &)=delete
void setThreshold(double threshold)
Definition Digitizer.h:43
void processHits(const std::vector< Hit > *mHits, std::vector< Digit > &digits, o2::dataformats::MCTruthContainer< MCLabel > &labels, int collId)
Definition Digitizer.cxx:36
void setSmearCrystal(bool smearCrystal)
Definition Digitizer.h:44
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< Digit > digits