#include <OmniClusterRef.h>
Definition at line 12 of file OmniClusterRef.h.
typedef edm::Ref<edmNew::DetSetVector<SiPixelCluster>,SiPixelCluster > OmniClusterRef::ClusterPixelRef |
Definition at line 19 of file OmniClusterRef.h.
typedef edm::Ref< edm::LazyGetter<SiStripCluster>, SiStripCluster, edm::FindValue<SiStripCluster> > OmniClusterRef::ClusterRegionalRef |
Definition at line 21 of file OmniClusterRef.h.
typedef edm::Ref<edmNew::DetSetVector<SiStripCluster>,SiStripCluster > OmniClusterRef::ClusterStripRef |
Definition at line 20 of file OmniClusterRef.h.
OmniClusterRef::OmniClusterRef | ( | ) | [inline] |
Definition at line 23 of file OmniClusterRef.h.
: me(edm::RefCore(),kInvalid) {}
OmniClusterRef::OmniClusterRef | ( | ClusterPixelRef const & | ref | ) | [inline, explicit] |
Definition at line 24 of file OmniClusterRef.h.
OmniClusterRef::OmniClusterRef | ( | ClusterStripRef const & | ref | ) | [inline, explicit] |
Definition at line 25 of file OmniClusterRef.h.
OmniClusterRef::OmniClusterRef | ( | ClusterRegionalRef const & | ref | ) | [inline, explicit] |
Definition at line 26 of file OmniClusterRef.h.
: me(ref.refCore(), (ref.isNonnull() ? ref.key() | kIsRegional : kInvalid)){}
ClusterPixelRef OmniClusterRef::cluster_pixel | ( | ) | const [inline] |
Definition at line 28 of file OmniClusterRef.h.
References index(), isPixel(), isValid(), me, and edm::RefCoreWithIndex::toRefCore().
Referenced by TrackerSingleRecHit::cluster_pixel().
{ return (isPixel() && isValid()) ? ClusterPixelRef(me.toRefCore(),index()) : ClusterPixelRef(); }
ClusterRegionalRef OmniClusterRef::cluster_regional | ( | ) | const [inline] |
Definition at line 36 of file OmniClusterRef.h.
References index(), isRegional(), me, and edm::RefCoreWithIndex::toRefCore().
Referenced by TrackerSingleRecHit::cluster_regional().
{ return isRegional() ? ClusterRegionalRef(me.toRefCore(),index()) : ClusterRegionalRef(); }
ClusterStripRef OmniClusterRef::cluster_strip | ( | ) | const [inline] |
Definition at line 32 of file OmniClusterRef.h.
References index(), isNonRegionalStrip(), me, and edm::RefCoreWithIndex::toRefCore().
Referenced by TrackerSingleRecHit::cluster_strip(), SeedClusterRemover::process(), and TrackClusterRemover::process().
{ return isNonRegionalStrip() ? ClusterStripRef(me.toRefCore(),index()) : ClusterStripRef(); }
edm::ProductID OmniClusterRef::id | ( | void | ) | const [inline] |
Definition at line 55 of file OmniClusterRef.h.
References edm::RefCoreWithIndex::id(), and me.
Referenced by HLTTrackClusterRemover::process(), ClusterRemovalRefSetter::reKeyPixel(), and ClusterRemovalRefSetter::reKeyStrip().
unsigned int OmniClusterRef::index | ( | ) | const [inline] |
Definition at line 61 of file OmniClusterRef.h.
References kIsRegional, and rawIndex().
Referenced by cluster_pixel(), cluster_regional(), cluster_strip(), key(), and stripCluster().
{ return rawIndex() & (~kIsRegional);}
bool OmniClusterRef::isNonRegionalStrip | ( | ) | const [inline] |
Definition at line 68 of file OmniClusterRef.h.
References kIsRegional, kIsStrip, and rawIndex().
Referenced by cluster_strip().
{return (rawIndex() & kIsRegional)==kIsStrip;}
bool OmniClusterRef::isPixel | ( | ) | const [inline] |
Definition at line 65 of file OmniClusterRef.h.
References isStrip().
Referenced by cluster_pixel().
{ return !isStrip(); } //NOTE: non-valid will also show up as a pixel
bool OmniClusterRef::isRegional | ( | ) | const [inline] |
Definition at line 67 of file OmniClusterRef.h.
References kIsRegional, and rawIndex().
Referenced by cluster_regional(), and stripCluster().
{ return (rawIndex() & kIsRegional)==kIsRegional; }
bool OmniClusterRef::isStrip | ( | ) | const [inline] |
Definition at line 66 of file OmniClusterRef.h.
References kIsStrip, and rawIndex().
Referenced by isPixel().
bool OmniClusterRef::isValid | ( | void | ) | const [inline] |
Definition at line 64 of file OmniClusterRef.h.
References kInvalid, and rawIndex().
Referenced by cluster_pixel().
unsigned int OmniClusterRef::key | ( | ) | const [inline] |
Definition at line 56 of file OmniClusterRef.h.
References index().
Referenced by helper::ClusterStorer::ClusterHitRecord< SiStripRecHit2D::ClusterRef >rekey(), HLTTrackClusterRemover::process(), ClusterRemovalRefSetter::reKeyPixel(), ClusterRemovalRefSetter::reKeyStrip(), and ctfseeding::HitExtractorSTRP::skipThis().
{ return index();}
bool OmniClusterRef::operator< | ( | OmniClusterRef const & | lh | ) | const [inline] |
Definition at line 49 of file OmniClusterRef.h.
References rawIndex().
{ return rawIndex() < lh.rawIndex(); // in principle this is enough! }
bool OmniClusterRef::operator== | ( | OmniClusterRef const & | lh | ) | const [inline] |
Definition at line 45 of file OmniClusterRef.h.
References rawIndex().
{ return rawIndex() == lh.rawIndex(); // in principle this is enough! }
unsigned int OmniClusterRef::rawIndex | ( | ) | const [inline] |
Definition at line 59 of file OmniClusterRef.h.
References edm::RefCoreWithIndex::index(), and me.
Referenced by index(), isNonRegionalStrip(), isRegional(), isStrip(), isValid(), operator<(), and operator==().
SiStripCluster const& OmniClusterRef::stripCluster | ( | ) | const [inline] |
Definition at line 41 of file OmniClusterRef.h.
References index(), isRegional(), me, and edm::RefCoreWithIndex::toRefCore().
Referenced by TrackerSingleRecHit::stripCluster().
{ return isRegional() ? *ClusterRegionalRef(me.toRefCore(),index()) : *ClusterStripRef(me.toRefCore(),index()); }
const unsigned int OmniClusterRef::kInvalid = 0x80000000 [static, private] |
Definition at line 14 of file OmniClusterRef.h.
Referenced by isValid().
const unsigned int OmniClusterRef::kIsRegional = 0x60000000 [static, private] |
Definition at line 16 of file OmniClusterRef.h.
Referenced by index(), isNonRegionalStrip(), and isRegional().
const unsigned int OmniClusterRef::kIsStrip = 0x20000000 [static, private] |
Definition at line 15 of file OmniClusterRef.h.
Referenced by isNonRegionalStrip(), and isStrip().
Definition at line 70 of file OmniClusterRef.h.
Referenced by cluster_pixel(), cluster_regional(), cluster_strip(), id(), rawIndex(), and stripCluster().