Project
Loading...
Searching...
No Matches
MCLabel.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
// Declaration of a transient MC label class for EMCal
13
14
#ifndef ALICEO2_EMCAL_MCLABEL_H_
15
#define ALICEO2_EMCAL_MCLABEL_H_
16
17
#include "
SimulationDataFormat/MCCompLabel.h
"
18
19
namespace
o2::emcal
20
{
21
25
class
MCLabel
:
public
o2::MCCompLabel
26
{
27
private
:
28
Double_t mAmplitudeFraction{0};
29
30
public
:
31
MCLabel
() =
default
;
32
MCLabel
(Int_t trackID, Int_t eventID, Int_t srcID, Bool_t fake, Double_t afraction) :
o2
::
MCCompLabel
(trackID, eventID, srcID, fake), mAmplitudeFraction(afraction) {}
33
MCLabel
(Bool_t noise, Double_t afraction) :
o2
::
MCCompLabel
(noise), mAmplitudeFraction(afraction) {}
34
void
setAmplitudeFraction
(Double_t afraction) { mAmplitudeFraction = afraction; }
35
[[nodiscard]] Double_t
getAmplitudeFraction
()
const
{
return
mAmplitudeFraction; }
36
37
ClassDefNV
(
MCLabel
, 2);
38
};
39
}
// namespace o2::emcal
40
41
#endif
MCCompLabel.h
o2::MCCompLabel
Definition
MCCompLabel.h:24
o2::emcal::MCLabel
Monte-Carlo label for EMCAL clusters / digits.
Definition
MCLabel.h:26
o2::emcal::MCLabel::MCLabel
MCLabel()=default
o2::emcal::MCLabel::getAmplitudeFraction
Double_t getAmplitudeFraction() const
Definition
MCLabel.h:35
o2::emcal::MCLabel::ClassDefNV
ClassDefNV(MCLabel, 2)
o2::emcal::MCLabel::MCLabel
MCLabel(Bool_t noise, Double_t afraction)
Definition
MCLabel.h:33
o2::emcal::MCLabel::MCLabel
MCLabel(Int_t trackID, Int_t eventID, Int_t srcID, Bool_t fake, Double_t afraction)
Definition
MCLabel.h:32
o2::emcal::MCLabel::setAmplitudeFraction
void setAmplitudeFraction(Double_t afraction)
Definition
MCLabel.h:34
o2::emcal
Definition
SimTraits.h:136
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
FlattenRestore.h:23
DataFormats
Detectors
EMCAL
include
DataFormatsEMCAL
MCLabel.h
Generated on Sun Sep 13 2026 16:48:57 for Project by
1.9.8