40 std::vector<const MmReadoutElement*> micromegas =
m_detMgr->getAllMmReadoutElements();
47 for (
int gasGap = 1; gasGap <= 4; ++ gasGap) {
49 10 * mm->multilayer());
52 const Acts::Surface& plane{mm->surface(mm->layerHash(
hash))};
54 const double halfX = 2.*design.
halfWidth();
55 for (
double x = -halfX;
x <= halfX;
x+= 1.*Gaudi::Units::mm){
60 }
else if (
m_testActsSurf && !plane.insideBounds(locPos.block<2,1>(0,0))) {
65 histo->Fill(globPos.x(), globPos.y());
71 std::vector<const sTgcReadoutElement*> sTgcs =
m_detMgr->getAllsTgcReadoutElements();
78 for (
int chanType : {chType::Strip, chType::Pad, chType::Wire}){
79 for (
int gasGap = 1; gasGap <= 4; ++ gasGap) {
81 10 * sTgc->multilayer());
84 const StripDesign& design{ chanType == chType::Strip? sTgc->stripDesign(
hash) :
85 chanType == chType::Wire ?
static_cast<const StripDesign&
>(sTgc->wireDesign(
hash))
87 const Acts::Surface& plane{sTgc->surface(sTgc->layerHash(
hash))};
89 const double halfX = 2.*design.
halfWidth();
90 for (
double x = -halfX;
x <= halfX;
x+= 1.*Gaudi::Units::mm){
95 }
else if (
m_testActsSurf && !plane.insideBounds(locPos.block<2,1>(0,0))) {
100 histo->Fill(globPos.x(), globPos.y());
107 std::vector<const TgcReadoutElement*> tgcs =
m_detMgr->getAllTgcReadoutElements();
114 for (
unsigned int gasGap = 1; gasGap <= tgc->nGasGaps(); ++gasGap){
115 for (
bool isStrip : {
false,
true}) {
116 int stationNameIndex = std::stoi(
m_idHelperSvc->stationNameString(tgc->identify()).substr(1,1));
118 if(!tgc->numChannels(
hash)) {
125 const Acts::Surface& plane{tgc->surface(tgc->layerHash(
hash))};
127 const double halfX = 1.5*design.
halfWidth();
128 for (
double x = -halfX;
x <= halfX;
x+= 2.*Gaudi::Units::mm){
133 }
else if (
m_testActsSurf && !plane.insideBounds(locPos.block<2,1>(0,0))) {
138 histo->Fill(globPos.x(), globPos.y());
148 return StatusCode::SUCCESS;
151 for (
unsigned int ml =1 ; ml <= 2; ++ml) {
152 for(
unsigned int active =1 ; active <= 2; ++active){
153 for (
int chanType : {chType::Strip, chType::Pad, chType::Wire}){
154 for (
unsigned int gasGap =1; gasGap <= 4; ++gasGap) {
155 std::string histoName =
"STGC_"+std::string(active == 1?
"A" :
"C") +
"M" +
156 std::to_string(ml) +
"G" + std::to_string(gasGap) +
157 + (chanType == chType::Strip?
"S" :
158 chanType == chType::Wire ?
"W" :
"P");
160 auto newHisto = std::make_unique<TH2I>(histoName.c_str(),
161 "ActiveNSW;x [mm]; y [mm]", 1000, -5001, 5001., 1000,
164 ATH_CHECK(
histSvc()->regHist(
"/GEOMODELTESTER/ActiveSurfaces/"+ histoName,std::move(newHisto)));
169 return StatusCode::SUCCESS;
173 for (
unsigned int ml = 1; ml <= 2; ++ml) {
174 for (
unsigned int active = 1; active <= 2; ++ active) {
175 for (
unsigned int gasGap = 1; gasGap <= 4; ++gasGap) {
176 std::string histoName =
"MM_"+std::string(active == 1?
"A" :
"C") +
"M" +
177 std::to_string(ml) +
"G" + std::to_string(gasGap);
178 auto newHisto = std::make_unique<TH2I>(histoName.c_str(),
179 "ActiveNSW;x [mm]; y [mm]", 1000, -5001, 5001., 1000,
182 ATH_CHECK(
histSvc()->regHist(
"/GEOMODELTESTER/ActiveSurfaces/"+ histoName,std::move(newHisto)));
186 return StatusCode::SUCCESS;
191 std::set<std::string> tgcNames;
193 tgcNames.insert(
m_idHelperSvc->stationNameString(tgc->identify()));
195 for (
unsigned int gasGap = 1; gasGap <= 3; ++gasGap){
196 for (
bool isStrip : {
false,
true}) {
197 for (
uint station: {1,2,3,4} ){
198 std::string histoName =
"TGC_T:"+ std::to_string(station) +
"G:" + std::to_string(gasGap) + (isStrip ?
"S" :
"W");
199 auto newHisto = std::make_unique<TH2I>(histoName.c_str(),
200 "ActiveTGC;x [mm]; y [mm]", 3000, -15001, 15001., 3000,
203 ATH_CHECK(
histSvc()->regHist(
"/GEOMODELTESTER/ActiveSurfaces/"+ histoName,std::move(newHisto)));
207 return StatusCode::SUCCESS;
Acts::GeometryContext context() const
static IdentifierHash constructHash(unsigned measCh, unsigned gasGap, const bool isStrip)
Constructs the Hash out of the Identifier fields (channel, gasGap, isStrip).
static IdentifierHash createHash(const unsigned gasGap, const unsigned channelType, const unsigned channel, const unsigned wireInGrp=0)
Create a measurement hash from the Identifier fields.