ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
iFatras::SimHitCreatorMS Class Reference

#include <SimHitCreatorMS.h>

Inheritance diagram for iFatras::SimHitCreatorMS:
Collaboration diagram for iFatras::SimHitCreatorMS:

Public Member Functions

 SimHitCreatorMS (const std::string &, const std::string &, const IInterface *)
 
virtual ~SimHitCreatorMS ()=default
 default destructor More...
 
virtual StatusCode initialize ()
 
void handle (const Incident &inc)
 handle for incident service More...
 
void createHits (const ISF::ISFParticle &isp, const std::vector< Trk::HitInfo > &hits) const
 Loop over the hits and call the hit creator - also provide the ISF particle to register the truth link. More...
 
void initDeadChannels (const MuonGM::MdtReadoutElement *mydetEl)
 

Private Member Functions

bool createHit (const ISF::ISFParticle &isp, const Trk::Layer *, const Trk::TrackParameters *, Identifier, double, double, bool) const
 Private HitCreate method - returns bool for a successful hit creation. More...
 
int offIdToSimId (Identifier id) const
 

Private Attributes

ServiceHandle< IIncidentSvc > m_incidentSvc
 Incident Service. More...
 
ToolHandle< Trk::ITimedExtrapolatorm_extrapolator
 Tool using the track creator per event. More...
 
ToolHandle< Muon::IMuonTGMeasToolm_measTool
 Muon TrackingGeometry Measurement Tool. More...
 
MDTSimHitCollectionm_mdtSimHitCollection
 
RPCSimHitCollectionm_rpcSimHitCollection
 
TGCSimHitCollectionm_tgcSimHitCollection
 
CSCSimHitCollectionm_cscSimHitCollection
 
MMSimHitCollectionm_mmSimHitCollection
 
sTGCSimHitCollectionm_stgcSimHitCollection
 
std::string m_mdtCollectionName
 
std::string m_rpcCollectionName
 
std::string m_tgcCollectionName
 
std::string m_cscCollectionName
 
std::string m_mmCollectionName
 
std::string m_stgcCollectionName
 
ServiceHandle< IAtRndmGenSvcm_randomSvc
 Pointer to the random number generator service. More...
 
std::string m_randomEngineName
 Name of the random number stream. More...
 
CLHEP::HepRandomEngine * m_randomEngine
 Random Engine. More...
 
const MdtHitIdHelperm_mdtHitIdHelper
 
const RpcHitIdHelperm_rpcHitIdHelper
 
const CscHitIdHelperm_cscHitIdHelper
 
const TgcHitIdHelperm_tgcHitIdHelper
 
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
 
MM_SimIdToOfflineIdm_mmOffToSimId
 
sTgcSimIdToOfflineIdm_stgcOffToSimId
 
const MuonGM::MuonDetectorManagerm_muonMgr
 
double m_mdtSigmaDriftRadius
 
int m_BMGid
 
bool m_createAllMdtHits
 
bool m_BMGpresent = false
 
std::map< Identifier, std::vector< Identifier > > m_DeadChannels
 

Detailed Description

A dedicated instance for Fatras sim hit creation in the Muon System.

Author
Sharka Todorova Sarka.nosp@m..Tod.nosp@m.orova.nosp@m.@cer.nosp@m.n.ch, Andreas Salzburger Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch

Definition at line 65 of file SimHitCreatorMS.h.

Constructor & Destructor Documentation

◆ SimHitCreatorMS()

iFatras::SimHitCreatorMS::SimHitCreatorMS ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Definition at line 43 of file SimHitCreatorMS.cxx.

45  :
46  base_class(t,n,p),
47  m_incidentSvc("IncidentSvc", n),
48  m_extrapolator(""),
49  m_measTool("Muon::MuonTGMeasurementTool/MuonTGMeasurementTool"),
50  m_mdtSimHitCollection(nullptr),
51  m_rpcSimHitCollection(nullptr),
52  m_tgcSimHitCollection(nullptr),
53  m_cscSimHitCollection(nullptr),
54  m_mmSimHitCollection(nullptr),
55  m_stgcSimHitCollection(nullptr),
56  m_mdtCollectionName("MDT_Hits"),
57  m_rpcCollectionName("RPC_Hits"),
58  m_tgcCollectionName("TGC_Hits"),
59  m_cscCollectionName("CSC_Hits"),
60  m_mmCollectionName("MM_Hits"),
61  m_stgcCollectionName("sTGC_Hits"),
62  m_randomSvc("AtDSFMTGenSvc", n),
63  m_randomEngineName("FatrasRnd"),
64  m_randomEngine(nullptr),
65  m_mdtHitIdHelper(nullptr),
66  m_rpcHitIdHelper(nullptr),
67  m_cscHitIdHelper(nullptr),
68  m_tgcHitIdHelper(nullptr),
69  m_mmOffToSimId(nullptr),
70  m_stgcOffToSimId(nullptr),
71  m_muonMgr(nullptr),
73  m_BMGid(-1),
74  m_createAllMdtHits(true)
75 {
76  // template for property decalration
77  declareProperty("MeasurementTool", m_measTool);
78  declareProperty("MdtSigmaDriftRadius", m_mdtSigmaDriftRadius);
79  // Random number svc
80  declareProperty("RandomNumberService", m_randomSvc, "Random number generator");
81  declareProperty("RandomStreamName", m_randomEngineName, "Name of the random number stream");
82  // extrapolator
83  declareProperty("Extrapolator", m_extrapolator);
84  declareProperty("MDTCollectionName", m_mdtCollectionName);
85  declareProperty("RPCCollectionName", m_rpcCollectionName);
86  declareProperty("TGCCollectionName", m_tgcCollectionName);
87  declareProperty("CSCCollectionName", m_cscCollectionName);
88  declareProperty("MMCollectionName", m_mmCollectionName);
89  declareProperty("sTGCCollectionName", m_stgcCollectionName);
90  declareProperty("CreateAllMdtHits", m_createAllMdtHits);
91 }

◆ ~SimHitCreatorMS()

virtual iFatras::SimHitCreatorMS::~SimHitCreatorMS ( )
virtualdefault

default destructor

Member Function Documentation

◆ createHit()

bool iFatras::SimHitCreatorMS::createHit ( const ISF::ISFParticle isp,
const Trk::Layer lay,
const Trk::TrackParameters parm,
Identifier  id,
double  globalTimeEstimate,
double  ,
bool   
) const
private

