10 const std::string&
name,
21 return StatusCode::SUCCESS;
24 ATH_MSG_DEBUG(
"TgcRawDataMonitorTool::getPassedChambers(): Start");
25 double ext_x = extVec[0];
26 double ext_y = extVec[1];
27 double ext_z = extVec[2];
28 std::set<std::string> passed_chambers;
32 ATH_MSG_ERROR(
"Null pointer to the read MuonDetectorManager conditions object.");
33 return passed_chambers;
35 for(
int iStationName = 41 ; iStationName <= 48 ; iStationName++){
36 if ( (iStationName==41 || iStationName==42) &&
38 if ( (iStationName==43 || iStationName==44) &&
40 if ((iStationName==45 || iStationName==46) &&
42 if ( iStationName==48 &&
44 if ( iStationName==47 &&
46 bool endcap = (iStationName%2==0);
48 if(endcap && iStationName==42)
maxEta = 4;
49 else if(endcap && (iStationName==44 || iStationName==46))
maxEta = 5;
50 for(
int iStationEta = -
maxEta ; iStationEta <=
maxEta ; iStationEta++){
51 if(iStationEta==0)
continue;
52 if(ext_z > 0 && iStationEta < 0)
continue;
53 if(ext_z < 0 && iStationEta > 0)
continue;
56 if(iStationName==48 && iStationPhi>21)
continue;
65 if(std::abs(trkLocVec3D.x())>1000.)
continue;
66 if(std::abs(trkLocVec3D.y())>1500.)
continue;
73 ATH_MSG_DEBUG(
"TgcRawDataMonitorTool::getPassedChambers(): End");
74 ATH_MSG_DEBUG(
"Number of passed TGC chambers: " << passed_chambers.size());
75 return passed_chambers;
79 int& etamap_index,
int& phimap_index,
int& phimap_global_index )
const {
81 ATH_MSG_DEBUG(
"TgcRawDataMonitorTool::getMapIndex(const TGC::TgcHit& tgcHit,: Start");
82 return getMapIndex(tgcHit,tgcHit.
gasGap(),etamap_index,phimap_index,phimap_global_index);
83 ATH_MSG_DEBUG(
"TgcRawDataMonitorTool::getMapIndex(const TGC::TgcHit& tgcHit,: End");
86 int& etamap_index,
int& phimap_index,
int& phimap_global_index )
const {
87 ATH_MSG_DEBUG(
"TgcRawDataMonitorTool::getMapIndex(const TGC::TgcChamber& tgcCham,: Start");
88 if (tgcCham.
iM() > 1 && iLay > 2){
92 int nLay = (tgcCham.
iM()==1)?(3):(2);
93 if (tgcCham.
iM() == 4) {
94 etamap_index = tgcCham.
iEta() * nLay + iLay;
95 if(tgcCham.
iEta() == 0){
96 phimap_index = tgcCham.
iPhi();
98 phimap_index = tgcCham.
iPhi() +
int(tgcCham.
iSec() / 2) + tgcCham.
iSec();
100 phimap_global_index = tgcCham.
iEta() * 24*nLay + (phimap_index - 1) * nLay + iLay;
102 etamap_index = tgcCham.
iEta() * nLay + iLay;
103 phimap_index = (tgcCham.
iSec() - 1) * 4 + tgcCham.
iPhi() + 1;
104 phimap_global_index = tgcCham.
iEta() * 48*nLay + (phimap_index - 1) * nLay + iLay;
106 ATH_MSG_DEBUG(
"TgcRawDataMonitorTool::getMapIndex(const TGC::TgcChamber& tgcCham,: End");