![]() |
ATLAS Offline Software
|
Validation Algorithm to retrieve a SCT_ClusterContainer, loop over the entries and fill the validation ntuple with RIO specific entries. More...
#include <SCT_ClusterValidationNtupleWriter.h>
Public Member Functions | |
| SCT_ClusterValidationNtupleWriter (const std::string &name, ISvcLocator *pSvcLocator) | |
| Standard Athena-Algorithm Constructor. | |
| ~SCT_ClusterValidationNtupleWriter ()=default | |
| Default Destructor. | |
| virtual StatusCode | initialize () override |
| standard Athena-Algorithm method | |
| virtual StatusCode | execute () override |
| standard Athena-Algorithm method | |
| virtual StatusCode | finalize () override |
| standard Athena-Algorithm method | |
| virtual StatusCode | sysInitialize () override |
| Override sysInitialize. | |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. | |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| 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. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| const SCT_ID * | m_sctid |
| SCT ID helper. | |
| const InDet::SCT_ClusterContainer * | m_riocontainer |
| container of RIOs | |
| SG::ReadHandleKey< xAOD::EventInfo > | m_eventInfoKey {this, "EventInfoKey", "EventInfo", "key for xAOD::EventInfo"} |
| SG::ReadHandleKey< SCT_ClusterContainer > | m_jo_riocontainername {this, "SCT_ClusterContainer", "SCT_Clusters", "jobOption: name of container with RIOs"} |
| SG::ReadHandleKey< SCT_RDO_Container > | m_dataObjectName {this, "SCT_RDOContainer", "SCT_RDOs", "Data object name: for the SCT this is SCT_RDOs"} |
| SG::ReadHandleKey< SpacePointContainer > | m_spacePointContainerName {this, "SCT_SpacePointContainer", "SCT_SpacePoints", "SpacePoint container name: for the SCT this is SCT_SpacePoints"} |
| SG::ReadHandleKey< TrackCollection > | m_inputTrackCollection {this, "SCT_InputTrackCollection", "CombinedInDetTracks", "TrackCollection name, needed for hits-on-tracks, default is CombinedInDetTracks"} |
| SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > | m_SCTDetEleCollKey {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"} |
| ToolHandle< ISCT_ByteStreamErrorsTool > | m_byteStreamErrTool {this, "ByteStreamErrTool", "SCT_ByteStreamErrorsTool", "Tool to retrieve SCT ByteStream Errors"} |
| ToolHandle< ISCT_CablingTool > | m_cabling {this, "SCT_CablingTool", "SCT_CablingTool", "Tool to retrieve SCT Cabling"} |
| StringProperty | m_ntupleFileName {this, "NtupleFileName", "/NTUPLES/FILE1"} |
| jobOption: Ntuple file name | |
| StringProperty | m_ntupleDirName {this, "NtupleDirectoryName", "FitterValidation"} |
| jobOption: Ntuple directory name | |
| StringProperty | m_ntupleTreeName {this, "NtupleTreeName", "RIOs"} |
| jobOption: Ntuple tree name | |
| BooleanProperty | m_fillCluster {this, "FillCluster", false} |
| flag to book, access and fill Cluster or not | |
| BooleanProperty | m_fillRDO {this, "FillRDO", true} |
| flag to book, access and fill RDO or not | |
| BooleanProperty | m_fillSpacePoint {this, "FillSpacePoint", false} |
| flag to book, access and fill SpacePoints or not | |
| BooleanProperty | m_fillBSErrs {this, "FillBSErrs", true} |
| flag to book, access and fill ByteStream errors or not | |
| BooleanProperty | m_doHitsOnTracks {this, "DoHitsOnTracks", false} |
| flag to book, access and fill RDO isOnTrack or not | |
| TTree * | m_nt |
| pointer to the ntuple tree. | |
| int | m_runNumber |
| run number | |
| int | m_eventNumber |
| event number for current PRD vector | |
| int | m_lumiBlock |
| event lumi block information | |
| int | m_timeStamp |
| event time stamp | |
| int | m_bunchCrossing |
| event bunch crossing ID | |
| int | m_nRIOs |
| number of RIOs, i.e. | |
| std::vector< float > * | m_rioLoc1 |
| local x coordinate of strip UNIT:mm | |
| std::vector< float > * | m_rioSurfaceX |
| global x coordinate of SCT wafer center UNIT:mm | |
| std::vector< float > * | m_rioSurfaceY |
| global x coordinate of SCT wafer center UNIT:mm | |
| std::vector< float > * | m_rioSurfaceZ |
| global x coordinate of SCT wafer center UNIT:mm | |
| std::vector< int > * | m_SctBarrelEndcap |
| from IdHelper: pos/neg barrel (+/-1) and pos/neg endcap (+/-2) UNIT:1:bar, 2:ec | |
| std::vector< int > * | m_SctLayerDisk |
| from IdHelper: layer/disk index | |
| std::vector< int > * | m_SctEtaModule |
| from IdHelper: module index in eta | |
| std::vector< int > * | m_SctPhiModule |
| from IdHelper: module index in phi | |
| std::vector< int > * | m_SctSide |
| from IdHelper: side index (0/1) | |
| std::vector< float > * | m_SctDeltaPhi |
| please provide description! | |
| std::vector< float > * | m_SctHitErr |
| please provide description! | |
| int | m_nSP |
| std::vector< int > * | m_sp_bec |
| Barrel or endcap index (barrel: 0, endcap: +/-2) for SpacePoint. | |
| std::vector< int > * | m_sp_layer |
| index of the SCT-layer in which the SCT wafer is positioned for SpacePoint | |
| std::vector< int > * | m_sp_eta |
| eta index of the SCT-layer in which the SCT wafer is positioned for SpacePoint | |
| std::vector< int > * | m_sp_phi |
| phi index of the SCT-layer in which the SCT wafer is positioned for SpacePoint | |
| std::vector< float > * | m_sp_x |
| x position of SpacePoint in ATLAS coordinate system (mm) | |
| std::vector< float > * | m_sp_y |
| y position of SpacePoint in ATLAS coordinate system (mm) | |
| std::vector< float > * | m_sp_z |
| z position of SpacePoint in ATLAS coordinate system (mm) | |
| int | m_nRDOs |
| Number of RDOs. | |
| std::vector< int > * | m_sct_rdoGroupSize |
| RDO group size. | |
| std::vector< int > * | m_sct_rdoIsOnTrack |
| RDO on track. | |
| std::vector< int > * | m_sct_layer |
| index of the SCT-layer in which the SCT wafer is positioned | |
| std::vector< int > * | m_sct_eta |
| eta of the SCT wafer | |
| std::vector< int > * | m_sct_phi |
| phi of the SCT wafer | |
| std::vector< int > * | m_sct_side |
| side of the SCT wafer (0 or 1) within the SCT module | |
| std::vector< int > * | m_sct_barrelec |
| barrel/endcap index (barrel: 0, endcap: +/-2) | |
| std::vector< int > * | m_sct_firstStrip |
| index (could be from 0 to 767) of the fired strip within the SCT wafer | |
| std::vector< int > * | m_sct_numHitsInWafer |
| number of hits in the SCT wafer | |
| std::vector< int > * | m_sct_waferHash |
| index (could be from 0 to 8175) of the fired SCT wafer | |
| std::vector< int > * | m_sct_tbin |
| timebin of the RDO | |
| std::vector< int > * | m_sct_rodid |
| ROD ID of the RDO. | |
| std::vector< int > * | m_sct_channel |
| channel within ROD of the RDO | |
| int | m_totalNumErrors |
| total number of BS errors. | |
| std::vector< int > * | m_scterr_bec |
| barrel/endcap index (barrel: 0, endcap: +/-2) | |
| std::vector< int > * | m_scterr_layer |
| layer (barrel) or disk (endcap) of wafer with the error | |
| std::vector< int > * | m_scterr_eta |
| eta of the SCT wafer | |
| std::vector< int > * | m_scterr_phi |
| phi of the SCT wafer | |
| std::vector< int > * | m_scterr_side |
| side of the SCT wafer (0 or 1) within the module | |
| std::vector< int > * | m_scterr_rodid |
| online ID of ROD containing link | |
| std::vector< int > * | m_scterr_channel |
| online channel no. | |
| std::vector< int > * | m_scterr_type |
| type of BS error (as defined in SCT_ByteStreamErrs enum in ISCT_ByteStreamErrorsSvc.h) | |
| DataObjIDColl | m_extendedExtraObjects |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Validation Algorithm to retrieve a SCT_ClusterContainer, loop over the entries and fill the validation ntuple with RIO specific entries.
Definition at line 44 of file SCT_ClusterValidationNtupleWriter.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| InDet::SCT_ClusterValidationNtupleWriter::SCT_ClusterValidationNtupleWriter | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Standard Athena-Algorithm Constructor.
Definition at line 32 of file SCT_ClusterValidationNtupleWriter.cxx.
|
default |
Default Destructor.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 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.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
overridevirtual |
standard Athena-Algorithm method
end of m_fillRDO
get the position in real space
get online rodid and channel no. from ID hash using cabling
Fill ByteStream errors block if requested.
types of errors are defined in the enum in ISCT_ByteStreamErrorsSvc. At the moment there are 15 different types of BS error.
get online rodid and channel no. from ID hash using cabling
Definition at line 243 of file SCT_ClusterValidationNtupleWriter.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.
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 598 of file SCT_ClusterValidationNtupleWriter.cxx.
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 89 of file SCT_ClusterValidationNtupleWriter.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.
|
inlineinherited |
Definition at line 24 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.
|
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, AthHistogramAlgorithm, and PyAthena::Alg.
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 |
event bunch crossing ID
Definition at line 90 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Definition at line 71 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Definition at line 72 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Definition at line 64 of file SCT_ClusterValidationNtupleWriter.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
flag to book, access and fill RDO isOnTrack or not
Definition at line 80 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Definition at line 62 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
event number for current PRD vector
Definition at line 87 of file SCT_ClusterValidationNtupleWriter.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 |
flag to book, access and fill ByteStream errors or not
Definition at line 79 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
flag to book, access and fill Cluster or not
Definition at line 76 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
flag to book, access and fill RDO or not
Definition at line 77 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
flag to book, access and fill SpacePoints or not
Definition at line 78 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Definition at line 66 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Definition at line 63 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
event lumi block information
Definition at line 88 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Number of RDOs.
Definition at line 117 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
number of RIOs, i.e.
SCT clusters, in the event. This variable set the size of the vectors with cluster information.
Definition at line 93 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Definition at line 107 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
pointer to the ntuple tree.
Definition at line 83 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
jobOption: Ntuple directory name
Definition at line 74 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
jobOption: Ntuple file name
Definition at line 73 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
jobOption: Ntuple tree name
Definition at line 75 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
container of RIOs
Definition at line 61 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
local x coordinate of strip UNIT:mm
Definition at line 94 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
global x coordinate of SCT wafer center UNIT:mm
Definition at line 95 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
global x coordinate of SCT wafer center UNIT:mm
Definition at line 96 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
global x coordinate of SCT wafer center UNIT:mm
Definition at line 97 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
run number
Definition at line 86 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
barrel/endcap index (barrel: 0, endcap: +/-2)
Definition at line 124 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
channel within ROD of the RDO
Definition at line 130 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
eta of the SCT wafer
Definition at line 121 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
index (could be from 0 to 767) of the fired strip within the SCT wafer
Definition at line 125 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
index of the SCT-layer in which the SCT wafer is positioned
Definition at line 120 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
number of hits in the SCT wafer
Definition at line 126 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
phi of the SCT wafer
Definition at line 122 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
RDO group size.
Definition at line 118 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
RDO on track.
Definition at line 119 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
ROD ID of the RDO.
Definition at line 129 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
side of the SCT wafer (0 or 1) within the SCT module
Definition at line 123 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
timebin of the RDO
Definition at line 128 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
index (could be from 0 to 8175) of the fired SCT wafer
Definition at line 127 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
from IdHelper: pos/neg barrel (+/-1) and pos/neg endcap (+/-2) UNIT:1:bar, 2:ec
Definition at line 98 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
please provide description!
Definition at line 103 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Definition at line 69 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
barrel/endcap index (barrel: 0, endcap: +/-2)
Definition at line 139 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
|
private |
eta of the SCT wafer
Definition at line 141 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
layer (barrel) or disk (endcap) of wafer with the error
Definition at line 140 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
phi of the SCT wafer
Definition at line 142 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
online ID of ROD containing link
Definition at line 144 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
side of the SCT wafer (0 or 1) within the module
Definition at line 143 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
type of BS error (as defined in SCT_ByteStreamErrs enum in ISCT_ByteStreamErrorsSvc.h)
Definition at line 146 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
from IdHelper: module index in eta
Definition at line 100 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
please provide description!
Definition at line 104 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Definition at line 60 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
from IdHelper: layer/disk index
Definition at line 99 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
from IdHelper: module index in phi
Definition at line 101 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
from IdHelper: side index (0/1)
Definition at line 102 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Barrel or endcap index (barrel: 0, endcap: +/-2) for SpacePoint.
Definition at line 108 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
eta index of the SCT-layer in which the SCT wafer is positioned for SpacePoint
Definition at line 110 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
index of the SCT-layer in which the SCT wafer is positioned for SpacePoint
Definition at line 109 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
phi index of the SCT-layer in which the SCT wafer is positioned for SpacePoint
Definition at line 111 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
x position of SpacePoint in ATLAS coordinate system (mm)
Definition at line 112 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
y position of SpacePoint in ATLAS coordinate system (mm)
Definition at line 113 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
z position of SpacePoint in ATLAS coordinate system (mm)
Definition at line 114 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
Definition at line 65 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
event time stamp
Definition at line 89 of file SCT_ClusterValidationNtupleWriter.h.
|
private |
total number of BS errors.
Definition at line 138 of file SCT_ClusterValidationNtupleWriter.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.