Project
Loading...
Searching...
No Matches
Hit.cxx
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
#include <
ECalBase/Hit.h
>
18
19
ClassImp
(
o2::ecal::Hit
);
20
21
using namespace
o2::ecal
;
22
23
bool
Hit::operator<
(
const
Hit
& rhs)
const
24
{
25
if
(
GetTrackID
() != rhs.GetTrackID()) {
26
return
GetTrackID
() < rhs.GetTrackID();
27
}
28
return
GetCellID
() < rhs.GetCellID();
29
}
30
31
bool
Hit::operator==
(
const
Hit
& rhs)
const
32
{
33
return
(
GetCellID
() == rhs.GetCellID()) && (
GetTrackID
() == rhs.GetTrackID());
34
}
Hit.h
MC hit class to store energy loss per cell and per superparent.
ClassImp
ClassImp(o2::ecal::Hit)
o2::BaseHit::GetTrackID
int GetTrackID() const
Definition
BaseHits.h:30
o2::ecal::Hit
Definition
Hit.h:28
o2::ecal::Hit::GetCellID
int GetCellID() const
Get cell ID.
Definition
Hit.h:64
o2::ecal::Hit::operator==
bool operator==(const Hit &rhs) const
Check whether the points are from the same parent and in the same detector volume.
Definition
Hit.cxx:31
o2::ecal::Hit::operator<
bool operator<(const Hit &rhs) const
Sorting points according to parent particle and detector volume.
Definition
Hit.cxx:23
o2::ecal
Definition
ECalBaseParam.h:26
Detectors
Upgrades
ALICE3
ECal
base
src
Hit.cxx
Generated on Fri Oct 3 2025 12:54:26 for Project by
1.9.8