30 std::vector<uint32_t> & tibDetRawIds,
31 uint32_t requested_layer,
32 uint32_t requested_bkw_frw,
33 uint32_t requested_int_ext,
34 uint32_t requested_string)
const{
36 for(vector<uint32_t>::const_iterator it = inputDetRawIds.begin(); it!=inputDetRawIds.end();it++){
37 uint32_t therawid = (*it);
41 ( (potentialTIB.
layer()==requested_layer) || requested_layer==0 )
42 && ( ((potentialTIB.
string()).
at(0)==(requested_bkw_frw)) || requested_bkw_frw==0 )
43 && ( ((potentialTIB.
string()).
at(1)==(requested_int_ext)) || requested_int_ext==0 )
44 && ( ((potentialTIB.
string()).
at(2)==requested_string) || requested_string==0 )
46 tibDetRawIds.push_back(therawid);
54 std::vector<uint32_t> & tidDetRawIds,
55 uint32_t requested_side,
56 uint32_t requested_wheel,
57 uint32_t requested_ring,
58 uint32_t requested_ster)
const{
60 for(vector<uint32_t>::const_iterator it = inputDetRawIds.begin(); it!=inputDetRawIds.end();it++){
61 uint32_t therawid = (*it);
65 ( (potentialTID.
side()==requested_side) || requested_side==0 )
66 && ( (potentialTID.
wheel()==requested_wheel) || requested_wheel==0 )
67 && ( (potentialTID.
ring()==requested_ring) || requested_ring==0 )
68 && ( (potentialTID.
stereo()==requested_ster) || requested_ster==0 )
70 tidDetRawIds.push_back(therawid);
78 std::vector<uint32_t> & tobDetRawIds,
79 uint32_t requested_layer,
80 uint32_t requested_bkw_frw,
81 uint32_t requested_rod)
const{
83 for(vector<uint32_t>::const_iterator it = inputDetRawIds.begin(); it!=inputDetRawIds.end();it++){
84 uint32_t therawid = (*it);
88 ( (potentialTOB.
layer()==requested_layer) || requested_layer==0 )
89 && ( ((potentialTOB.
rod()).
at(0)==(requested_bkw_frw)) || requested_bkw_frw==0 )
90 && ( ((potentialTOB.
rod()).
at(1)==requested_rod) || requested_rod==0 )
92 tobDetRawIds.push_back(therawid);
100 std::vector<uint32_t> & tecDetRawIds,
101 uint32_t requested_side,
102 uint32_t requested_wheel,
103 uint32_t requested_petal_bkw_frw,
104 uint32_t requested_petal,
105 uint32_t requested_ring,
106 uint32_t requested_ster)
const{
108 for(vector<uint32_t>::const_iterator it = inputDetRawIds.begin(); it!=inputDetRawIds.end();it++){
109 uint32_t therawid = (*it);
113 ( (potentialTEC.
side()==requested_side) || requested_side==0 )
114 && ( (potentialTEC.
wheel()==requested_wheel) || requested_wheel==0 )
115 && ( ((potentialTEC.
petal()).
at(0)==(requested_petal_bkw_frw-1)) || requested_petal_bkw_frw==0 )
116 && ( ((potentialTEC.
petal()).
at(1)==requested_petal) || requested_petal==0 )
117 && ( (potentialTEC.
ring()==requested_ring) || requested_ring==0 )
118 && ( (potentialTEC.
stereo()==requested_ster) || requested_ster==0 )
120 tecDetRawIds.push_back(therawid);
unsigned int layer() const
layer id
std::vector< unsigned int > string() const
string id
unsigned int side() const
positive or negative id
std::vector< unsigned int > rod() const
rod id
std::vector< unsigned int > petal() const
petal id
void getTOBDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tobDetRawIds, uint32_t layer=0, uint32_t bkw_frw=0, uint32_t rod=0) const
unsigned int ring() const
ring id
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
unsigned int side() const
positive or negative id
unsigned int wheel() const
wheel id
unsigned int layer() const
layer id
void getTECDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tecDetRawIds, uint32_t side=0, uint32_t wheel=0, uint32_t petal_bkw_frw=0, uint32_t petal=0, uint32_t ring=0, uint32_t ster=0) const
void getTIBDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tibDetRawIds, uint32_t layer=0, uint32_t bkw_frw=0, uint32_t int_ext=0, uint32_t string=0) const
unsigned int ring() const
ring id
void getTIDDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tidDetRawIds, uint32_t side=0, uint32_t wheel=0, uint32_t ring=0, uint32_t ster=0) const
unsigned int wheel() const
wheel id