ATLAS Offline Software
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 >>>>>>
15 #include "AthenaKernel/CLASS_DEF.h"
16 #include <map>
18 
19 //<<<<<< PUBLIC DEFINES >>>>>>
20 
21 namespace InDet{
22  struct compare_SiCluster
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 
46 
47 
48 
49 #endif // PIXELGANGEDCLUSTERAMBIGUITIES_H
InDet::PixelGangedClusterAmbiguities
std::multimap< const SiCluster *, const SiCluster *, ::InDet::compare_SiCluster > PixelGangedClusterAmbiguities
Definition: PixelGangedClusterAmbiguities.h:46
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
SiCluster
Definition: Trigger/TrigAccel/TrigCudaFitter/src/SiCluster.h:8
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
InDet::compare_SiCluster
Definition: PixelGangedClusterAmbiguities.h:27
InDet::compare_SiCluster::operator()
bool operator()(const ::InDet::SiCluster *const &a, const ::InDet::SiCluster *const &b) const
Definition: PixelGangedClusterAmbiguities.h:32
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
SiCluster.h
a
TList * a
Definition: liststreamerinfos.cxx:10
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
CLASS_DEF.h
macros to associate a CLID to a type
BchCleanup.idb
idb
Definition: BchCleanup.py:152