EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
CompareObjectID.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2026 Derek Anderson
3
4#pragma once
5
6#include <podio/ObjectID.h>
7
8namespace eicrecon {
9
14template <typename T> struct CompareObjectID {
15 bool operator()(const T& lhs, const T& rhs) const {
16 if (lhs.getObjectID().collectionID == rhs.getObjectID().collectionID) {
17 return (lhs.getObjectID().index < rhs.getObjectID().index);
18 } else {
19 return (lhs.getObjectID().collectionID < rhs.getObjectID().collectionID);
20 }
21 }
22};
23
24} // namespace eicrecon
-client
Definition CalorimeterClusterRecoCoG.cc:37
Definition CompareObjectID.h:14
bool operator()(const T &lhs, const T &rhs) const
Definition CompareObjectID.h:15