|
ATLAS Offline Software
|
#include <MdtDigitizationTool.h>
|
ServiceHandle< PileUpMergeSvc > | m_mergeSvc {this, "PileUpMergeSvc", "PileUpMergeSvc", ""} |
|
BooleanProperty | m_onlyUseContainerName |
|
SG::ReadHandleKey< MDTSimHitCollection > | m_hitsContainerKey {this, "InputObjectName", "MDT_Hits", ""} |
|
std::string | m_inputObjectName {""} |
|
SG::WriteHandleKey< MdtDigitContainer > | m_outputObjectKey |
|
SG::WriteHandleKey< MuonSimDataCollection > | m_outputSDOKey |
|
ServiceHandle< IAthRNGSvc > | m_rndmSvc {this, "RndmSvc", "AthRNGSvc", ""} |
|
SG::ReadCondHandleKey< MuonCalib::MdtCalibDataContainer > | m_calibDbKey |
|
SG::ReadCondHandleKey< MdtCondDbData > | m_readKey {this, "ReadKey", "MdtCondDbData", "Key of MdtCondDbData"} |
|
|
CLHEP::HepRandomEngine * | getRandomEngine (const std::string &streamName, const EventContext &ctx) const |
|
int | digitizeTime (double time, bool isHPTDC, CLHEP::HepRandomEngine *rndmEngine) const |
|
double | minimumTof (Identifier DigitId, const MuonGM::MuonDetectorManager *detMgr) const |
|
bool | insideMatchingWindow (double time) const |
|
bool | insideMaskWindow (double time) const |
|
bool | checkMDTSimHit (const EventContext &ctx, const MDTSimHit &hit) const |
|
bool | handleMDTSimHit (const EventContext &ctx, const TimedHitPtr< MDTSimHit > &phit, CLHEP::HepRandomEngine *twinRndmEngine, CLHEP::HepRandomEngine *toolRndmEngine) |
|
bool | createDigits (const EventContext &ctx, Collections_t &collections, MuonSimDataCollection *sdoContainer, CLHEP::HepRandomEngine *rndmEngine) |
|
GeoCorOut | correctGeometricalWireSag (const MDTSimHit &hit, const Identifier &id, const MuonGM::MdtReadoutElement *element) const |
|
StatusCode | getNextEvent (const EventContext &ctx) |
|
StatusCode | doDigitization (const EventContext &ctx, Collections_t &collections, MuonSimDataCollection *sdoContainer) |
|
MdtDigitCollection * | getDigitCollection (Identifier elementId, Collections_t &collections) |
|
void | fillMaps (const MDTSimHit *mdtHit, const Identifier digitId, const double driftR) |
|
|
MDT_SortedHitVector | m_hits |
|
ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
|
const MdtHitIdHelper * | m_muonHelper {} |
|
const MuonGM::MuonDetectorManager * | m_MuonGeoMgr {} |
|
ToolHandle< IMDT_DigitizationTool > | m_digiTool |
|
std::vector< MDTSimHitCollection * > | m_MDTHitCollList |
|
Gaudi::Property< double > | m_offsetTDC {this, "OffsetTDC", 800., "TDC offset used if no calibration data is found"} |
|
Gaudi::Property< double > | m_signalSpeed {this, "SignalSpeed", 0.85*Gaudi::Units::c_light} |
|
Gaudi::Property< double > | m_ns2TDCAMT {this, "ns2TDCAMT", 0.78125, "Conversion factor TDC/ns for AMT chips"} |
|
Gaudi::Property< double > | m_ns2TDCHPTDC {this, "ns2TDCHPTDC", 0.1953125, "Conversion factor TDC/ns for HPTDC chips"} |
|
Gaudi::Property< double > | m_resTDC {this, "ResolutionTDC", 0.5, "TDC resolution"} |
|
Gaudi::Property< double > | m_t0ShiftTuning {this,"TunedT0Shift",-17.,"Fine tuned t0 shift value in ns"} |
|
Gaudi::Property< bool > | m_checkMDTSimHits {this, "CheckSimHits", true, "Control on the hit validity"} |
|
Gaudi::Property< bool > | m_useTof {this, "UseTof", true, "Option for the tof calculation"} |
|
Gaudi::Property< bool > | m_useAttenuation {this, "UseAttenuation", false, ""} |
|
Gaudi::Property< bool > | m_useProp {this, "UseProp", true, ""} |
|
Gaudi::Property< bool > | m_useTwin {this, "UseTwin", false, ""} |
|
Gaudi::Property< bool > | m_useAllBOLTwin {this, "UseAllBOLTwin", false, ""} |
|
Gaudi::Property< double > | m_resTwin {this, "ResolutionTwinTube", 1.05, "Twin Tube resolution"} |
|
Gaudi::Property< bool > | m_useTimeWindow {this, "UseTimeWindow", true, ""} |
|
Gaudi::Property< double > | m_bunchCountOffset {this, "BunchCountOffset", -200., "Bunch crossing offset"} |
|
Gaudi::Property< double > | m_matchingWindow {this, "MatchingWindow", 1000., "Matching window"} |
|
Gaudi::Property< double > | m_maskWindow {this, "MaskWindow", 250., "Masked window"} |
|
Gaudi::Property< double > | m_deadTime {this, "DeadTime", 700., "MDT drift tube dead time"} |
|
Gaudi::Property< bool > | m_DiscardEarlyHits {this, "DiscardEarlyHits", true, ""} |
|
Gaudi::Property< bool > | m_useOffSet1 {this, "UseOffSet1", true, ""} |
|
Gaudi::Property< bool > | m_useOffSet2 {this, "UseOffSet2", true, ""} |
|
Gaudi::Property< bool > | m_useDeformations {this, "UseDeformations", false, ""} |
|
Gaudi::Property< bool > | m_DoQballCharge {this, "DoQballCharge", false, "dEdx for Qballs with account of electric charge"} |
|
std::unique_ptr< TimedHitCollection< MDTSimHit > > | m_thpcMDT {} |
|
Gaudi::Property< bool > | m_includePileUpTruth {this, "IncludePileUpTruth", true, "Include pile-up truth info"} |
|
In the initialize() method, the PileUpMerge and StoreGate services are initialized, and a pointer to an instance of the class MuonDetectorManager is retrieved from the detector store and used to obtain a MdtIdHelper.The MdtDigitContainer is initialized and the simulation identifier helper retrieved, together with the pointer to the digitization tool. Random numbers are obtained in the code from a dedicated stream via AtRndmSvc, which is also initialized in the initialize() method.
In the execute() method, the digits and the SDOs (Simulation Data Object, container for simulation data to be preserved after the digitization procedue, and persistified together with the RDOs) containers are created and recorded on StoreGate; the MDTSimHit collection are merged using the TimedHitCollection sorted container (done in handleMDTSimHit(TimedHitPtr <MDTSimHit>& hit)) method); into a loop over the TimedHitCollection for the given DetectorElement, the handleMDTSimHit() method converts the SimID into the Offline ID to be associated to the Digit and pass to the digitization tool the drift radius and the distance to the chamber RO side (for the propagation delay computation). The digitization tool returns a drift time and an ADC count which are used together with the Offline ID, to create the digit object (in createDigits() method).
The finalize() method returns a SUCCESS StatusCode if the digitization procedure ends succesfully.
Definition at line 87 of file MuonDigitization/MDT_Digitization/src/MdtDigitizationTool.h.
◆ Collections_t
◆ MdtDigitizationTool()
MdtDigitizationTool::MdtDigitizationTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
pIID |
|
) |
| |
◆ ~MdtDigitizationTool()
virtual MdtDigitizationTool::~MdtDigitizationTool |
( |
| ) |
|
|
virtualdefault |
◆ applyDeformations()
◆ checkMDTSimHit()
bool MdtDigitizationTool::checkMDTSimHit |
( |
const EventContext & |
ctx, |
|
|
const MDTSimHit & |
hit |
|
) |
| const |
|
private |
◆ correctGeometricalWireSag()
Definition at line 813 of file MuonDigitization/MDT_Digitization/src/MdtDigitizationTool.cxx.
832 double pointingCheck = gpos.dot(gdir) < 0 ? -1. : 1.;
833 if (pointingCheck < 0) { gdir *= pointingCheck; }
835 double trackingSign = 1.;
836 double localSag = 0.0;
841 trackingSign = lpsag[
Trk::locR] < 0 ? -1. : 1.;
855 double sign = lpos.dot(lgravDir) < 0 ? -1. : 1.;
857 return {
sign, trackingSign, lpos, localSag};
◆ createDigits()
Definition at line 591 of file MuonDigitization/MDT_Digitization/src/MdtDigitizationTool.cxx.
594 Identifier currentDigitId{0}, currentElementId{0};
596 double currentDeadTime = 0.;
603 double timeOffsetEvent = 0.0;
604 double timeOffsetTotal = 0.0;
608 int inum = CLHEP::RandFlat::shootInt(rndmEngine, 0, 10);
610 timeOffsetEvent = -25.0;
611 }
else if (inum == 9) {
612 timeOffsetEvent = 25.0;
614 ATH_MSG_DEBUG(
"Emulating timing spead of cosmics: +/- 1 BC. Adding " << timeOffsetEvent <<
" ns to time");
619 if (!mdtCalibConstants.isValid()) {
620 ATH_MSG_FATAL(
"Failed to retrieve set of calibration constants "<<mdtCalibConstants.fullKey());
629 if (elementId != currentElementId) {
630 currentElementId = elementId;
636 timeOffsetTotal = timeOffsetEvent + CLHEP::RandFlat::shoot(rndmEngine, -12.5, 12.5);
637 ATH_MSG_DEBUG(
"Emulating time jitter of cosmic ray muons w.r.t LVL1 accept. Adding " << timeOffsetTotal <<
" ns to time");
641 if (!digitCollection) {
653 if (idDigit != currentDigitId) {
654 currentDigitId = idDigit;
679 if (insideMask && insideMatch) {
680 ATH_MSG_WARNING(
" Digit in matching AND masking window, please check window definition: relative time " << relativeTime);
683 if (insideMatch || insideMask) {
690 if (singleTubeData) {
701 <<
" driftRadius " <<
driftRadius <<
" TDC " << tdc <<
" ADC " <<
adc <<
" mask bit "
707 ATH_MSG_VERBOSE(
" createDigits() phit-" << &phit <<
" hit-" << hit.print() <<
" localZPos = " << hit.localPosition().z());
717 std::vector<MuonSimData::Deposit> deposits;
718 deposits.push_back(deposit);
722 tempSDO.setPosition(
p);
723 tempSDO.setTime(
hitTime(phit));
724 sdoContainer->insert(std::make_pair(idDigit, tempSDO));
729 <<
" --> hit ignored");
◆ digitizeTime()
int MdtDigitizationTool::digitizeTime |
( |
double |
time, |
|
|
bool |
isHPTDC, |
|
|
CLHEP::HepRandomEngine * |
rndmEngine |
|
) |
| const |
|
private |
◆ doDigitization()
◆ fillMaps()
◆ filterPassed()
virtual bool PileUpToolBase::filterPassed |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ getDigitCollection()
Definition at line 736 of file MuonDigitization/MDT_Digitization/src/MdtDigitizationTool.cxx.
739 if (
m_idHelperSvc->mdtIdHelper().get_hash(elementId, coll_hash, &mdtContext)) {
740 ATH_MSG_ERROR(
"Unable to get MDT hash id from MDT Digit collection "
741 <<
"context begin_index = " << mdtContext.
begin_index() <<
" context end_index = " << mdtContext.
end_index()
742 <<
" the identifier is ");
746 if (coll_hash >= collections.size()) {
747 collections.resize (coll_hash+1);
750 auto& coll = collections[coll_hash];
752 coll = std::make_unique<MdtDigitCollection>(elementId, coll_hash);
◆ getNextEvent()
StatusCode MdtDigitizationTool::getNextEvent |
( |
const EventContext & |
ctx | ) |
|
|
private |
Definition at line 184 of file MuonDigitization/MDT_Digitization/src/MdtDigitizationTool.cxx.
193 if (!hitCollection.isValid()) {
194 ATH_MSG_ERROR(
"Could not get MDTSimHitCollection container " << hitCollection.name() <<
" from store "
195 << hitCollection.store());
196 return StatusCode::FAILURE;
200 m_thpcMDT = std::make_unique<TimedHitCollection<MDTSimHit>>(1);
201 m_thpcMDT->insert(0, hitCollection.cptr());
202 ATH_MSG_DEBUG(
"MDTSimHitCollection found with " << hitCollection->size() <<
" hits");
204 return StatusCode::SUCCESS;
208 TimedHitCollList hitCollList;
212 return StatusCode::FAILURE;
214 if (hitCollList.empty()) {
216 return StatusCode::FAILURE;
222 m_thpcMDT = std::make_unique<TimedHitCollection<MDTSimHit>>();
227 while (iColl != endColl) {
229 m_thpcMDT->insert(iColl->first, p_collection);
230 ATH_MSG_DEBUG(
"MDTSimHitCollection found with " << p_collection->size() <<
" hits");
233 return StatusCode::SUCCESS;
◆ getRandomEngine()
CLHEP::HepRandomEngine * MdtDigitizationTool::getRandomEngine |
( |
const std::string & |
streamName, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
private |
◆ handleMDTSimHit()
bool MdtDigitizationTool::handleMDTSimHit |
( |
const EventContext & |
ctx, |
|
|
const TimedHitPtr< MDTSimHit > & |
phit, |
|
|
CLHEP::HepRandomEngine * |
twinRndmEngine, |
|
|
CLHEP::HepRandomEngine * |
toolRndmEngine |
|
) |
| |
|
private |
Definition at line 349 of file MuonDigitization/MDT_Digitization/src/MdtDigitizationTool.cxx.
355 double globalHitTime(
hitTime(phit));
361 const int id = hit.MDTid();
363 ATH_MSG_DEBUG(
"Hit bunch time " << globalHitTime - hit.globalTime() <<
" tot " << globalHitTime <<
" tof " << hit.globalTime()
383 ATH_MSG_ERROR(
"MuonGeoManager does not return valid element for given id!");
404 double qgamma = -9999.;
413 const double QE = genParticle->momentum().e();
414 const double QM2 = genParticle->momentum().m2();
416 qgamma = QE / std::sqrt(QM2);
429 if (digiOutput.wasEfficient()) {
430 double driftTime = digiOutput.driftTime();
431 double adc = digiOutput.adc();
436 double position_along_wire = hit.localPosition().z();
441 if (distRO < 0.)
sign = 1.;
449 ATH_MSG_VERBOSE(
"Position along wire: " << position_along_wire <<
" propagation delay: " << propagation_delay
463 ATH_MSG_VERBOSE(
" handleMDTSimHit() phit-" << &phit <<
" hit.localPosition().z() = " << hit.localPosition().z()
470 bool BOL4X13 =
false;
478 double twin_sign_driftTime = 0.;
480 constexpr
double HV_delay = 6.;
481 double twin_tubeLength{0.}, twin_geo_pos_along_wire{0.},
482 twin_sign_pos_along_wire{0.}, twin_sign{-1.};
486 twin_tube =
tube + 2;
487 else if (
tube % 4 == 0 ||
tube % 4 == 3)
488 twin_tube =
tube - 2;
492 twin_tubeLength = element->
tubeLength(twin_DigitId);
495 if (distRO < 0.) twin_sign = 1.;
496 twin_geo_pos_along_wire = hit.localPosition().z();
497 if (
m_useDeformations) { twin_geo_pos_along_wire = newSimhit.localPosition().z(); }
498 twin_sign_pos_along_wire = twin_sign * twin_geo_pos_along_wire;
499 double twin_propagation_delay = twin_sign * (1. /
m_signalSpeed) * twin_geo_pos_along_wire;
503 twin_sign_driftTime =
driftTime + twin_tubeLength /
m_signalSpeed - 2 * twin_propagation_delay + HV_delay;
506 double rand = CLHEP::RandGaussZiggurat::shoot(twinRndmEngine, twin_sign_driftTime,
m_resTwin);
507 twin_sign_driftTime =
rand;
510 << multilayer <<
" layer " <<
layer <<
" tube " <<
tube
511 <<
" signed position along wire = " << twin_sign_pos_along_wire
512 <<
" propagation delay = " << twin_propagation_delay <<
" drifttime = " <<
driftTime
513 <<
" twin_driftTime = " << twin_sign_driftTime
514 <<
" TWIN time-difference = " << (twin_sign_driftTime -
driftTime));
◆ initialize()
StatusCode MdtDigitizationTool::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ insideMaskWindow()
bool MdtDigitizationTool::insideMaskWindow |
( |
double |
time | ) |
const |
|
private |
◆ insideMatchingWindow()
bool MdtDigitizationTool::insideMatchingWindow |
( |
double |
time | ) |
const |
|
private |
◆ mergeEvent()
StatusCode MdtDigitizationTool::mergeEvent |
( |
const EventContext & |
ctx | ) |
|
|
finaloverride |
When being run from PileUpToolsAlgs, this method is called at the end of the subevts loop.
Not (necessarily) able to access SubEvents
Definition at line 243 of file MuonDigitization/MDT_Digitization/src/MdtDigitizationTool.cxx.
248 ATH_CHECK(digitContainer.record(std::make_unique<MdtDigitContainer>(
m_idHelperSvc->mdtIdHelper().module_hash_max())));
249 ATH_MSG_DEBUG(
"Recorded MdtDigitContainer called " << digitContainer.name() <<
" in store " << digitContainer.store());
253 ATH_CHECK(sdoContainer.record(std::make_unique<MuonSimDataCollection>()));
254 ATH_MSG_DEBUG(
"Recorded MuonSimDataCollection called " << sdoContainer.name() <<
" in store " << sdoContainer.store());
260 for (
size_t coll_hash = 0; coll_hash < collections.size(); ++coll_hash) {
261 if (collections[coll_hash]) {
262 ATH_CHECK( digitContainer->addCollection (collections[coll_hash].release(), coll_hash) );
269 while (MDTHitColl != MDTHitCollEnd) {
270 delete (*MDTHitColl);
◆ minimumTof()
◆ prepareEvent()
StatusCode MdtDigitizationTool::prepareEvent |
( |
const EventContext & |
ctx, |
|
|
const unsigned int |
nInputEvents |
|
) |
| |
|
finaloverride |
◆ processAllSubEvents() [1/2]
StatusCode MdtDigitizationTool::processAllSubEvents |
( |
const EventContext & |
ctx | ) |
|
|
finaloverridevirtual |
alternative interface which uses the PileUpMergeSvc to obtain all the required SubEvents.
Reimplemented from PileUpToolBase.
Definition at line 278 of file MuonDigitization/MDT_Digitization/src/MdtDigitizationTool.cxx.
283 ATH_CHECK(digitContainer.record(std::make_unique<MdtDigitContainer>(
m_idHelperSvc->mdtIdHelper().module_hash_max())));
284 ATH_MSG_DEBUG(
"Recorded MdtDigitContainer called " << digitContainer.name() <<
" in store " << digitContainer.store());
288 ATH_CHECK(sdoContainer.record(std::make_unique<MuonSimDataCollection>()));
289 ATH_MSG_DEBUG(
"Recorded MuonSimDataCollection called " << sdoContainer.name() <<
" in store " << sdoContainer.store());
294 if (StatusCode::FAILURE ==
status) {
303 for (
size_t coll_hash = 0; coll_hash < collections.size(); ++coll_hash) {
304 if (collections[coll_hash]) {
305 ATH_CHECK( digitContainer->addCollection (collections[coll_hash].release(), coll_hash) );
◆ processAllSubEvents() [2/2]
virtual StatusCode IPileUpTool::processAllSubEvents |
|
inherited |
dummy implementation to allow compilation while all Digitization packages are migrated to use this new interface.
◆ processBunchXing()
When being run from PileUpToolsAlgs, this method is called for each active bunch-crossing to process current SubEvents bunchXing is in ns.
Reimplemented from PileUpToolBase.
Definition at line 152 of file MuonDigitization/MDT_Digitization/src/MdtDigitizationTool.cxx.
153 ATH_MSG_DEBUG(
"MdtDigitizationTool::processBunchXing() " << bunchXing);
156 TimedHitCollList hitCollList;
159 hitCollList.empty()) {
161 return StatusCode::FAILURE;
170 for (; iColl != endColl; ++iColl) {
174 ATH_MSG_DEBUG(
"MDTSimHitCollection found with " << hitCollPtr->
size() <<
" hits");
175 ATH_MSG_VERBOSE(
"time index info. time: " << timeIndex.time() <<
" index: " << timeIndex.index() <<
" type: " << timeIndex.type());
177 m_thpcMDT->insert(timeIndex, hitCollPtr);
181 return StatusCode::SUCCESS;
◆ resetFilter()
virtual void PileUpToolBase::resetFilter |
( |
| ) |
|
|
inlineoverridevirtualinherited |
◆ toProcess()
virtual bool PileUpToolBase::toProcess |
( |
int |
bunchXing | ) |
const |
|
inlineoverridevirtualinherited |
◆ m_bunchCountOffset
Gaudi::Property<double> MdtDigitizationTool::m_bunchCountOffset {this, "BunchCountOffset", -200., "Bunch crossing offset"} |
|
private |
◆ m_calibDbKey
◆ m_checkMDTSimHits
Gaudi::Property<bool> MdtDigitizationTool::m_checkMDTSimHits {this, "CheckSimHits", true, "Control on the hit validity"} |
|
private |
◆ m_deadTime
Gaudi::Property<double> MdtDigitizationTool::m_deadTime {this, "DeadTime", 700., "MDT drift tube dead time"} |
|
private |
◆ m_digiTool
◆ m_DiscardEarlyHits
Gaudi::Property<bool> MdtDigitizationTool::m_DiscardEarlyHits {this, "DiscardEarlyHits", true, ""} |
|
private |
◆ m_DoQballCharge
Gaudi::Property<bool> MdtDigitizationTool::m_DoQballCharge {this, "DoQballCharge", false, "dEdx for Qballs with account of electric charge"} |
|
private |
◆ m_filterPassed
bool PileUpToolBase::m_filterPassed {true} |
|
protectedinherited |
◆ m_firstXing
Gaudi::Property<int> PileUpToolBase::m_firstXing |
|
protectedinherited |
Initial value:{this, "FirstXing", -999,
"First bunch-crossing in which det is live"}
Definition at line 54 of file PileUpToolBase.h.
◆ m_hits
◆ m_hitsContainerKey
◆ m_idHelperSvc
◆ m_includePileUpTruth
Gaudi::Property<bool> MdtDigitizationTool::m_includePileUpTruth {this, "IncludePileUpTruth", true, "Include pile-up truth info"} |
|
private |
◆ m_inputObjectName
std::string MdtDigitizationTool::m_inputObjectName {""} |
|
protected |
◆ m_lastXing
Gaudi::Property<int> PileUpToolBase::m_lastXing |
|
protectedinherited |
Initial value:{this, "LastXing", 999,
"Last bunch-crossing in which det is live"}
Definition at line 56 of file PileUpToolBase.h.
◆ m_maskWindow
Gaudi::Property<double> MdtDigitizationTool::m_maskWindow {this, "MaskWindow", 250., "Masked window"} |
|
private |
◆ m_matchingWindow
Gaudi::Property<double> MdtDigitizationTool::m_matchingWindow {this, "MatchingWindow", 1000., "Matching window"} |
|
private |
◆ m_MDTHitCollList
◆ m_mergeSvc
◆ m_MuonGeoMgr
◆ m_muonHelper
◆ m_ns2TDCAMT
Gaudi::Property<double> MdtDigitizationTool::m_ns2TDCAMT {this, "ns2TDCAMT", 0.78125, "Conversion factor TDC/ns for AMT chips"} |
|
private |
◆ m_ns2TDCHPTDC
Gaudi::Property<double> MdtDigitizationTool::m_ns2TDCHPTDC {this, "ns2TDCHPTDC", 0.1953125, "Conversion factor TDC/ns for HPTDC chips"} |
|
private |
◆ m_offsetTDC
Gaudi::Property<double> MdtDigitizationTool::m_offsetTDC {this, "OffsetTDC", 800., "TDC offset used if no calibration data is found"} |
|
private |
◆ m_onlyUseContainerName
BooleanProperty MdtDigitizationTool::m_onlyUseContainerName |
|
protected |
◆ m_outputObjectKey
◆ m_outputSDOKey
◆ m_readKey
◆ m_resTDC
Gaudi::Property<double> MdtDigitizationTool::m_resTDC {this, "ResolutionTDC", 0.5, "TDC resolution"} |
|
private |
◆ m_resTwin
Gaudi::Property<double> MdtDigitizationTool::m_resTwin {this, "ResolutionTwinTube", 1.05, "Twin Tube resolution"} |
|
private |
◆ m_rndmSvc
◆ m_signalSpeed
Gaudi::Property<double> MdtDigitizationTool::m_signalSpeed {this, "SignalSpeed", 0.85*Gaudi::Units::c_light} |
|
private |
◆ m_t0ShiftTuning
Gaudi::Property<double> MdtDigitizationTool::m_t0ShiftTuning {this,"TunedT0Shift",-17.,"Fine tuned t0 shift value in ns"} |
|
private |
◆ m_thpcMDT
◆ m_useAllBOLTwin
Gaudi::Property<bool> MdtDigitizationTool::m_useAllBOLTwin {this, "UseAllBOLTwin", false, ""} |
|
private |
◆ m_useAttenuation
Gaudi::Property<bool> MdtDigitizationTool::m_useAttenuation {this, "UseAttenuation", false, ""} |
|
private |
◆ m_useDeformations
Gaudi::Property<bool> MdtDigitizationTool::m_useDeformations {this, "UseDeformations", false, ""} |
|
private |
◆ m_useOffSet1
Gaudi::Property<bool> MdtDigitizationTool::m_useOffSet1 {this, "UseOffSet1", true, ""} |
|
private |
◆ m_useOffSet2
Gaudi::Property<bool> MdtDigitizationTool::m_useOffSet2 {this, "UseOffSet2", true, ""} |
|
private |
◆ m_useProp
Gaudi::Property<bool> MdtDigitizationTool::m_useProp {this, "UseProp", true, ""} |
|
private |
◆ m_useTimeWindow
Gaudi::Property<bool> MdtDigitizationTool::m_useTimeWindow {this, "UseTimeWindow", true, ""} |
|
private |
◆ m_useTof
Gaudi::Property<bool> MdtDigitizationTool::m_useTof {this, "UseTof", true, "Option for the tof calculation"} |
|
private |
◆ m_useTwin
Gaudi::Property<bool> MdtDigitizationTool::m_useTwin {this, "UseTwin", false, ""} |
|
private |
◆ m_vetoPileUpTruthLinks
Gaudi::Property<int> PileUpToolBase::m_vetoPileUpTruthLinks |
|
protectedinherited |
Initial value:{this, "VetoPileUpTruthLinks", true,
"Ignore links to suppressed pile-up truth"}
Definition at line 58 of file PileUpToolBase.h.
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
int GetMultiLayer(const int &hid) const
float t0
< relative t0 in chamber (ns)
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
char data[hepevt_bytes_allocation_ATLAS]
constexpr uint8_t stationPhi
station Phi 1 to 8
std::pair< HepMcParticleLink, MuonMCData > Deposit
double tubeLength(const int tubeLayer, const int tube) const
const Amg::Vector3D & localPosition() const
double innerTubeRadius() const
Returns the inner tube radius excluding the aluminium walls.
Eigen::Matrix< double, 2, 1 > Vector2D
size_type end_index() const
std::vector< ALFA_RawData_p1 > t0
AtlasHitsVector< MDTSimHit > MDTSimHitCollection
Amg::Transform3D nodeform_localToGlobalTransf(const Identifier &id) const
int GetZSector(const int &hid) const
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
static const MdtHitIdHelper * GetHelper(unsigned int nTubes=78)
bool ignoreTruthLink(const T &p, bool vetoPileUp)
Helper function for SDO creation in PileUpTools.
bool empty() const
Test if the key is blank.
class which holds the full set of calibration constants for a given tube
bool isGenericMultichargedParticle(const T &p)
std::list< value_t > type
type of the collection of timed data object
Amg::Transform3D globalToLocalTransf(const int tubeLayer, const int tube) const
virtual bool globalToLocal(const Amg::Vector3D &glob, const Amg::Vector3D &mom, Amg::Vector2D &loc) const override final
Specified for StraightLineSurface: GlobalToLocal method without dynamic memory allocation This method...
HepMC::ConstGenParticlePtr cptr() const
Dereference.
double fractionalCharge(const T &p)
int GetPhiSector(const int &hid) const
a link optimized in size for a GenParticle in a McEventCollection
std::string GetStationName(const int &hid) const
size_type begin_index() const
const MdtReadoutElement * getMdtReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
::StatusCode StatusCode
StatusCode definition for legacy code.
Eigen::Affine3d Transform3D
int GetLayer(const int &hid) const
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
const Amg::Transform3D & localToGlobalTransf(const Identifier &id) const
void show() const
Print out in hex form.
double globalTime() const
const GenParticle * ConstGenParticlePtr
double driftRadius() const
A wrapper class for event-slot-local random engines.
double charge(const T &p)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
static HepMcParticleLink getRedirectedLink(const HepMcParticleLink &particleLink, uint32_t eventIndex, const EventContext &ctx)
Return a HepMcParticleLink pointing at the same particle, but in a different GenEvent.
StatusCode initialize(bool used=true)
HitVector::iterator HitIt
Eigen::Matrix< double, 3, 1 > Vector3D
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
Amg::Vector3D tubeFrame_localROPos(const int tubelayer, const int tube) const
Amg::Vector3D tubePos(const Identifier &id) const
Returns the global position of the given tube.
def time(flags, cells_name, *args, **kw)
unsigned short eventId() const
the index of the component event in PileUpEventInfo.
#define ATH_MSG_WARNING(x)
virtual const Trk::Surface & surface() const override final
Return surface associated with this detector element.
int GetTube(const int &hid) const
void insert(const mdt_hit_info &hit)
float hitTime(const AFP_SIDSimHit &hit)
constexpr uint8_t stationEta
1 to 3
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
a struct encapsulating the identifier of a pile-up event
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...