ATLAS Offline Software
|
#include <FPGATrackSimMapMakerAlg.h>
Classes | |
struct | Module |
Public Types | |
typedef std::tuple< SiliconTech, DetectorZone, int, int, int > | FPGATrackSimModuleId |
Public Member Functions | |
FPGATrackSimMapMakerAlg (const std::string &name, ISvcLocator *pSvcLocator) | |
virtual | ~FPGATrackSimMapMakerAlg ()=default |
StatusCode | initialize () override |
StatusCode | execute () override |
StatusCode | finalize () override |
virtual StatusCode | sysInitialize () override |
Override sysInitialize. More... | |
virtual const DataObjIDColl & | extraOutputDeps () const override |
Return the list of extra output dependencies. More... | |
ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | evtStore () const |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More... | |
virtual StatusCode | sysStart () override |
Handle START transition. More... | |
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
Return this algorithm's input handles. More... | |
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
Return this algorithm's output handles. More... | |
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
Declare a new Gaudi property. More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
Declare a new Gaudi property. More... | |
void | updateVHKA (Gaudi::Details::PropertyBase &) |
MsgStream & | msg () const |
MsgStream & | msg (const MSG::Level lvl) const |
bool | msgLvl (const MSG::Level lvl) const |
Protected Member Functions | |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
Add StoreName to extra input/output deps as needed. More... | |
Private Types | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
StatusCode | readInputs (bool &done) |
StatusCode | writePmapAndRmap (std::vector< FPGATrackSimHit > const &pbHits, std::vector< FPGATrackSimHit > const &peHits, std::vector< FPGATrackSimHit > const &sbHits, std::vector< FPGATrackSimHit > const &seHits, int region) |
StatusCode | writeSubrmap (std::vector< FPGATrackSimHit > const &allHits) |
StatusCode | writeEtaPatterns () |
StatusCode | writeRadiiFile (std::vector< FPGATrackSimHit > const &allHits) |
StatusCode | writeMedianZFile (std::vector< FPGATrackSimHit > const &allHits) |
void | drawSlices (std::vector< FPGATrackSimHit > const &allHits) |
bool | isOnKeyLayer (int keynum, SiliconTech det, DetectorZone bec, int lyr) |
int | findPlane (const std::vector< std::vector< std::string >> &planes, const std::string &test) |
std::string | makeRmapLines (std::vector< FPGATrackSimHit > const &hits, SiliconTech det, DetectorZone bec, int max) |
std::string | makeSubrmapLines (std::vector< Module * > const &allmods, SiliconTech det, DetectorZone bec, int max) |
void | parseKeyString () |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Private Attributes | |
ToolHandle< IFPGATrackSimEventInputHeaderTool > | m_hitInputTool { this, "InputTool", "FPGATrackSimSGToRawHitsTool/FPGATrackSimInputTool", "HitInput Tool" } |
FPGATrackSimEventInputHeader | m_eventHeader |
Gaudi::Property< int > | m_maxEvents {this, "maxEvents", 10000, "Max Events"} |
Gaudi::Property< int > | m_region {this, "region", 0, "Region"} |
Gaudi::Property< float > | m_trim {this, "trim", 0.1, "trim modules with less than given percent of tracks"} |
Gaudi::Property< std::string > | m_outFileName {this, "OutFileName", "", "naming convention for maps"} |
Gaudi::Property< std::string > | m_keystring {this, "KeyString", "strip,barrel,2", "key layer to use for subrmap"} |
Gaudi::Property< std::string > | m_keystring2 {this, "KeyString2", "", "second key layer for 2D slicing"} |
Gaudi::Property< int > | m_nSlices {this, "nSlices", -1, "default is full granularity/maximum number of slices possible"} |
Gaudi::Property< bool > | m_doSpacePoints {this, "doSpacePoints", false, "Use 9L instead of 8L configuration for first stage (for example)"} |
Gaudi::Property< float > | m_globalTrim {this, "globalTrim", 0.1, "Trimming applied globally to the key layer before determining slice boundaries"} |
Gaudi::Property< std::string > | m_description {this, "description", "", "tag description"} |
Gaudi::Property< std::string > | m_geoTag {this, "GeometryVersion", "ATLAS-P2-ITK-22-02-00", "Geometry tag that this set of maps is for. TODO can we store/read from wrappers?"} |
Gaudi::Property< bool > | m_remapModules {this, "remapModules", false, "Allow maps to be drawn that slice modules more finely, by remapping module indices"} |
Gaudi::Property< bool > | m_drawSlices {this, "drawSlices", false, "Draw the huge 2D slice histograms"} |
Gaudi::Property< bool > | m_insideout {this, "doInsideOut", false, "5 layers pixel-only configuration"} |
FPGATrackSimModuleRelabel * | m_moduleRelabel = nullptr |
std::map< FPGATrackSimModuleId, Module > | m_modules |
std::map< int, std::vector< Module * > > | m_track2modules |
std::map< int, std::vector< Module * > > | m_slice2modules |
std::map< int, int > | m_track2slice |
std::vector< FPGATrackSimHit > | m_pbHits |
std::vector< FPGATrackSimHit > | m_peHits |
std::vector< FPGATrackSimHit > | m_sbHits |
std::vector< FPGATrackSimHit > | m_seHits |
std::vector< FPGATrackSimHit > | m_allHits |
int | m_pbmax = -1 |
int | m_sbmax = -1 |
std::vector< int > | m_pemax = {-1,-1} |
std::vector< int > | m_semax = {-1,-1} |
const std::vector< std::vector< std::vector< std::string > > > * | m_planes {} |
const std::vector< std::vector< std::vector< std::string > > > | m_planes_default |
const std::vector< std::vector< std::vector< std::string > > > | m_planes_sp |
const std::vector< std::vector< std::vector< std::string > > > | m_planes2 |
const std::vector< std::vector< std::vector< std::string > > > | m_planes_insideout |
std::map< std::string, std::set< int > > | m_keylayer |
std::map< std::string, std::set< int > > | m_keylayer2 |
bool | m_key2 = false |
std::map< int, int > | m_key_etamods |
std::set< int > | m_key_etamods2 |
std::set< int > | m_usedTracks |
std::vector< std::vector< std::vector< float > > > | m_radii |
std::vector< std::vector< std::vector< float > > > | m_z |
std::ofstream | m_pmap |
std::ofstream | m_rmap |
std::ofstream | m_subrmap |
std::ofstream | m_etapat |
std::ofstream | m_radfile |
std::ofstream | m_zedfile |
std::unique_ptr< TFile > | m_monitorFile {} |
const std::vector< uint32_t > | m_diskIndex = {0,17,47,58,66} |
std::map< std::string, SiliconTech > | m_det2tech = { {"pixel",SiliconTech::pixel}, {"strip",SiliconTech::strip} } |
std::map< std::string, DetectorZone > | m_bec2zone = { {"barrel",DetectorZone::barrel}, {"posEndcap",DetectorZone::posEndcap}, {"negEndcap",DetectorZone::negEndcap} } |
DataObjIDColl | m_extendedExtraObjects |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
StoreGateSvc_t | m_detStore |
Pointer to StoreGate (detector store by default) More... | |
std::vector< SG::VarHandleKeyArray * > | m_vhka |
bool | m_varHandleArraysDeclared |
Definition at line 31 of file FPGATrackSimMapMakerAlg.h.
typedef std::tuple<SiliconTech, DetectorZone, int, int, int> FPGATrackSimMapMakerAlg::FPGATrackSimModuleId |
Definition at line 34 of file FPGATrackSimMapMakerAlg.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
FPGATrackSimMapMakerAlg::FPGATrackSimMapMakerAlg | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator | ||
) |
Definition at line 17 of file FPGATrackSimMapMakerAlg.cxx.
|
virtualdefault |
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
|
private |
Definition at line 699 of file FPGATrackSimMapMakerAlg.cxx.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
|
override |
Definition at line 71 of file FPGATrackSimMapMakerAlg.cxx.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
|
override |
Definition at line 681 of file FPGATrackSimMapMakerAlg.cxx.
|
private |
Definition at line 743 of file FPGATrackSimMapMakerAlg.cxx.
|
override |
Definition at line 23 of file FPGATrackSimMapMakerAlg.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
private |
Definition at line 728 of file FPGATrackSimMapMakerAlg.cxx.
|
private |
Definition at line 755 of file FPGATrackSimMapMakerAlg.cxx.
|
private |
Definition at line 874 of file FPGATrackSimMapMakerAlg.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
private |
Definition at line 780 of file FPGATrackSimMapMakerAlg.cxx.
|
private |
Definition at line 98 of file FPGATrackSimMapMakerAlg.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.
Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, PyAthena::Alg, and AthHistogramAlgorithm.
Definition at line 66 of file AthAlgorithm.cxx.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Definition at line 476 of file FPGATrackSimMapMakerAlg.cxx.
|
private |
Definition at line 601 of file FPGATrackSimMapMakerAlg.cxx.
|
private |
Definition at line 180 of file FPGATrackSimMapMakerAlg.cxx.
|
private |
Definition at line 532 of file FPGATrackSimMapMakerAlg.cxx.
|
private |
Definition at line 255 of file FPGATrackSimMapMakerAlg.cxx.
|
private |
Definition at line 101 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 278 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 86 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 277 of file FPGATrackSimMapMakerAlg.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 266 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 84 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 89 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 261 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 47 of file FPGATrackSimMapMakerAlg.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 79 of file AthAlgorithm.h.
|
private |
Definition at line 87 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 85 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 45 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 90 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 254 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 255 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 256 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 251 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 252 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 81 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 82 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 77 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 93 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 96 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 262 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 83 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 80 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 101 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 103 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 101 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 105 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 115 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 186 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 116 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 214 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 148 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 261 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 261 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 258 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 78 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 88 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 261 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 101 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 104 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 101 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 106 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 97 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 261 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 97 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 98 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 79 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 257 of file FPGATrackSimMapMakerAlg.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
private |
Definition at line 259 of file FPGATrackSimMapMakerAlg.h.
|
private |
Definition at line 261 of file FPGATrackSimMapMakerAlg.h.