Private HitCreate method - returns bool for a successful hit creation.

< TO DO : to be fixed

< end of TO DO

Definition at line 346 of file SimHitCreatorMS.cxx.

348 {
349  // MDT SECTION
350  if (m_idHelperSvc->isMdt(id)) {
351 
352  int simId = m_mdtHitIdHelper->BuildMdtHitId(m_idHelperSvc->mdtIdHelper().stationNameString(m_idHelperSvc->mdtIdHelper().stationName(id)),
353  m_idHelperSvc->mdtIdHelper().stationPhi(id), m_idHelperSvc->mdtIdHelper().stationEta(id),
354  m_idHelperSvc->mdtIdHelper().multilayer(id), m_idHelperSvc->mdtIdHelper().tubeLayer(id),
355  m_idHelperSvc->mdtIdHelper().tube(id));
356 
357  ATH_MSG_VERBOSE( "[ muhit ] Creating MDTSimHit with identifier " << simId );
358  // local position from the mdt's i
360  if(m_BMGpresent && m_idHelperSvc->mdtIdHelper().stationName(id) == m_BMGid ) {
361  auto myIt = m_DeadChannels.find(MdtRoEl->identify());
362  if( myIt != m_DeadChannels.end() ){
363  if( std::find( (myIt->second).begin(), (myIt->second).end(), id) != (myIt->second).end() ) {
364  ATH_MSG_DEBUG("Skipping tube with identifier " << m_idHelperSvc->mdtIdHelper().show_to_string(id) );
365  return false;
366  }
367  }
368  }
369  // local position from the mdt's
370  const Amg::Vector3D localPos = m_muonMgr->getMdtReadoutElement(id)->globalToLocalTransf(id) * parm->position();
371  // drift radius
372  double residual = m_measTool->residual(lay,parm,id);
373  if (std::abs(residual)<15.075) {
374 
375  double dlh = sqrt(15.075*15.075-residual*residual);
376  double de = 0.02*dlh/15.075;
377  double energyDeposit= de + 0.005*CLHEP::RandGaussZiggurat::shoot(m_randomEngine);
378  while (energyDeposit<0.) energyDeposit= de + 0.005*CLHEP::RandGaussZiggurat::shoot(m_randomEngine);
379 
380  // a new simhit
381  HepMcParticleLink partLink(HepMC::uniqueID(isp), 0,
384  m_mdtSimHitCollection->Emplace(simId,globalTimeEstimate,
385  std::abs(residual),
386  localPos,
387  partLink,
388  2*dlh, energyDeposit, isp.pdgCode(),isp.momentum().mag() ) ;
389  return true;
390  } else {
391  return false;
392  }
393  } else if (m_idHelperSvc->isRpc(id)) {
394  // local position from the rpc's
395  const Amg::Vector3D localPos = m_muonMgr->getRpcReadoutElement(id)->globalToLocalTransf(id)*parm->position();
396  int simId = m_rpcHitIdHelper->BuildRpcHitId(m_idHelperSvc->rpcIdHelper().stationNameString(m_idHelperSvc->rpcIdHelper().stationName(id)),
397  m_idHelperSvc->rpcIdHelper().stationPhi(id), m_idHelperSvc->rpcIdHelper().stationEta(id),
398  m_idHelperSvc->rpcIdHelper().doubletZ(id), m_idHelperSvc->rpcIdHelper().doubletR(id),
399  m_idHelperSvc->rpcIdHelper().gasGap(id), m_idHelperSvc->rpcIdHelper().doubletPhi(id),
400  m_idHelperSvc->rpcIdHelper().measuresPhi(id));
401 
402  ATH_MSG_VERBOSE( "[ muhit ] Creating RPCSimHit with identifier " << simId );
403 
404  double energyDeposit= 1.5e-03 + 3.9e-04*CLHEP::RandLandau::shoot(m_randomEngine);
405  while (energyDeposit<0.) energyDeposit= 1.5e-03 + 3.9e-04*CLHEP::RandLandau::shoot(m_randomEngine);
406 
407  // a new simhit
408  HepMcParticleLink partLink(HepMC::uniqueID(isp), 0,
411  m_rpcSimHitCollection->Emplace(simId,globalTimeEstimate, localPos, partLink, localPos, energyDeposit,1.,isp.pdgCode(),isp.momentum().mag() ) ;
412 
413  } else if (m_idHelperSvc->isTgc(id) && !m_idHelperSvc->tgcIdHelper().isStrip(id) ) {
414  // take eta hits only
415  // local position
416  const Amg::Vector3D localPos = Amg::Translation3D(-1.4, 0., 0.)*m_muonMgr->getTgcReadoutElement(id)->globalToLocalTransf(id)*parm->position();
417  // local direction
418  Amg::Vector3D localDir = m_muonMgr->getTgcReadoutElement(id)->globalToLocalTransf(id).rotation()*parm->momentum().normalized();
419 
420  int simId = m_tgcHitIdHelper->BuildTgcHitId(m_idHelperSvc->tgcIdHelper().stationNameString(m_idHelperSvc->tgcIdHelper().stationName(id)),
421  m_idHelperSvc->tgcIdHelper().stationPhi(id), m_idHelperSvc->tgcIdHelper().stationEta(id),
422  m_idHelperSvc->tgcIdHelper().gasGap(id));
423 
424  ATH_MSG_VERBOSE( "[ muhit ] Creating TGCSimHit with identifier " << simId );
425 
426  // TO DO: adust energy deposit and step length ( 1keV,3 mm ? )
427  double energyDeposit= 1.3e-03 + 6.e-04*CLHEP::RandGaussZiggurat::shoot(m_randomEngine);
428  while (energyDeposit<0.) energyDeposit= 1.3e-03 + 6.e-04*CLHEP::RandGaussZiggurat::shoot(m_randomEngine);
429  double stepLength=3.;
430 
431  // a new simhit
432  HepMcParticleLink partLink(HepMC::uniqueID(isp), 0,
435  m_tgcSimHitCollection->Emplace(simId,globalTimeEstimate, localPos, localDir, partLink, energyDeposit, stepLength ) ;
436  } else if (m_idHelperSvc->isCsc(id)) {
437  // one of eta/phi hits only
438 
439  Amg::Vector3D dir(parm->momentum().normalized());
440 
442  float energyDeposit= 0.24e-03 + 1.1e-03*CLHEP::RandGaussZiggurat::shoot(m_randomEngine);
443  while (energyDeposit<0.) energyDeposit= 0.24e-03 + 1.1e-03*CLHEP::RandGaussZiggurat::shoot(m_randomEngine);
444  // cos of incident angle
445  float cs=std::abs(dir.dot(parm->associatedSurface().normal()));
446  float hitlength = 5./cs;
448 
449  Amg::Vector3D startPos(parm->position()-0.5*hitlength*dir);
450  Amg::Vector3D endPos(parm->position()+0.5*hitlength*dir);
451  const Amg::Transform3D globalToLocTransf{m_muonMgr->getCscReadoutElement(id)->globalToLocalTransf(id)};
452  Amg::Vector3D hitStart = globalToLocTransf*startPos;
453  Amg::Vector3D hitEnd = globalToLocTransf*endPos;
454 
455  // the lundcode (from CSCSensitiveDetector)
456  int lundcode=0;
457  int pdgcode= isp.pdgCode();
458 
459  if (pdgcode == 22) lundcode=1;
460  else if (pdgcode == 13 ) lundcode=6;
461  else if (pdgcode == -13) lundcode=5;
462  else lundcode = 999;
463  // else if Trk::nonInteracting lundcode = 999;
464 
465  int simId = m_cscHitIdHelper->BuildCscHitId(m_idHelperSvc->cscIdHelper().stationNameString(m_idHelperSvc->cscIdHelper().stationName(id)),
466  m_idHelperSvc->cscIdHelper().stationPhi(id), m_idHelperSvc->cscIdHelper().stationEta(id),
467  m_idHelperSvc->cscIdHelper().chamberLayer(id), m_idHelperSvc->cscIdHelper().wireLayer(id));
468 
469  ATH_MSG_VERBOSE( "[ muhit ] Creating CSCSimHit with identifier " << simId );
470 
471  // a new simhit
472  HepMcParticleLink partLink(HepMC::uniqueID(isp), 0,
475  const double kineticEnergy{-1.}; // dummy value
476  m_cscSimHitCollection->Emplace(simId,globalTimeEstimate,energyDeposit, hitStart, hitEnd, lundcode, partLink, kineticEnergy ) ;
477  }
478 
479  return false;
480 }

◆ createHits()

void iFatras::SimHitCreatorMS::createHits ( const ISF::ISFParticle isp,
const std::vector< Trk::HitInfo > &  hits 
) const

Loop over the hits and call the hit creator - also provide the ISF particle to register the truth link.

Definition at line 234 of file SimHitCreatorMS.cxx.

235  {
236 
237  // iterate and assign as well the layer
238  std::vector<Trk::HitInfo>::const_iterator plIter = hits.begin();
239  std::vector<Trk::HitInfo>::const_iterator plIterEnd = hits.end();
240  for ( ; plIter != plIterEnd; ++plIter ){
241  // get the parameters & associated layer
242  const Trk::TrackParameters* parm = (*plIter).trackParms.get();
243  double timeInfo = (*plIter).time;
244  const Trk::Layer* currLay = m_extrapolator->trackingGeometry()->associatedLayer( parm->position() );
245 
246  if (!currLay) continue;
247 
248  Identifier id(currLay->layerType());
249 
250  // NSW hits
251  if ( m_idHelperSvc->isMM(id) || m_idHelperSvc->issTgc(id) ) {
252  // hit ID
253  int simID = offIdToSimId(id);
254  // local position : at MTG layer ( corresponds to the middle of the gas gap )
255  // generating particle info
256  double mom = parm->momentum().mag();
257  double mass = isp.mass();
258  double eKin = sqrt( mom*mom+mass*mass) - mass;
259  // the rest of information needs adjustment once full sim hits available
260  double energyDeposit = 1.;
261  const Amg::Vector3D& pos=parm->position();
262  const Amg::Vector3D unitMom=parm->momentum().normalized();
263  // cos of incident angle
264  float cosAngle = std::abs(unitMom.dot(parm->associatedSurface().normal()));
265  float segLengthSTGC = 2.85/cosAngle; // segment length in sTGC gas gap
266  // positions where particle enters and exits the sTGC gas gap
267  const Amg::Vector3D& entryPos(pos - 0.5*segLengthSTGC*unitMom);
268  const Amg::Vector3D& exitPos(pos + 0.5*segLengthSTGC*unitMom);
269 
270  HepMcParticleLink partLink(HepMC::uniqueID(isp), 0,
273  if ( m_idHelperSvc->isMM(id) ) {
274  m_mmSimHitCollection->Emplace(simID, timeInfo, pos,
275  isp.pdgCode(), eKin, unitMom,
276  energyDeposit, partLink) ;
277  }
278  else {
279  m_stgcSimHitCollection->Emplace(simID, timeInfo, exitPos,
280  isp.pdgCode(), unitMom, energyDeposit,
281  partLink, eKin, entryPos);
282  }
283 
284  ATH_MSG_VERBOSE("[ muhit ] NSW hit created.");
285 
286  } else if (m_idHelperSvc->isMdt(id)) { // (A) special treatment for MDTs to find closest channel and nearby hits
287  double pitch = 0.;
288  // get the identifier
289  Identifier hid = m_measTool->nearestDetEl(currLay,parm,false,pitch);
290  //
291  if (m_idHelperSvc->mdtIdHelper().valid(hid)) {
292  // create first hit
293  bool hitCreated = createHit(isp, currLay,parm,hid,timeInfo,pitch, true);
294  if (m_createAllMdtHits) {
295  // nearby hits - check range
297  if (!mdtROE) continue;
298  int tMax = mdtROE->getNtubesperlayer();
299  int tCur = m_idHelperSvc->mdtIdHelper().tube(hid);
300  // recalculate id
301  int next=-1;
302  while (tCur+next>0) {
303  Identifier nextId = m_idHelperSvc->mdtIdHelper().channelID(m_idHelperSvc->mdtIdHelper().stationName(hid),
304  m_idHelperSvc->mdtIdHelper().stationEta(hid),
305  m_idHelperSvc->mdtIdHelper().stationPhi(hid),
306  m_idHelperSvc->mdtIdHelper().multilayer(hid),
307  m_idHelperSvc->mdtIdHelper().tubeLayer(hid),
308  tCur+next);
309  if (!m_idHelperSvc->mdtIdHelper().valid(nextId)) break;
310  hitCreated = createHit(isp, currLay,parm,nextId,timeInfo,pitch,true);
311  if (!hitCreated) break;
312  next--;
313  }
314  next = 1;
315  while (tCur+next <= tMax) {
316  Identifier nextId = m_idHelperSvc->mdtIdHelper().channelID(m_idHelperSvc->mdtIdHelper().stationName(hid),
317  m_idHelperSvc->mdtIdHelper().stationEta(hid),
318  m_idHelperSvc->mdtIdHelper().stationPhi(hid),
319  m_idHelperSvc->mdtIdHelper().multilayer(hid),
320  m_idHelperSvc->mdtIdHelper().tubeLayer(hid),
321  tCur+next);
322  if (!m_idHelperSvc->mdtIdHelper().valid(nextId)) break;
323  hitCreated = createHit(isp, currLay,parm,nextId,timeInfo,pitch,true);
324  if (!hitCreated) break;
325  next++;
326  }
327  } // hits outside central plane
328  } // hit corresponding to the intersection with the central plane
329  } else { // (B) not an MDT nor NSW layer
330  double pitch = 0.;
331  Identifier hid = m_measTool->nearestDetEl(currLay,parm,false,pitch);
332 
333  // check if this is valid
334  if ( hid.get_identifier32().get_compact()>0 && createHit(isp, currLay,parm,hid,timeInfo,pitch,false) )
335  ATH_MSG_VERBOSE("[ muhit ] Hit in MS created.");
336  // reset id for the other side
337  hid = m_measTool->nearestDetEl(currLay,parm,true,pitch);
338  // again check if this is valid
339  if ( hid.get_identifier32().get_compact()>0 && createHit(isp, currLay,parm,hid,timeInfo,pitch,true) )
340  ATH_MSG_VERBOSE("[ muhit ] Hit in MS created.");
341  } // end of asocciated layer check
342  } // end of the loop over TrackParameters
343 }

◆ handle()

void iFatras::SimHitCreatorMS::handle ( const Incident &  inc)

handle for incident service

Definition at line 157 of file SimHitCreatorMS.cxx.

157  {
158  // check the incident type
159  if ( inc.type() == IncidentType::BeginEvent ){
160  ATH_MSG_VERBOSE("[ muon sim hit ] Setting MuonSimHit collections up");
161  // check if the hit collection already contains:
162  // (a) if yes ... try to retrieve it
163  if ( evtStore()->contains<MDTSimHitCollection>(m_mdtCollectionName) ){
164  if ( (evtStore()->retrieve(m_mdtSimHitCollection , m_mdtCollectionName)).isFailure() )
165  ATH_MSG_ERROR( "[ --- ] Unable to retrieve MDTSimHitCollection " << m_mdtCollectionName);
166  // (b) if no ... try to create it
167  } else {
169  if ( (evtStore()->record(m_mdtSimHitCollection, m_mdtCollectionName, true)).isFailure() ) {
170  ATH_MSG_ERROR( "[ --- ] Unable to record MDTSimHitCollection " << m_mdtCollectionName);
172  }
173  }
174  if ( evtStore()->contains<RPCSimHitCollection>(m_rpcCollectionName) ){
175  if ( (evtStore()->retrieve(m_rpcSimHitCollection , m_rpcCollectionName)).isFailure() )
176  ATH_MSG_ERROR( "[ --- ] Unable to retrieve RPCSimHitCollection " << m_rpcCollectionName);
177  // (b) if no ... try to create it
178  } else {
180  if ( (evtStore()->record(m_rpcSimHitCollection, m_rpcCollectionName, true)).isFailure() ) {
181  ATH_MSG_ERROR( "[ --- ] Unable to record RPCSimHitCollection " << m_rpcCollectionName);
183  }
184  }
185  if ( evtStore()->contains<TGCSimHitCollection>(m_tgcCollectionName) ){
186  if ( (evtStore()->retrieve(m_tgcSimHitCollection , m_tgcCollectionName)).isFailure() )
187  ATH_MSG_ERROR( "[ --- ] Unable to retrieve TGCSimHitCollection " << m_tgcCollectionName);
188  // (b) if no ... try to create it
189  } else {
191  if ( (evtStore()->record(m_tgcSimHitCollection, m_tgcCollectionName, true)).isFailure() ) {
192  ATH_MSG_ERROR( "[ --- ] Unable to record TGCSimHitCollection " << m_tgcCollectionName);
194  }
195  }
196  if ( evtStore()->contains<CSCSimHitCollection>(m_cscCollectionName) ){
197  if ( (evtStore()->retrieve(m_cscSimHitCollection , m_cscCollectionName)).isFailure() )
198  ATH_MSG_ERROR( "[ --- ] Unable to retrieve CSCSimHitCollection " << m_cscCollectionName);
199  // (b) if no ... try to create it
200  } else {
202  if ( (evtStore()->record(m_cscSimHitCollection, m_cscCollectionName, true)).isFailure() ) {
203  ATH_MSG_ERROR( "[ --- ] Unable to record CSCSimHitCollection " << m_cscCollectionName);
205  }
206  }
207  if ( evtStore()->contains<MMSimHitCollection>(m_mmCollectionName) ){
208  if ( (evtStore()->retrieve(m_mmSimHitCollection , m_mmCollectionName)).isFailure() )
209  ATH_MSG_ERROR( "[ --- ] Unable to retrieve MMSimHitCollection " << m_mmCollectionName);
210  // (b) if no ... try to create it
211  } else {
213  if ( (evtStore()->record(m_mmSimHitCollection, m_mmCollectionName, true)).isFailure() ) {
214  ATH_MSG_ERROR( "[ --- ] Unable to record MMSimHitCollection " << m_mmCollectionName);
216  }
217  }
218  if ( evtStore()->contains<sTGCSimHitCollection>(m_stgcCollectionName) ){
219  if ( (evtStore()->retrieve(m_stgcSimHitCollection , m_stgcCollectionName)).isFailure() )
220  ATH_MSG_ERROR( "[ --- ] Unable to retrieve sTGCSimHitCollection " << m_stgcCollectionName);
221  // (b) if no ... try to create it
222  } else {
224  if ( (evtStore()->record(m_stgcSimHitCollection, m_stgcCollectionName, true)).isFailure() ) {
225  ATH_MSG_ERROR( "[ --- ] Unable to record sTGCSimHitCollection " << m_stgcCollectionName);
227  }
228  }
229  }
230 }

◆ initDeadChannels()

void iFatras::SimHitCreatorMS::initDeadChannels ( const MuonGM::MdtReadoutElement mydetEl)

Definition at line 521 of file SimHitCreatorMS.cxx.

521  {
522  PVConstLink cv = mydetEl->getMaterialGeom(); // it is "Multilayer"
523  int nGrandchildren = cv->getNChildVols();
524  if(nGrandchildren <= 0) return;
525 
526  Identifier detElId = mydetEl->identify();
527 
528  int name = m_idHelperSvc->mdtIdHelper().stationName(detElId);
529  int eta = m_idHelperSvc->mdtIdHelper().stationEta(detElId);
530  int phi = m_idHelperSvc->mdtIdHelper().stationPhi(detElId);
531  int ml = m_idHelperSvc->mdtIdHelper().multilayer(detElId);
532  std::vector<Identifier> deadTubes;
533 
534  for(int layer = 1; layer <= mydetEl->getNLayers(); layer++){
535  for(int tube = 1; tube <= mydetEl->getNtubesperlayer(); tube++){
536  bool tubefound = false;
537  for(unsigned int kk=0; kk < cv->getNChildVols(); kk++) {
538  int tubegeo = cv->getIdOfChildVol(kk) % maxNTubesPerLayer;
539  int layergeo = ( cv->getIdOfChildVol(kk) - tubegeo ) / maxNTubesPerLayer;
540  if( tubegeo == tube && layergeo == layer ) {
541  tubefound=true;
542  break;
543  }
544  if( layergeo > layer ) break; // don't loop any longer if you cannot find tube anyway anymore
545  }
546  if(!tubefound) {
547  Identifier deadTubeId = m_idHelperSvc->mdtIdHelper().channelID( name, eta, phi, ml, layer, tube );
548  deadTubes.push_back( deadTubeId );
549  ATH_MSG_VERBOSE("adding dead tube (" << tube << "), layer(" << layer
550  << "), phi(" << phi << "), eta(" << eta << "), name(" << name
551  << "), multilayerId(" << ml << ") and identifier " << deadTubeId <<" .");
552  }
553  }
554  }
555  std::sort(deadTubes.begin(), deadTubes.end());
556  m_DeadChannels[detElId] = deadTubes;
557 }

◆ initialize()

StatusCode iFatras::SimHitCreatorMS::initialize ( )
virtual

Definition at line 95 of file SimHitCreatorMS.cxx.

96 {
97 
98  // Get Extrapolator from ToolService
99  ATH_CHECK(m_extrapolator.retrieve());
100  // Get IdHelper from ToolService
101  ATH_CHECK(m_idHelperSvc.retrieve());
102  // the MS helpers for the different technologies
103  m_mdtHitIdHelper = MdtHitIdHelper::GetHelper(m_idHelperSvc->mdtIdHelper().tubeMax());
104  m_rpcHitIdHelper = RpcHitIdHelper::GetHelper(m_idHelperSvc->rpcIdHelper().gasGapMax());
107 
109 
110  m_mmOffToSimId = new MM_SimIdToOfflineId(&m_idHelperSvc->mmIdHelper());
111  m_stgcOffToSimId = new sTgcSimIdToOfflineId(&m_idHelperSvc->stgcIdHelper());
112 
113  // get measurement tool
114  ATH_CHECK(m_measTool.retrieve());
115 
116  // Random number service
117  ATH_CHECK(m_randomSvc.retrieve());
118  //Get own engine with own seeds:
120  if (!m_randomEngine) {
121  ATH_MSG_ERROR( "[ --- ] Could not get random engine '" << m_randomEngineName << "'" );
122  return StatusCode::FAILURE;
123  }
124 
125 
126  // Athena/Gaudi framework
127  ATH_CHECK(m_incidentSvc.retrieve());
128  // register to the incident service: BeginEvent for TrackCollection
129  m_incidentSvc->addListener( this, IncidentType::BeginEvent);
130 
131  ATH_MSG_INFO( "[ mutrack ] initialize() successful." );
132 
133  m_BMGpresent = m_idHelperSvc->mdtIdHelper().stationNameIndex("BMG") != -1;
134  if(m_BMGpresent){
135  ATH_MSG_INFO("Processing configuration for layouts with BMG chambers.");
136  m_BMGid = m_idHelperSvc->mdtIdHelper().stationNameIndex("BMG");
137  for(int phi=6; phi<8; phi++) { // phi sectors
138  for(int eta=1; eta<4; eta++) { // eta sectors
139  for(int side=-1; side<2; side+=2) { // side
140  if( !m_muonMgr->getMuonStation("BMG", side*eta, phi) ) continue;
141  for(int roe=1; roe<= ((m_muonMgr->getMuonStation("BMG", side*eta, phi) )->nMuonReadoutElements()); roe++) { // iterate on readout elemets
142  const MuonGM::MdtReadoutElement* mdtRE =
143  dynamic_cast<const MuonGM::MdtReadoutElement*> ( ( m_muonMgr->getMuonStation("BMG", side*eta, phi) )->getMuonReadoutElement(roe) ); // has to be an MDT
144  if(mdtRE) initDeadChannels(mdtRE);
145  }
146  }
147  }
148  }
149  }
150 
151 
152  return StatusCode::SUCCESS;
153 }

◆ offIdToSimId()

int iFatras::SimHitCreatorMS::offIdToSimId ( Identifier  id) const
private

Definition at line 482 of file SimHitCreatorMS.cxx.

482  {
483 
484  if (m_idHelperSvc->isMM(id)) {
485 
486  int simID = m_mmOffToSimId->convert(id);
487 
488  //verify
489  Identifier check_id = m_mmOffToSimId->convert(simID);
490 
491  if ( check_id != id ) {
492 
493  ATH_MSG_WARNING("MM Id conversion error!");
494  ATH_MSG_WARNING(m_idHelperSvc->mmIdHelper().print_to_string(id));
495  ATH_MSG_WARNING(m_idHelperSvc->mmIdHelper().print_to_string(check_id));
496 
497  }
498 
499  return simID;
500  } else if (m_idHelperSvc->issTgc(id)) {
501 
502  int simID = m_stgcOffToSimId->convert(id);
503 
504  //verify
505  Identifier check_id = m_stgcOffToSimId->convert(simID);
506 
507  if ( check_id != id ) {
508 
509  ATH_MSG_WARNING("sTGC Id conversion error!");
510  ATH_MSG_WARNING(m_idHelperSvc->stgcIdHelper().print_to_string(id));
511  ATH_MSG_WARNING(m_idHelperSvc->stgcIdHelper().print_to_string(check_id));
512 
513  }
514 
515  return simID;
516  }
517 
518 
519  return 0;
520 }

Member Data Documentation

◆ m_BMGid

int iFatras::SimHitCreatorMS::m_BMGid
private

Definition at line 130 of file SimHitCreatorMS.h.

◆ m_BMGpresent

bool iFatras::SimHitCreatorMS::m_BMGpresent = false
private

Definition at line 132 of file SimHitCreatorMS.h.

◆ m_createAllMdtHits

bool iFatras::SimHitCreatorMS::m_createAllMdtHits
private

Definition at line 131 of file SimHitCreatorMS.h.

◆ m_cscCollectionName

std::string iFatras::SimHitCreatorMS::m_cscCollectionName
private

Definition at line 110 of file SimHitCreatorMS.h.

◆ m_cscHitIdHelper

const CscHitIdHelper* iFatras::SimHitCreatorMS::m_cscHitIdHelper
private

Definition at line 120 of file SimHitCreatorMS.h.

◆ m_cscSimHitCollection

CSCSimHitCollection* iFatras::SimHitCreatorMS::m_cscSimHitCollection
private

Definition at line 104 of file SimHitCreatorMS.h.

◆ m_DeadChannels

std::map<Identifier, std::vector<Identifier> > iFatras::SimHitCreatorMS::m_DeadChannels
private

Definition at line 133 of file SimHitCreatorMS.h.

◆ m_extrapolator

ToolHandle<Trk::ITimedExtrapolator> iFatras::SimHitCreatorMS::m_extrapolator
private

Tool using the track creator per event.

Definition at line 95 of file SimHitCreatorMS.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> iFatras::SimHitCreatorMS::m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Definition at line 122 of file SimHitCreatorMS.h.

◆ m_incidentSvc

ServiceHandle<IIncidentSvc> iFatras::SimHitCreatorMS::m_incidentSvc
private

Incident Service.

Definition at line 92 of file SimHitCreatorMS.h.

◆ m_mdtCollectionName

std::string iFatras::SimHitCreatorMS::m_mdtCollectionName
private

Definition at line 107 of file SimHitCreatorMS.h.

◆ m_mdtHitIdHelper

const MdtHitIdHelper* iFatras::SimHitCreatorMS::m_mdtHitIdHelper
private

Definition at line 118 of file SimHitCreatorMS.h.

◆ m_mdtSigmaDriftRadius

double iFatras::SimHitCreatorMS::m_mdtSigmaDriftRadius
private

Definition at line 128 of file SimHitCreatorMS.h.

◆ m_mdtSimHitCollection

MDTSimHitCollection* iFatras::SimHitCreatorMS::m_mdtSimHitCollection
private

Definition at line 101 of file SimHitCreatorMS.h.

◆ m_measTool

ToolHandle<Muon::IMuonTGMeasTool> iFatras::SimHitCreatorMS::m_measTool
private

Muon TrackingGeometry Measurement Tool.

Definition at line 98 of file SimHitCreatorMS.h.

◆ m_mmCollectionName

std::string iFatras::SimHitCreatorMS::m_mmCollectionName
private

Definition at line 111 of file SimHitCreatorMS.h.

◆ m_mmOffToSimId

MM_SimIdToOfflineId* iFatras::SimHitCreatorMS::m_mmOffToSimId
private

Definition at line 123 of file SimHitCreatorMS.h.

◆ m_mmSimHitCollection

MMSimHitCollection* iFatras::SimHitCreatorMS::m_mmSimHitCollection
private

Definition at line 105 of file SimHitCreatorMS.h.

◆ m_muonMgr

const MuonGM::MuonDetectorManager* iFatras::SimHitCreatorMS::m_muonMgr
private

Definition at line 126 of file SimHitCreatorMS.h.

◆ m_randomEngine

CLHEP::HepRandomEngine* iFatras::SimHitCreatorMS::m_randomEngine
private

Random Engine.

Definition at line 117 of file SimHitCreatorMS.h.

◆ m_randomEngineName

std::string iFatras::SimHitCreatorMS::m_randomEngineName
private

Name of the random number stream.

Definition at line 116 of file SimHitCreatorMS.h.

◆ m_randomSvc

ServiceHandle<IAtRndmGenSvc> iFatras::SimHitCreatorMS::m_randomSvc
private

Pointer to the random number generator service.

Random Svc

Definition at line 115 of file SimHitCreatorMS.h.

◆ m_rpcCollectionName

std::string iFatras::SimHitCreatorMS::m_rpcCollectionName
private

Definition at line 108 of file SimHitCreatorMS.h.

◆ m_rpcHitIdHelper

const RpcHitIdHelper* iFatras::SimHitCreatorMS::m_rpcHitIdHelper
private

Definition at line 119 of file SimHitCreatorMS.h.

◆ m_rpcSimHitCollection

RPCSimHitCollection* iFatras::SimHitCreatorMS::m_rpcSimHitCollection
private

Definition at line 102 of file SimHitCreatorMS.h.

◆ m_stgcCollectionName

std::string iFatras::SimHitCreatorMS::m_stgcCollectionName
private

Definition at line 112 of file SimHitCreatorMS.h.

◆ m_stgcOffToSimId

sTgcSimIdToOfflineId* iFatras::SimHitCreatorMS::m_stgcOffToSimId
private

Definition at line 124 of file SimHitCreatorMS.h.

◆ m_stgcSimHitCollection

sTGCSimHitCollection* iFatras::SimHitCreatorMS::m_stgcSimHitCollection
private

Definition at line 106 of file SimHitCreatorMS.h.

◆ m_tgcCollectionName

std::string iFatras::SimHitCreatorMS::m_tgcCollectionName
private

Definition at line 109 of file SimHitCreatorMS.h.

◆ m_tgcHitIdHelper

const TgcHitIdHelper* iFatras::SimHitCreatorMS::m_tgcHitIdHelper
private

Definition at line 121 of file SimHitCreatorMS.h.

◆ m_tgcSimHitCollection

TGCSimHitCollection* iFatras::SimHitCreatorMS::m_tgcSimHitCollection
private

Definition at line 103 of file SimHitCreatorMS.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
MuonGM::MuonDetectorManager::getRpcReadoutElement
const RpcReadoutElement * getRpcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:168
iFatras::SimHitCreatorMS::offIdToSimId
int offIdToSimId(Identifier id) const
Definition: SimHitCreatorMS.cxx:482
iFatras::SimHitCreatorMS::m_muonMgr
const MuonGM::MuonDetectorManager * m_muonMgr
Definition: SimHitCreatorMS.h:126
iFatras::SimHitCreatorMS::m_BMGid
int m_BMGid
Definition: SimHitCreatorMS.h:130
iFatras::SimHitCreatorMS::m_cscHitIdHelper
const CscHitIdHelper * m_cscHitIdHelper
Definition: SimHitCreatorMS.h:120
MuonGM::CscReadoutElement::globalToLocalTransf
Amg::Transform3D globalToLocalTransf(const Identifier &id) const
Definition: CscReadoutElement.cxx:118
iFatras::SimHitCreatorMS::m_stgcSimHitCollection
sTGCSimHitCollection * m_stgcSimHitCollection
Definition: SimHitCreatorMS.h:106
test_pyathena.eta
eta
Definition: test_pyathena.py:10
RpcHitIdHelper::GetHelper
static const RpcHitIdHelper * GetHelper(unsigned int nGasGaps=2)
Definition: RpcHitIdHelper.cxx:23
iFatras::SimHitCreatorMS::m_cscSimHitCollection
CSCSimHitCollection * m_cscSimHitCollection
Definition: SimHitCreatorMS.h:104
MuonGM::MdtReadoutElement::getNLayers
int getNLayers() const
Returns the number of tube layers inside the multilayer.
sTgcSimIdToOfflineId
Definition: sTgcSimIdToOfflineId.h:12
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
iFatras::SimHitCreatorMS::m_rpcSimHitCollection
RPCSimHitCollection * m_rpcSimHitCollection
Definition: SimHitCreatorMS.h:102
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
iFatras::SimHitCreatorMS::initDeadChannels
void initDeadChannels(const MuonGM::MdtReadoutElement *mydetEl)
Definition: SimHitCreatorMS.cxx:521
MM_SimIdToOfflineId
Definition: MM_SimIdToOfflineId.h:12
iFatras::SimHitCreatorMS::m_stgcOffToSimId
sTgcSimIdToOfflineId * m_stgcOffToSimId
Definition: SimHitCreatorMS.h:124
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
iFatras::SimHitCreatorMS::m_tgcSimHitCollection
TGCSimHitCollection * m_tgcSimHitCollection
Definition: SimHitCreatorMS.h:103
ClusterSeg::residual
@ residual
Definition: ClusterNtuple.h:20
Trk::ParametersBase::position
const Amg::Vector3D & position() const
Access method for the position.
Trk::ParametersBase::associatedSurface
virtual const Surface & associatedSurface() const override=0
Access to the Surface associated to the Parameters.
MuonGM::RpcReadoutElement::globalToLocalTransf
Amg::Transform3D globalToLocalTransf(const Identifier &id) const
Definition: MuonDetDescr/MuonReadoutGeometry/src/RpcReadoutElement.cxx:218
sTGCSimHitCollection
AtlasHitsVector< sTGCSimHit > sTGCSimHitCollection
Definition: sTGCSimHitCollection.h:15
iFatras::SimHitCreatorMS::m_BMGpresent
bool m_BMGpresent
Definition: SimHitCreatorMS.h:132
MDTSimHitCollection
AtlasHitsVector< MDTSimHit > MDTSimHitCollection
Definition: MDTSimHitCollection.h:14
TGCSimHitCollection
AtlasHitsVector< TGCSimHit > TGCSimHitCollection
Definition: TGCSimHitCollection.h:15
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
iFatras::SimHitCreatorMS::m_measTool
ToolHandle< Muon::IMuonTGMeasTool > m_measTool
Muon TrackingGeometry Measurement Tool.
Definition: SimHitCreatorMS.h:98
ISF::ISFParticle::pdgCode
int pdgCode() const
PDG value.
RPCSimHitCollection
AtlasHitsVector< RPCSimHit > RPCSimHitCollection
Definition: RPCSimHitCollection.h:15
iFatras::SimHitCreatorMS::m_mmSimHitCollection
MMSimHitCollection * m_mmSimHitCollection
Definition: SimHitCreatorMS.h:105
iFatras::SimHitCreatorMS::m_stgcCollectionName
std::string m_stgcCollectionName
Definition: SimHitCreatorMS.h:112
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
iFatras::SimHitCreatorMS::createHit
bool createHit(const ISF::ISFParticle &isp, const Trk::Layer *, const Trk::TrackParameters *, Identifier, double, double, bool) const
Private HitCreate method - returns bool for a successful hit creation.
Definition: SimHitCreatorMS.cxx:346
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
MdtHitIdHelper::GetHelper
static const MdtHitIdHelper * GetHelper(unsigned int nTubes=78)
Definition: MdtHitIdHelper.cxx:24
iFatras::SimHitCreatorMS::m_mmOffToSimId
MM_SimIdToOfflineId * m_mmOffToSimId
Definition: SimHitCreatorMS.h:123
iFatras::SimHitCreatorMS::m_DeadChannels
std::map< Identifier, std::vector< Identifier > > m_DeadChannels
Definition: SimHitCreatorMS.h:133
MMSimHitCollection
AtlasHitsVector< MMSimHit > MMSimHitCollection
Definition: MMSimHitCollection.h:15
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition: Identifier32.h:44
Trk::Layer::layerType
int layerType() const
get the Layer coding
sTgcSimIdToOfflineId::convert
Identifier convert(int simId) const
Definition: sTgcSimIdToOfflineId.h:24
Trk::energyDeposit
@ energyDeposit
Definition: MeasurementType.h:32
CSCSimHitCollection
AtlasHitsVector< CSCSimHit > CSCSimHitCollection
Definition: CSCSimHitCollection.h:14
RpcHitIdHelper::BuildRpcHitId
int BuildRpcHitId(const std::string &, const int, const int, const int, const int, const int, const int, const int) const
Definition: RpcHitIdHelper.cxx:102
TRT::Hit::side
@ side
Definition: HitInfo.h:83
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
MuonGM::MdtReadoutElement::globalToLocalTransf
Amg::Transform3D globalToLocalTransf(const int tubeLayer, const int tube) const
Definition: MuonDetDescr/MuonReadoutGeometry/src/MdtReadoutElement.cxx:401
MuonGM::MuonDetectorManager::getTgcReadoutElement
const TgcReadoutElement * getTgcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:247
iFatras::SimHitCreatorMS::m_rpcHitIdHelper
const RpcHitIdHelper * m_rpcHitIdHelper
Definition: SimHitCreatorMS.h:119
AtlasHitsVector::Emplace
void Emplace(Args &&... args)
Definition: AtlasHitsVector.h:81
iFatras::SimHitCreatorMS::m_incidentSvc
ServiceHandle< IIncidentSvc > m_incidentSvc
Incident Service.
Definition: SimHitCreatorMS.h:92
python.changerun.kk
list kk
Definition: changerun.py:41
iFatras::SimHitCreatorMS::m_extrapolator
ToolHandle< Trk::ITimedExtrapolator > m_extrapolator
Tool using the track creator per event.
Definition: SimHitCreatorMS.h:95
CscHitIdHelper::GetHelper
static const CscHitIdHelper * GetHelper()
Definition: CscHitIdHelper.cxx:23
MM_SimIdToOfflineId::convert
Identifier convert(int simId) const
Definition: MM_SimIdToOfflineId.h:24
iFatras::SimHitCreatorMS::m_mdtHitIdHelper
const MdtHitIdHelper * m_mdtHitIdHelper
Definition: SimHitCreatorMS.h:118
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
CscHitIdHelper::BuildCscHitId
int BuildCscHitId(const std::string &, const int, const int, const int, const int) const
Definition: CscHitIdHelper.cxx:89
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
MuonGM::MuonDetectorManager::getMdtReadoutElement
const MdtReadoutElement * getMdtReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:204
MuonGM::MdtReadoutElement
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MdtReadoutElement.h:51
fillPileUpNoiseLumi.next
next
Definition: fillPileUpNoiseLumi.py:52
MuonGM::MuonDetectorManager::getCscReadoutElement
const CscReadoutElement * getCscReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:225
iFatras::SimHitCreatorMS::m_randomEngineName
std::string m_randomEngineName
Name of the random number stream.
Definition: SimHitCreatorMS.h:116
beamspotman.n
n
Definition: beamspotman.py:731
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
iFatras::SimHitCreatorMS::m_rpcCollectionName
std::string m_rpcCollectionName
Definition: SimHitCreatorMS.h:108
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
iFatras::SimHitCreatorMS::m_mdtSimHitCollection
MDTSimHitCollection * m_mdtSimHitCollection
Definition: SimHitCreatorMS.h:101
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
HepMC::uniqueID
int uniqueID(const T &p)
Definition: MagicNumbers.h:116
Trk::Surface::normal
virtual const Amg::Vector3D & normal() const
Returns the normal vector of the Surface (i.e.
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
Trk::ParametersBase
Definition: ParametersBase.h:55
TgcHitIdHelper::GetHelper
static const TgcHitIdHelper * GetHelper()
Definition: TgcHitIdHelper.cxx:23
iFatras::SimHitCreatorMS::m_tgcHitIdHelper
const TgcHitIdHelper * m_tgcHitIdHelper
Definition: SimHitCreatorMS.h:121
beamspotman.dir
string dir
Definition: beamspotman.py:623
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ISF::ISFParticle::momentum
const Amg::Vector3D & momentum() const
The current momentum vector of the ISFParticle.
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
iFatras::SimHitCreatorMS::m_cscCollectionName
std::string m_cscCollectionName
Definition: SimHitCreatorMS.h:110
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
iFatras::SimHitCreatorMS::m_tgcCollectionName
std::string m_tgcCollectionName
Definition: SimHitCreatorMS.h:109
iFatras::SimHitCreatorMS::m_mmCollectionName
std::string m_mmCollectionName
Definition: SimHitCreatorMS.h:111
MuonGM::MuonDetectorManager::getMuonStation
const MuonStation * getMuonStation(const std::string &stName, int eta, int phi) const
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:137
Trk::ParametersBase::momentum
const Amg::Vector3D & momentum() const
Access method for the momentum.
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
iFatras::SimHitCreatorMS::m_randomSvc
ServiceHandle< IAtRndmGenSvc > m_randomSvc
Pointer to the random number generator service.
Definition: SimHitCreatorMS.h:115
Amg::Translation3D
Eigen::Translation< double, 3 > Translation3D
Definition: GeoPrimitives.h:44
MuonGM::MuonReadoutElement::identify
Identifier identify() const override final
Returns the ATLAS Identifier of the MuonReadOutElement.
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:184
iFatras::SimHitCreatorMS::m_randomEngine
CLHEP::HepRandomEngine * m_randomEngine
Random Engine.
Definition: SimHitCreatorMS.h:117
iFatras::SimHitCreatorMS::m_createAllMdtHits
bool m_createAllMdtHits
Definition: SimHitCreatorMS.h:131
TgcHitIdHelper::BuildTgcHitId
int BuildTgcHitId(const std::string &, const int, const int, const int) const
Definition: TgcHitIdHelper.cxx:77
MuonGM::MdtReadoutElement::getNtubesperlayer
int getNtubesperlayer() const
Returns the number of tubes in each tube layer.
MuonGM::TgcReadoutElement::globalToLocalTransf
Amg::Transform3D globalToLocalTransf(const Identifier &id) const
Returns the global -> local transformation.
iFatras::SimHitCreatorMS::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: SimHitCreatorMS.h:122
calibdata.tube
tube
Definition: calibdata.py:31
MdtHitIdHelper::BuildMdtHitId
int BuildMdtHitId(const std::string &, const int, const int, const int, const int, const int) const
Definition: MdtHitIdHelper.cxx:95
iFatras::SimHitCreatorMS::m_mdtCollectionName
std::string m_mdtCollectionName
Definition: SimHitCreatorMS.h:107
iFatras::SimHitCreatorMS::m_mdtSigmaDriftRadius
double m_mdtSigmaDriftRadius
Definition: SimHitCreatorMS.h:128
Trk::Layer
Definition: Layer.h:73
ISF::ISFParticle::mass
double mass() const
mass of the particle
Identifier
Definition: IdentifierFieldParser.cxx:14