Project
Loading...
Searching...
No Matches
SDigitizer.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 ALICEO2_EMCAL_SDIGITIZER_H
13#define ALICEO2_EMCAL_SDIGITIZER_H
14
15#include <memory>
16#include <unordered_map>
17#include <vector>
18#include <list>
19
20#include "Rtypes.h" // for SDigitizer::Class, Double_t, ClassDef, etc
21#include "TObject.h" // for TObject
22
24#include "EMCALBase/Geometry.h"
26#include "EMCALBase/Hit.h"
28
30
31namespace o2
32{
33namespace emcal
34{
35
41
43{
44 public:
45 SDigitizer() = default;
46 ~SDigitizer() = default;
47 SDigitizer(const SDigitizer&) = delete;
48 SDigitizer& operator=(const SDigitizer&) = delete;
49
51 std::vector<o2::emcal::LabeledDigit> process(const std::vector<Hit>& hits);
52
53 void setCurrSrcID(int v);
54 int getCurrSrcID() const { return mCurrSrcID; }
55
56 void setCurrEvID(int v);
57 int getCurrEvID() const { return mCurrEvID; }
58
59 void setGeometry(const o2::emcal::Geometry* gm) { mGeometry = gm; }
60
61 private:
62 const Geometry* mGeometry = nullptr;
63 int mCurrSrcID = 0;
64 int mCurrEvID = 0;
65
66 ClassDefNV(SDigitizer, 1);
67};
68} // namespace emcal
69} // namespace o2
70
71#endif /* ALICEO2_EMCAL_SDIGITIZER_H */
Definition of a container to keep Monte Carlo truth external to simulation objects.
EMCAL geometry definition.
Definition Geometry.h:40
EMCAL summed digitizer.
Definition SDigitizer.h:43
int getCurrEvID() const
Definition SDigitizer.h:57
SDigitizer & operator=(const SDigitizer &)=delete
int getCurrSrcID() const
Definition SDigitizer.h:54
void setGeometry(const o2::emcal::Geometry *gm)
Definition SDigitizer.h:59
SDigitizer(const SDigitizer &)=delete
const GLdouble * v
Definition glcorearb.h:832
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...