13 std::string
size=
"XXX";
14 int f_StationPhi_check=f_StationPhi;
15 int f_StationEta_check=f_StationEta;
16 std::string::size_type small_chamber = f_hardware_name.find(
'S', 0 );
17 std::string::size_type feet_chamber = f_hardware_name.find(
'F', 0 );
18 std::string::size_type ground_chamber = f_hardware_name.find(
'G', 0 );
19 std::string::size_type large_chamber = f_hardware_name.find(
'L', 0 );
22 if (small_chamber != std::string::npos) {
24 if (f_StationPhi!=-100 && f_StationPhi!=1 && (f_StationPhi%2)==0) {f_StationPhi_check=(f_StationPhi/2);}
25 else if (f_StationPhi==-100) {f_StationPhi_check=-100;}
26 else {f_StationPhi_check=-99;}
28 if (feet_chamber != std::string::npos) {
30 if (f_StationPhi!=-100 && f_StationPhi!=1 && (f_StationPhi%2)==0) {f_StationPhi_check=(f_StationPhi/2);}
31 else if (f_StationPhi==-100) {f_StationPhi_check=-100;}
32 else {f_StationPhi_check=-99;}
33 if (f_StationEta!=-100 && (f_StationEta%2)!=0) {f_StationEta_check=(f_StationEta/2)+1;}
34 else if (f_StationEta==-100) {f_StationEta_check=-100;}
35 else {f_StationEta_check=-99;}
37 if (ground_chamber != std::string::npos) {
39 if (f_StationPhi!=-100 && f_StationPhi!=1 && (f_StationPhi%2)==0) {f_StationPhi_check=(f_StationPhi/2);}
40 else if (f_StationPhi==-100) {f_StationPhi_check=-100;}
41 else {f_StationPhi_check=-99;}
42 if (f_StationEta!=-100 && (f_StationEta%2)==0) {f_StationEta_check=(f_StationEta/2);}
43 else if (f_StationEta==-100) {f_StationEta_check=-100;}
44 else {f_StationEta_check=-99;}
46 if (large_chamber != std::string::npos) {
48 if (f_StationPhi==1) {f_StationPhi_check=1;}
49 else if (f_StationPhi!=-100 && f_StationPhi!=1 && (f_StationPhi%2)!=0) {f_StationPhi_check=(f_StationPhi/2)+1;}
50 else if (f_StationPhi==-100) {f_StationPhi_check=-100;}
51 else {f_StationPhi_check=-99;}
53 if ((f_chamberName==
"XXX" || f_chamberName==f_hardware_name)
54 && (f_StationEta_check==f_stationEta || f_StationEta_check==-100)
55 && (f_StationPhi_check==f_stationPhi || f_StationPhi_check==-100)
56 && (f_StationSize==
"XXX" || f_StationSize==
size) ){pass=
true;}