ATLAS Offline Software
Loading...
Searching...
No Matches
PixelGangedClusterAmbiguities.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5/***************************************************************************
6 CLASS_DEF for InDetRIO_Maker map
7 ------------------------------
8 ATLAS Collaboration
9 ***************************************************************************/
10
11#ifndef PIXELGANGEDCLUSTERAMBIGUITIES_H
12#define PIXELGANGEDCLUSTERAMBIGUITIES_H 1
13
14//<<<<<< INCLUDES >>>>>>
16#include <map>
18
19//<<<<<< PUBLIC DEFINES >>>>>>
20
21namespace InDet{
23 {
24 bool operator()( const ::InDet::SiCluster* const& a,
25 const ::InDet::SiCluster* const& b) const
26 {
27 Identifier ida = (a!=0 ? a->identify() : Identifier(0));
28 Identifier idb = (b!=0 ? b->identify() : Identifier(0));
29
30 // sometimes different clusters have the same identity
31 // use the size to determine the order/break degeneracy
32 if( ida == idb && ida != Identifier(0) ) {
33 return (a->width() < b->width());
34 }
35
36 return ida < idb;
37 }
38 };
39
40 typedef std::multimap<const SiCluster*, const SiCluster*,
43}
44
45CLASS_DEF( InDet::PixelGangedClusterAmbiguities , 130176466 , 1 )
46
47
48
49#endif // PIXELGANGEDCLUSTERAMBIGUITIES_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
static Double_t a
std::multimap< const SiCluster *, const SiCluster *, ::InDet::compare_SiCluster > PixelGangedClusterAmbiguities
Primary Vertex Finder.
bool operator()(const ::InDet::SiCluster *const &a, const ::InDet::SiCluster *const &b) const