1 #ifndef TRACKERLAYERIDACCESSOR_H
2 #define TRACKERLAYERIDACCESSOR_H
14 #include<ext/functional>
23 virtual bool operator()(uint32_t i1, uint32_t i2 )
const =0;
28 virtual bool operator()(uint32_t i1,uint32_t i2 )
const {
31 if ((id1.
det() == id2.
det()) &&
39 virtual bool operator()(uint32_t i1,uint32_t i2 )
const {
42 if ((id1.
det() == id2.
det()) &&
50 virtual bool operator()(uint32_t i1,uint32_t i2 )
const {
53 if ((id1.
det() == id2.
det()) &&
61 virtual bool operator()(uint32_t i1,uint32_t i2 )
const {
64 if ((id1.
det() == id2.
det()) &&
67 (id1.
disk() == id2.
disk()))
return false;
73 virtual bool operator()(uint32_t i1,uint32_t i2 )
const {
76 if ((id1.
det() == id2.
det()) &&
85 virtual bool operator()(uint32_t i1,uint32_t i2 )
const {
88 if ((id1.
det() == id2.
det()) &&
105 std::pair<DetId,DetIdPXFSameDiskComparator>
pixelForwardDisk(
int side,
int disk);
106 std::pair<DetId,DetIdTIBSameLayerComparator>
stripTIBLayer(
int layer);
107 std::pair<DetId,DetIdTOBSameLayerComparator>
stripTOBLayer(
int layer);
108 std::pair<DetId,DetIdTECSameDiskComparator>
stripTECDisk(
int side,
int disk);
109 std::pair<DetId,DetIdTIDSameDiskComparator>
stripTIDDisk(
int side,
int disk);
unsigned int layer() const
layer id
std::pair< DetId, DetIdTIDSameDiskComparator > stripTIDDisk(int side, int disk)
virtual bool operator()(uint32_t i1, uint32_t i2) const
std::pair< DetId, DetIdComparator & > returnType
std::pair< DetId, DetIdTIBSameLayerComparator > stripTIBLayer(int layer)
std::pair< DetId, DetIdPXFSameDiskComparator > pixelForwardDisk(int side, int disk)
virtual bool operator()(uint32_t i1, uint32_t i2) const
unsigned int layer() const
layer id
unsigned int side() const
positive or negative id
uint32_t rawId() const
get the raw id
std::pair< DetId, DetIdTOBSameLayerComparator > stripTOBLayer(int layer)
virtual bool operator()(uint32_t i1, uint32_t i2) const
std::pair< DetId, DetIdTECSameDiskComparator > stripTECDisk(int side, int disk)
virtual bool operator()(uint32_t i1, uint32_t i2) const
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
unsigned int disk() const
disk id
bool operator()(DetId i1, DetId i2) const
virtual bool operator()(uint32_t i1, uint32_t i2) const
unsigned int side() const
positive or negative id
unsigned int wheel() const
wheel id
unsigned int layer() const
layer id
std::pair< DetId, DetIdPXBSameLayerComparator > pixelBarrelLayer(int layer)
unsigned int side() const
positive or negative id
virtual bool operator()(uint32_t i1, uint32_t i2) const
Detector det() const
get the detector field from this detid
unsigned int wheel() const
wheel id