Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <SCTHitEffMonAlg.h>
|
enum | Environment_t {
Environment_t::user = 0,
Environment_t::online,
Environment_t::tier0,
Environment_t::tier0Raw,
Environment_t::tier0ESD,
Environment_t::AOD,
Environment_t::altprod
} |
| Specifies the processing environment. More...
|
|
enum | DataType_t {
DataType_t::userDefined = 0,
DataType_t::monteCarlo,
DataType_t::collisions,
DataType_t::cosmics,
DataType_t::heavyIonCollisions
} |
| Specifies what type of input data is being monitored. More...
|
|
|
| SCTHitEffMonAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~SCTHitEffMonAlg ()=default |
|
virtual StatusCode | initialize () override final |
| initialize More...
|
|
virtual StatusCode | fillHistograms (const EventContext &ctx) const override final |
| adds event to the monitoring histograms More...
|
|
virtual StatusCode | execute (const EventContext &ctx) const override |
| Applies filters and trigger requirements. More...
|
|
void | fill (const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const |
| Fills a vector of variables to a group by reference. More...
|
|
void | fill (const ToolHandle< GenericMonitoringTool > &groupHandle, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const |
| Fills a vector of variables to a group by reference. More...
|
|
template<typename... T> |
void | fill (const ToolHandle< GenericMonitoringTool > &groupHandle, T &&... variables) const |
| Fills a variadic list of variables to a group by reference. More...
|
|
void | fill (const std::string &groupName, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const |
| Fills a vector of variables to a group by name. More...
|
|
void | fill (const std::string &groupName, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const |
| Fills a vector of variables to a group by name. More...
|
|
template<typename... T> |
void | fill (const std::string &groupName, T &&... variables) const |
| Fills a variadic list of variables to a group by name. More...
|
|
Environment_t | environment () const |
| Accessor functions for the environment. More...
|
|
Environment_t | envStringToEnum (const std::string &str) const |
| Convert the environment string from the python configuration to an enum object. More...
|
|
DataType_t | dataType () const |
| Accessor functions for the data type. More...
|
|
DataType_t | dataTypeStringToEnum (const std::string &str) const |
| Convert the data type string from the python configuration to an enum object. More...
|
|
const ToolHandle< GenericMonitoringTool > & | getGroup (const std::string &name) const |
| Get a specific monitoring tool from the tool handle array. More...
|
|
const ToolHandle< Trig::TrigDecisionTool > & | getTrigDecisionTool () const |
| Get the trigger decision tool member. More...
|
|
bool | trigChainsArePassed (const std::vector< std::string > &vTrigNames) const |
| Check whether triggers are passed. More...
|
|
SG::ReadHandle< xAOD::EventInfo > | GetEventInfo (const EventContext &) const |
| Return a ReadHandle for an EventInfo object (get run/event numbers, etc.) More...
|
|
virtual float | lbAverageInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the average mu, i.e. More...
|
|
virtual float | lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate instantaneous number of interactions, i.e. More...
|
|
virtual float | lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1). More...
|
|
virtual float | lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the instantaneous luminosity per bunch crossing. More...
|
|
virtual double | lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the duration of the luminosity block (in seconds) More...
|
|
virtual float | lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the average luminosity livefraction. More...
|
|
virtual float | livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the live fraction per bunch crossing ID. More...
|
|
virtual double | lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the average integrated luminosity multiplied by the live fraction. More...
|
|
virtual StatusCode | parseList (const std::string &line, std::vector< std::string > &result) const |
| Parse a string into a vector. More...
|
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
|
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 |
|
|
ToolHandleArray< GenericMonitoringTool > | m_tools {this,"GMTools",{}} |
| Array of Generic Monitoring Tools. More...
|
|
PublicToolHandle< Trig::TrigDecisionTool > | m_trigDecTool {this, "TrigDecisionTool",""} |
| Tool to tell whether a specific trigger is passed. More...
|
|
ToolHandleArray< IDQFilterTool > | m_DQFilterTools {this,"FilterTools",{}} |
| Array of Data Quality filter tools. More...
|
|
SG::ReadCondHandleKey< LuminosityCondData > | m_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"} |
|
SG::ReadCondHandleKey< LBDurationCondData > | m_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"} |
|
SG::ReadCondHandleKey< TrigLiveFractionCondData > | m_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"} |
|
AthMonitorAlgorithm::Environment_t | m_environment |
| Instance of the Environment_t enum. More...
|
|
AthMonitorAlgorithm::DataType_t | m_dataType |
| Instance of the DataType_t enum. More...
|
|
Gaudi::Property< std::string > | m_environmentStr {this,"Environment","user"} |
| Environment string pulled from the job option and converted to enum. More...
|
|
Gaudi::Property< std::string > | m_dataTypeStr {this,"DataType","userDefined"} |
| DataType string pulled from the job option and converted to enum. More...
|
|
Gaudi::Property< std::string > | m_triggerChainString {this,"TriggerChain",""} |
| Trigger chain string pulled from the job option and parsed into a vector. More...
|
|
std::vector< std::string > | m_vTrigChainNames |
| Vector of trigger chain names parsed from trigger chain string. More...
|
|
Gaudi::Property< std::string > | m_fileKey {this,"FileKey",""} |
| Internal Athena name for file. More...
|
|
Gaudi::Property< bool > | m_useLumi {this,"EnableLumi",false} |
| Allows use of various luminosity functions. More...
|
|
Gaudi::Property< float > | m_defaultLBDuration {this,"DefaultLBDuration",60.} |
| Default duration of one lumi block. More...
|
|
Gaudi::Property< int > | m_detailLevel {this,"DetailLevel",0} |
| Sets the level of detail used in the monitoring. More...
|
|
SG::ReadHandleKey< xAOD::EventInfo > | m_EventInfoKey {this,"EventInfoKey","EventInfo"} |
| Key for retrieving EventInfo from StoreGate. More...
|
|
|
StatusCode | failCut (bool value, const std::string &name) const |
|
StatusCode | findAnglesToWaferSurface (const Amg::Vector3D &mom, const Identifier id, const InDetDD::SiDetectorElementCollection *elements, double &theta, double &phi) const |
|
int | previousChip (double xl, int side, bool swap) const |
|
double | getResidual (const Identifier &surfaceID, const Trk::TrackParameters *trkParam, const InDet::SCT_ClusterContainer *p_sctclcontainer) const |
|
SCT_Monitoring::BecIndex | layerIndex2becIndex (const int index) const |
|
int | layerIndex2layer (const int index) const |
| Convert a layer/disk number (0-21) to a layer number (0-8 for endcaps, 0-3 for barrel) More...
|
|
int | becIdxLayer2Index (const int becIdx, const int layer) const |
|
int | getWaferIndex (const int barrel_bc, const int layer_disk, const int side) const |
|
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...
|
|
|
std::string | m_path |
|
SG::ReadHandleKey< InDet::SCT_ClusterContainer > | m_sctContainerName {this, "SCT_ClusterContainer", "SCT_Clusters"} |
|
SG::ReadHandleKey< TrackCollection > | m_TrackName {this, "TrackName", "CombinedInDetTracks"} |
|
SG::ReadHandleKey< ComTime > | m_comTimeName {this, "ComTimeKey", "TRT_Phase"} |
|
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > | m_SCTDetEleCollKey {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"} |
|
SG::ReadCondHandleKey< BunchCrossingCondData > | m_bunchCrossingKey {this, "BunchCrossingKey", "BunchCrossingData", "Key BunchCrossing CDO" } |
|
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > | m_fieldCondObjInputKey {this, "AtlasFieldCacheCondObj", "fieldCondObj", "Name of the Magnetic Field conditions object key"} |
|
ToolHandle< Trk::IResidualPullCalculator > | m_residualPullCalculator {this, "ResPullCalc", "Trk::ResidualPullCalculator/ResidualPullCalculator"} |
|
ToolHandle< Trk::IRIO_OnTrackCreator > | m_rotcreator {this, "ROTCreator", "InDet::SCT_ClusterOnTrackTool/SCT_ClusterOnTrackTool"} |
|
ToolHandle< Trk::ITrackHoleSearchTool > | m_holeSearchTool {this, "HoleSearch", "InDet::InDetTrackHoleSearchTool"} |
|
ToolHandle< ISCT_ConfigurationConditionsTool > | m_configConditions |
|
const PixelID * | m_pixelId {nullptr} |
|
const SCT_ID * | m_sctId {nullptr} |
|
const TRT_ID * | m_trtId {nullptr} |
|
IntegerProperty | m_minSCTHits {this, "MinSCTHits", -1} |
|
IntegerProperty | m_minTRTHits {this, "MinTRTHits", -1} |
|
IntegerProperty | m_minOtherHits {this, "MinOtherHits", 6} |
|
IntegerProperty | m_minPixelHits {this, "MinPixelHits", -1} |
|
FloatProperty | m_maxPhiAngle {this, "MaxPhiAngle", 40., "Degrees, 100 implies no cut."} |
|
FloatProperty | m_maxChi2 {this, "MaxChi2", 3.} |
|
FloatProperty | m_maxD0 {this, "Maxd0", 10., "mm of D0"} |
|
FloatProperty | m_minPt {this, "MinPt", 1000., "minimu pt in MeV/c"} |
|
FloatProperty | m_effdistcut {this, "effDistanceCut", 0.2, "mm"} |
|
FloatProperty | m_maxZ0sinTheta {this, "MaxZ0sinTheta", 0.} |
|
UnsignedIntegerProperty | m_maxTracks {this, "MaxTracks", 500} |
|
UnsignedIntegerProperty | m_minSiHits {this, "MinimumNumberOfSiHits", 8, "Threshold for number of Si hits. Count Si hits excluding hits in the wafer under investigation to reduce track selection bias"} |
|
UnsignedIntegerProperty | m_maxSiHoles {this, "MaximumNumberOfSiHoles", 1, "Threshold for number of Si holes. Count Si holes excluding holes in the wafer under investigation to reduce track selection bias"} |
|
BooleanProperty | m_insideOutOnly {this, "InsideOutOnly", false} |
|
BooleanProperty | m_isCosmic {this, "IsCosmic", false} |
|
BooleanProperty | m_useTRTPhase {this, "UseTRTPhase", false} |
|
BooleanProperty | m_useSCTorTRT {this, "UseSCTorTRT", false} |
|
BooleanProperty | m_requireEnclosingHits {this, "RequireEnclosingHits", false} |
|
BooleanProperty | m_requireOtherFace {this, "RequireOtherFace", false} |
|
BooleanProperty | m_requireGuardRing {this, "RequireGuardRing", false, "should be returned to true"} |
|
BooleanProperty | m_vetoBadChips {this, "VetoBadChips", true} |
|
BooleanProperty | m_useIDGlobal {this, "useIDGlobal", false} |
|
std::string | m_name |
|
std::unordered_map< std::string, size_t > | m_toolLookupMap |
|
const ToolHandle< GenericMonitoringTool > | m_dummy |
|
Gaudi::Property< bool > | m_enforceExpressTriggers |
|
DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
|
|
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 38 of file SCTHitEffMonAlg.h.
◆ MonVarVec_t
◆ StoreGateSvc_t
◆ DataType_t
Specifies what type of input data is being monitored.
An enumeration of the different types of data the monitoring application may be running over. This can be used to select which histograms to produce, e.g. to prevent the production of colliding-beam histograms when running on cosmic-ray data. Strings of the same names may be given as jobOptions.
Enumerator |
---|
userDefined | |
monteCarlo | |
collisions | |
cosmics | |
heavyIonCollisions | |
Definition at line 191 of file AthMonitorAlgorithm.h.
◆ Environment_t
Specifies the processing environment.
The running environment may be used to select which histograms are produced, and where they are located in the output. For example, the output paths of the histograms are different for the "user", "online" and the various offline flags. Strings of the same names may be given as jobOptions.
Enumerator |
---|
user | |
online | |
tier0 | |
tier0Raw | |
tier0ESD | |
AOD | |
altprod | |
Definition at line 172 of file AthMonitorAlgorithm.h.
◆ SCTHitEffMonAlg()
SCTHitEffMonAlg::SCTHitEffMonAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~SCTHitEffMonAlg()
virtual SCTHitEffMonAlg::~SCTHitEffMonAlg |
( |
| ) |
|
|
virtualdefault |
◆ becIdxLayer2Index()
int SCTHitEffMonAlg::becIdxLayer2Index |
( |
const int |
becIdx, |
|
|
const int |
layer |
|
) |
| const |
|
private |
◆ cardinality()
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
◆ dataType()
DataType_t AthMonitorAlgorithm::dataType |
( |
| ) |
const |
|
inlineinherited |
Accessor functions for the data type.
- Returns
- the current value of the class's DataType_t instance.
Definition at line 221 of file AthMonitorAlgorithm.h.
◆ dataTypeStringToEnum()
Convert the data type string from the python configuration to an enum object.
- Returns
- a value in the DataType_t enumeration which matches the input string.
Definition at line 140 of file AthMonitorAlgorithm.cxx.
142 std::string lowerCaseStr =
str;
146 if( lowerCaseStr ==
"userdefined" ) {
148 }
else if( lowerCaseStr ==
"montecarlo" ) {
150 }
else if( lowerCaseStr ==
"collisions" ) {
152 }
else if( lowerCaseStr ==
"cosmics" ) {
154 }
else if( lowerCaseStr ==
"heavyioncollisions" ) {
157 ATH_MSG_WARNING(
"AthMonitorAlgorithm::dataTypeStringToEnum(): Unknown data type "
158 <<
str<<
", returning userDefined.");
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
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.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
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.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
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.
◆ declareProperty() [6/6]
◆ detStore()
◆ environment()
Accessor functions for the environment.
- Returns
- the current value of the class's Environment_t instance.
Definition at line 205 of file AthMonitorAlgorithm.h.
◆ envStringToEnum()
Convert the environment string from the python configuration to an enum object.
- Returns
- a value in the Environment_t enumeration which matches the input string.
Definition at line 112 of file AthMonitorAlgorithm.cxx.
114 std::string lowerCaseStr =
str;
118 if( lowerCaseStr ==
"user" ) {
120 }
else if( lowerCaseStr ==
"online" ) {
122 }
else if( lowerCaseStr ==
"tier0" ) {
124 }
else if( lowerCaseStr ==
"tier0raw" ) {
126 }
else if( lowerCaseStr ==
"tier0esd" ) {
128 }
else if( lowerCaseStr ==
"aod" ) {
130 }
else if( lowerCaseStr ==
"altprod" ) {
133 ATH_MSG_WARNING(
"AthMonitorAlgorithm::envStringToEnum(): Unknown environment "
134 <<
str<<
", returning user.");
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode AthMonitorAlgorithm::execute |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtualinherited |
Applies filters and trigger requirements.
Then, calls fillHistograms().
- Parameters
-
ctx | event context for reentrant Athena call |
- Returns
- StatusCode
Definition at line 73 of file AthMonitorAlgorithm.cxx.
78 if (!filterItr->accept()) {
80 return StatusCode::SUCCESS;
87 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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
◆ extraOutputDeps()
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.
◆ failCut()
StatusCode SCTHitEffMonAlg::failCut |
( |
bool |
value, |
|
|
const std::string & |
name |
|
) |
| const |
|
private |
Definition at line 233 of file SCTHitEffMonAlg.cxx.
236 return StatusCode::FAILURE;
239 return StatusCode::SUCCESS;
◆ fillHistograms()
StatusCode SCTHitEffMonAlg::fillHistograms |
( |
const EventContext & |
ctx | ) |
const |
|
finaloverridevirtual |
adds event to the monitoring histograms
User will overwrite this function. Histogram booking is no longer done in C++. This function is called in execute once the filters are all passed.
- Parameters
-
ctx | forwarded from execute |
- Returns
- StatusCode
Implements AthMonitorAlgorithm.
Definition at line 242 of file SCTHitEffMonAlg.cxx.
245 const std::map<Identifier, unsigned int>* badChips{
nullptr};
250 double timecor{-20.};
253 if (theComTime.isValid()) {
254 timecor = theComTime->getTime();
262 const EventIDBase& pEvent{ctx.eventID()};
263 unsigned BCID{pEvent.bunch_crossing_id()};
265 if (!bcidHdl.isValid()) {
266 ATH_MSG_ERROR(
"Unable to retrieve BunchCrossing conditions object" );
267 return StatusCode::FAILURE;
274 if (fieldCondObj==
nullptr) {
275 ATH_MSG_ERROR(
"AtlasFieldCacheCondObj cannot be retrieved.");
276 return StatusCode::RECOVERABLE;
279 fieldCondObj->getInitializedCache(fieldCache);
284 if (not tracks.isValid()) {
286 return StatusCode::SUCCESS;
292 if (not p_sctclcontainer.isValid()) {
294 return StatusCode::SUCCESS;
300 return StatusCode::SUCCESS;
306 if (elements==
nullptr) {
308 return StatusCode::FAILURE;
314 if (pthisTrack==
nullptr) {
317 if (
failCut(pthisTrack and pthisTrack->trackParameters() and pthisTrack->trackParameters()->size(),
318 "track cut: presence")) {
323 "track cut: inside-out only")) {
326 if (pthisTrack->perigeeParameters() ==
nullptr) {
329 const Trk::Perigee* perigee{pthisTrack->perigeeParameters()};
351 if (pthisTrack==
nullptr) {
354 if (
failCut(pthisTrack and pthisTrack->trackParameters() and pthisTrack->trackParameters()->size(),
355 "track cut: presence")) {
360 "track cut: inside-out only")) {
363 if (pthisTrack->perigeeParameters() ==
nullptr) {
366 const Trk::Perigee* perigee{pthisTrack->perigeeParameters()};
388 std::unique_ptr<const Trk::Track> trackWithHoles(
m_holeSearchTool->getTrackWithHoles(*pthisTrack));
389 if (not trackWithHoles) {
393 ATH_MSG_VERBOSE(
"Found " << trackWithHoles->trackStateOnSurfaces()->size() <<
" states on track");
410 std::map < Identifier, double > mapOfTrackHitResiduals;
415 float min_layerSide{999.};
416 float max_layerSide{-1.};
421 surfaceID = surfaceOnTrackIdentifier(tsos);
423 if (not surfaceID.is_valid()) {
445 mapOfTrackHitResiduals[surfaceID] =
getResidual(surfaceID, tsos->trackParameters(), &*p_sctclcontainer);
446 sctNHitsPerRegion[waferIndex]++;
452 sctNHolesPerRegion[waferIndex]++;
459 if (tsos->trackParameters()) {
460 zpos = tsos->trackParameters()->position().z();
464 ATH_MSG_WARNING(
"No track parameter found. Zmin and Zmax not recalculated.");
470 min_layerSide =
std::min(min_layerSide, layerSide);
471 max_layerSide =
std::max(max_layerSide, layerSide);
482 std::vector<bool> layersCrossedByTrack[
N_REGIONS];
483 std::vector<int> nHolesOnLayer[
N_REGIONS];
484 std::vector<int> nHolesDistOnLayer[
N_REGIONS];
486 nHolesDistOnLayer[
i].resize(n_layers[
i] * 2, 0);
487 nHolesOnLayer[
i].resize(n_layers[
i] * 2, 0);
488 layersCrossedByTrack[
i].resize(n_layers[
i] * 2,
false);
494 surfaceID = surfaceOnTrackIdentifier(tsos);
509 Int_t sctNHitsExceptThisWafer{0};
510 Int_t sctNHolesExceptThisWafer{0};
513 if (
i != waferIndex) {
514 sctNHitsExceptThisWafer += sctNHitsPerRegion[
i];
515 sctNHolesExceptThisWafer += sctNHolesPerRegion[
i];
523 if ((
unsigned int)(sctNHitsExceptThisWafer + pixelNHits) <
m_minSiHits) {
524 ATH_MSG_VERBOSE(
"This track is rejected due to the number of hits: " << sctNHitsExceptThisWafer * pixelNHits);
527 if ((
unsigned int)(sctNHolesExceptThisWafer + pixelNHoles) >
m_maxSiHoles) {
528 ATH_MSG_VERBOSE(
"This track is rejected due to the number of holes: " << sctNHolesExceptThisWafer * pixelNHoles);
534 if (detIndex == -1) {
535 ATH_MSG_WARNING(
"The detector region (barrel, endcap A, endcap C) could not be determined");
541 float layerPlusHalfSide{
static_cast<float>(
layer) +
static_cast<float>(
side) * 0.5f};
542 float dedicated_layerPlusHalfSide{
static_cast<float>(
layer) +
static_cast<float>((
side + 1) % 2) * 0.5
f};
544 double trackHitResidual{
getResidual(surfaceID, trkParamOnSurface, &*p_sctclcontainer)};
554 bool otherFaceFound{
false};
555 IdentifierHash otherSideHash;
559 m_sctId->
get_id(otherSideHash, otherSideSurfaceID, &context);
560 otherFaceFound = mapOfTrackHitResiduals.find(otherSideSurfaceID) != mapOfTrackHitResiduals.end();
562 int nOther{sctNHits};
570 if (trkParamOnSurface and (not
findAnglesToWaferSurface(trkParamOnSurface->momentum(), surfaceID, elements, theta, phiUp))) {
576 sctNHits >=
m_minSCTHits,
"track cut: min TRT or SCT hits")) {
600 static const double tmin{-15.};
601 static const double tmax{10.};
602 if (
failCut((timecor >= tmin) and (timecor <= tmax),
"track cut: timing cut")) {
608 bool enclosingHits{
true};
610 if (tsos->trackParameters()) {
611 zpos = tsos->trackParameters()->position().z();
612 enclosingHits = ((zpos >
zmin) and (zpos <
zmax));
614 ATH_MSG_WARNING(
"No track parameters found. Cannot determine whether it is an enclosed hit.");
615 enclosingHits =
false;
620 + (
static_cast<float>(
m_sctId->
side(surfaceID)) == 0) * 0.5;
621 enclosingHits = ((layerSide > min_layerSide) and (layerSide < max_layerSide));
625 (not (layerPlusHalfSide == 0.5)) and
626 (not ((isub == 1) and (layerPlusHalfSide == 3))) and
627 (not (layerPlusHalfSide == 8))) {
628 if (
failCut(enclosingHits,
"hit cut: enclosing hits")) {
634 double chi2{trackWithHoles->fitQuality()->chiSquared()};
635 int ndf{trackWithHoles->fitQuality()->numberDoF()};
636 double chi2_div_ndf{
ndf > 0. ?
chi2 /
ndf : -1.};
650 if (not trkParamOnSurface)
continue;
651 double xl{trkParamOnSurface->localPosition()[0]};
652 double yl{trkParamOnSurface->localPosition()[1]};
655 bool insideGuardRing{
true};
658 static const float yGuard{3.};
659 if (xl < -30.7 + xGuard) {
660 insideGuardRing =
false;
662 if (xl > 30.7 - xGuard) {
663 insideGuardRing =
false;
666 static const double yend{63.960 + 0.03 - 1.};
667 static const double ydead{2.06 / 2.};
668 if (yl > yend - yGuard) {
669 insideGuardRing =
false;
671 if (yl < -yend + yGuard) {
672 insideGuardRing =
false;
674 if ((yl < ydead + yGuard) and (yl > -ydead - yGuard)) {
675 insideGuardRing =
false;
679 insideGuardRing =
true;
688 bool nearBadChip{
false};
691 bool swap{(pElement->swapPhiReadoutDirection()) ?
true :
false};
694 std::map<Identifier, unsigned int>::const_iterator badChip{badChips->find(module_id)};
695 if (badChip != badChips->end()) {
696 status = (*badChip).second;
698 const bool nearBadChipDead{(
status & (1 << chipPos)) != 0};
699 const bool nextBadChipDead{(
status & (1 << (chipPos + 1))) != 0};
700 const bool isNotEndChip{(chipPos != 5) and (chipPos != 11)};
705 nearBadChip = nearBadChipDead or (isNotEndChip and nextBadChipDead);
707 if (
failCut(not nearBadChip,
"hit cut: not near bad chip")) {
727 fill(regionNames[isub].
data(), effAcc, ineffAcc, ietaAcc, iphiAcc, layerAcc, lumiAcc, isFirstBCIDAcc);
728 fill(
"SCTHitEffMonitor", effAcc, lumiAcc, isubAcc, sideHashAcc, isFirstBCIDAcc);
731 ATH_MSG_INFO(
"Filling " << detIndex <<
", " <<
side <<
" eta " << ieta <<
" phi " << iphi);
737 return StatusCode::SUCCESS;
◆ filterPassed()
◆ findAnglesToWaferSurface()
Definition at line 190 of file SCTHitEffMonAlg.cxx.
203 return StatusCode::FAILURE;
205 double pNormal{
mom.dot(element->normal())};
206 double pEta{
mom.dot(element->etaAxis())};
207 double pPhi{
mom.dot(element->phiAxis())};
218 return StatusCode::SUCCESS;
◆ GetEventInfo()
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
- Parameters
-
ctx | EventContext for the event |
- Returns
- a SG::ReadHandle<xAOD::EventInfo>
Definition at line 107 of file AthMonitorAlgorithm.cxx.
◆ getGroup()
Get a specific monitoring tool from the tool handle array.
Finds a specific GenericMonitoringTool instance from the list of monitoring tools (a ToolHandleArray). Throws a FATAL warning if the object found is empty.
- Parameters
-
name | string name of the desired tool |
- Returns
- reference to the desired monitoring tool
Definition at line 164 of file AthMonitorAlgorithm.cxx.
176 if (!isInitialized()) {
178 "It seems that the AthMonitorAlgorithm::initialize was not called "
179 "in derived class initialize method");
183 [](
const std::string&
s,
auto h) { return s +
"," + h.first; });
184 ATH_MSG_FATAL(
"The tool " <<
name <<
" could not be found in the tool array of the "
185 <<
"monitoring algorithm " <<
m_name <<
". This probably reflects a discrepancy between "
186 <<
"your python configuration and c++ filling code. Note: your available groups are {"
187 << available <<
"}.");
◆ getResidual()
Definition at line 155 of file SCTHitEffMonAlg.cxx.
158 double trackHitResidual{-999.};
160 if (trkParam==
nullptr) {
161 ATH_MSG_WARNING(
"Not track parameters found. Returning default residual value.");
162 return trackHitResidual;
165 auto containerIterator{p_sctclcontainer->indexFindPtr(idh)};
166 if (containerIterator !=
nullptr) {
168 if ((cluster==
nullptr) or (
cluster->detectorElement()==
nullptr)) {
174 std::unique_ptr<const Trk::RIO_OnTrack> rio{
m_rotcreator->correct(*rioo, *trkParam, Gaudi::Hive::currentContext())};
178 if (not residualPull)
continue;
179 if (std::abs(residualPull->residual()[
Trk::loc1]) < std::abs(trackHitResidual)) {
180 trackHitResidual = residualPull->residual()[
Trk::loc1];
186 return trackHitResidual;
◆ getTrigDecisionTool()
Get the trigger decision tool member.
The trigger decision tool is used to check whether a specific trigger is passed by an event.
- Returns
- m_trigDecTool
Definition at line 194 of file AthMonitorAlgorithm.cxx.
◆ getWaferIndex()
int SCTHitEffMonAlg::getWaferIndex |
( |
const int |
barrel_bc, |
|
|
const int |
layer_disk, |
|
|
const int |
side |
|
) |
| const |
|
private |
◆ initialize()
StatusCode SCTHitEffMonAlg::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ inputHandles()
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.
◆ isClonable()
◆ layerIndex2becIndex()
◆ layerIndex2layer()
int SCTHitEffMonAlg::layerIndex2layer |
( |
const int |
index | ) |
const |
|
private |
Convert a layer/disk number (0-21) to a layer number (0-8 for endcaps, 0-3 for barrel)
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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.
◆ parseList()
StatusCode AthMonitorAlgorithm::parseList |
( |
const std::string & |
line, |
|
|
std::vector< std::string > & |
result |
|
) |
| const |
|
virtualinherited |
Parse a string into a vector.
The input string is a single long string of all of the trigger names. It parses this string and turns it into a vector, where each element is one trigger or trigger category.
- Parameters
-
line | The input string. |
result | The parsed output vector of strings. |
- Returns
- StatusCode
Definition at line 341 of file AthMonitorAlgorithm.cxx.
343 std::stringstream
ss(
line);
347 while ( std::getline(
ss,
item,
',') ) {
348 std::stringstream iss(
item);
353 return StatusCode::SUCCESS;
◆ previousChip()
int SCTHitEffMonAlg::previousChip |
( |
double |
xl, |
|
|
int |
side, |
|
|
bool |
swap |
|
) |
| const |
|
private |
Definition at line 221 of file SCTHitEffMonAlg.cxx.
222 double xLeftEdge{xl +
N_STRIPS / 2. * stripWidth};
223 int chipPos{
static_cast<int>(xLeftEdge / (stripWidth *
N_STRIPS) *
N_CHIPS)};
226 chipPos =
swap ? 5 - chipPos : chipPos;
228 chipPos =
swap ? 11 - chipPos : 6 + chipPos;
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
◆ sysExecute()
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.
◆ sysInitialize()
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< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
110 if (
sc.isFailure()) {
118 if ( cs.retrieve().isFailure() ) {
120 return StatusCode::SUCCESS;
122 if (cs->regHandle(
this,*
h).isFailure()) {
123 sc = StatusCode::FAILURE;
124 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ trigChainsArePassed()
bool AthMonitorAlgorithm::trigChainsArePassed |
( |
const std::vector< std::string > & |
vTrigNames | ) |
const |
|
inherited |
Check whether triggers are passed.
For the event, use the trigger decision tool to check that at least one of the triggers listed in the supplied vector is passed.
- Parameters
-
vTrigNames | List of trigger names. |
- Returns
- If empty input, default to true. If at least one trigger is specified, returns whether at least one trigger was passed.
Definition at line 199 of file AthMonitorAlgorithm.cxx.
203 if (vTrigNames.empty())
return true;
215 bool expressPass = passedBits & TrigDefs::Express_passed;
222 return group->isPassed();
◆ updateVHKA()
◆ cfg
SCTHitEffMonAlg.cfg = MainServicesCfg(flags) |
◆ Dynamic
◆ Files
◆ flags
SCTHitEffMonAlg.flags = initConfigFlags() |
◆ GeometryID
SCTHitEffMonAlg.GeometryID |
◆ GeometryPixel
SCTHitEffMonAlg.GeometryPixel |
◆ GeometrySCT
SCTHitEffMonAlg.GeometrySCT |
◆ GeometryTRT
SCTHitEffMonAlg.GeometryTRT |
◆ HISTFileName
SCTHitEffMonAlg.HISTFileName |
◆ isMC
◆ m_bunchCrossingKey
◆ m_comTimeName
◆ m_configConditions
Initial value:{this, "ConfigConditions",
"SCT_ConfigurationConditionsTool/InDetSCT_ConfigurationConditionsTool", "Tool to retrieve SCT Configuration Tool"}
Definition at line 84 of file SCTHitEffMonAlg.h.
◆ m_dataType
◆ m_dataTypeStr
Gaudi::Property<std::string> AthMonitorAlgorithm::m_dataTypeStr {this,"DataType","userDefined"} |
|
protectedinherited |
◆ m_defaultLBDuration
Gaudi::Property<float> AthMonitorAlgorithm::m_defaultLBDuration {this,"DefaultLBDuration",60.} |
|
protectedinherited |
◆ m_detailLevel
Gaudi::Property<int> AthMonitorAlgorithm::m_detailLevel {this,"DetailLevel",0} |
|
protectedinherited |
◆ m_detStore
◆ m_DQFilterTools
ToolHandleArray<IDQFilterTool> AthMonitorAlgorithm::m_DQFilterTools {this,"FilterTools",{}} |
|
protectedinherited |
◆ m_dummy
◆ m_effdistcut
FloatProperty SCTHitEffMonAlg::m_effdistcut {this, "effDistanceCut", 0.2, "mm"} |
|
private |
◆ m_enforceExpressTriggers
Gaudi::Property<bool> AthMonitorAlgorithm::m_enforceExpressTriggers |
|
privateinherited |
Initial value:{this,
"EnforceExpressTriggers", false,
"Requires that matched triggers made the event enter the express stream"}
Definition at line 372 of file AthMonitorAlgorithm.h.
◆ m_environment
◆ m_environmentStr
Gaudi::Property<std::string> AthMonitorAlgorithm::m_environmentStr {this,"Environment","user"} |
|
protectedinherited |
Environment string pulled from the job option and converted to enum.
Definition at line 352 of file AthMonitorAlgorithm.h.
◆ m_EventInfoKey
◆ m_evtStore
◆ m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
◆ m_fieldCondObjInputKey
◆ m_fileKey
Gaudi::Property<std::string> AthMonitorAlgorithm::m_fileKey {this,"FileKey",""} |
|
protectedinherited |
◆ m_holeSearchTool
◆ m_insideOutOnly
BooleanProperty SCTHitEffMonAlg::m_insideOutOnly {this, "InsideOutOnly", false} |
|
private |
◆ m_isCosmic
BooleanProperty SCTHitEffMonAlg::m_isCosmic {this, "IsCosmic", false} |
|
private |
◆ m_lbDurationDataKey
◆ m_lumiDataKey
◆ m_maxChi2
FloatProperty SCTHitEffMonAlg::m_maxChi2 {this, "MaxChi2", 3.} |
|
private |
◆ m_maxD0
FloatProperty SCTHitEffMonAlg::m_maxD0 {this, "Maxd0", 10., "mm of D0"} |
|
private |
◆ m_maxPhiAngle
FloatProperty SCTHitEffMonAlg::m_maxPhiAngle {this, "MaxPhiAngle", 40., "Degrees, 100 implies no cut."} |
|
private |
◆ m_maxSiHoles
UnsignedIntegerProperty SCTHitEffMonAlg::m_maxSiHoles {this, "MaximumNumberOfSiHoles", 1, "Threshold for number of Si holes. Count Si holes excluding holes in the wafer under investigation to reduce track selection bias"} |
|
private |
◆ m_maxTracks
UnsignedIntegerProperty SCTHitEffMonAlg::m_maxTracks {this, "MaxTracks", 500} |
|
private |
◆ m_maxZ0sinTheta
FloatProperty SCTHitEffMonAlg::m_maxZ0sinTheta {this, "MaxZ0sinTheta", 0.} |
|
private |
◆ m_minOtherHits
IntegerProperty SCTHitEffMonAlg::m_minOtherHits {this, "MinOtherHits", 6} |
|
private |
◆ m_minPixelHits
IntegerProperty SCTHitEffMonAlg::m_minPixelHits {this, "MinPixelHits", -1} |
|
private |
◆ m_minPt
FloatProperty SCTHitEffMonAlg::m_minPt {this, "MinPt", 1000., "minimu pt in MeV/c"} |
|
private |
◆ m_minSCTHits
IntegerProperty SCTHitEffMonAlg::m_minSCTHits {this, "MinSCTHits", -1} |
|
private |
◆ m_minSiHits
UnsignedIntegerProperty SCTHitEffMonAlg::m_minSiHits {this, "MinimumNumberOfSiHits", 8, "Threshold for number of Si hits. Count Si hits excluding hits in the wafer under investigation to reduce track selection bias"} |
|
private |
◆ m_minTRTHits
IntegerProperty SCTHitEffMonAlg::m_minTRTHits {this, "MinTRTHits", -1} |
|
private |
◆ m_name
std::string AthMonitorAlgorithm::m_name |
|
privateinherited |
◆ m_path
std::string SCTHitEffMonAlg::m_path |
|
private |
◆ m_pixelId
◆ m_requireEnclosingHits
BooleanProperty SCTHitEffMonAlg::m_requireEnclosingHits {this, "RequireEnclosingHits", false} |
|
private |
◆ m_requireGuardRing
BooleanProperty SCTHitEffMonAlg::m_requireGuardRing {this, "RequireGuardRing", false, "should be returned to true"} |
|
private |
◆ m_requireOtherFace
BooleanProperty SCTHitEffMonAlg::m_requireOtherFace {this, "RequireOtherFace", false} |
|
private |
◆ m_residualPullCalculator
◆ m_rotcreator
◆ m_sctContainerName
◆ m_SCTDetEleCollKey
◆ m_sctId
◆ m_toolLookupMap
std::unordered_map<std::string, size_t> AthMonitorAlgorithm::m_toolLookupMap |
|
privateinherited |
◆ m_tools
◆ m_TrackName
◆ m_trigDecTool
◆ m_triggerChainString
Gaudi::Property<std::string> AthMonitorAlgorithm::m_triggerChainString {this,"TriggerChain",""} |
|
protectedinherited |
Trigger chain string pulled from the job option and parsed into a vector.
Definition at line 355 of file AthMonitorAlgorithm.h.
◆ m_trigLiveFractionDataKey
◆ m_trtId
◆ m_useIDGlobal
BooleanProperty SCTHitEffMonAlg::m_useIDGlobal {this, "useIDGlobal", false} |
|
private |
◆ m_useLumi
Gaudi::Property<bool> AthMonitorAlgorithm::m_useLumi {this,"EnableLumi",false} |
|
protectedinherited |
◆ m_useSCTorTRT
BooleanProperty SCTHitEffMonAlg::m_useSCTorTRT {this, "UseSCTorTRT", false} |
|
private |
◆ m_useTRTPhase
BooleanProperty SCTHitEffMonAlg::m_useTRTPhase {this, "UseTRTPhase", false} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vetoBadChips
BooleanProperty SCTHitEffMonAlg::m_vetoBadChips {this, "VetoBadChips", true} |
|
private |
◆ m_vhka
◆ m_vTrigChainNames
std::vector<std::string> AthMonitorAlgorithm::m_vTrigChainNames |
|
protectedinherited |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
bool is_pixel(Identifier id) const
unsigned int bec2Index(const int bec)
FloatProperty m_maxPhiAngle
int becIdxLayer2Index(const int becIdx, const int layer) const
char data[hepevt_bytes_allocation_ATLAS]
Environment_t environment() const
Accessor functions for the environment.
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
UnsignedIntegerProperty m_maxTracks
ToolHandle< Trk::IRIO_OnTrackCreator > m_rotcreator
BooleanProperty m_useIDGlobal
bool is_sct(Identifier id) const
BooleanProperty m_requireEnclosingHits
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
double getResidual(const Identifier &surfaceID, const Trk::TrackParameters *trkParam, const InDet::SCT_ClusterContainer *p_sctclcontainer) const
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
FloatProperty m_maxZ0sinTheta
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)
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.
@ Unbiased
RP with track state that has measurement not included.
constexpr unsigned int N_SIDES
BooleanProperty m_insideOutOnly
StatusCode failCut(bool value, const std::string &name) const
BooleanProperty m_requireGuardRing
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::unordered_map< std::string, size_t > m_toolLookupMap
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
bool is_trt(Identifier id) const
int phi_module(const Identifier &id) const
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
BooleanProperty m_requireOtherFace
ToolHandle< Trk::IResidualPullCalculator > m_residualPullCalculator
Identifier module_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
const ToolHandle< GenericMonitoringTool > m_dummy
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const override final
Create compact id from hash id (return == 0 for OK)
@ Outlier
This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used ...
FloatProperty m_effdistcut
BooleanProperty m_isCosmic
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
IntegerProperty m_minSCTHits
const PixelID * m_pixelId
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
@ Hole
A hole on the track - this is defined in the following way.
::StatusCode StatusCode
StatusCode definition for legacy code.
@ numberOfSCTHits
number of SCT holes
void tolower(std::string &s)
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
@ BunchCrossings
Distance in units of 25 nanoseconds.
double chi2(TH1 *h0, TH1 *h1)
ToolHandle< Trk::ITrackHoleSearchTool > m_holeSearchTool
IdContext wafer_context(void) const
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
StatusCode findAnglesToWaferSurface(const Amg::Vector3D &mom, const Identifier id, const InDetDD::SiDetectorElementCollection *elements, double &theta, double &phi) const
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCondObjInputKey
int get_other_side(const IdentifierHash &id, IdentifierHash &other) const
Wafer hash on other side.
BooleanProperty m_useSCTorTRT
bool solenoidOn() const
status of the magnets
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
IntegerProperty m_minTRTHits
int distanceFromFront(const bcid_type bcid, const BunchDistanceType type=NanoSec) const
The distance of the specific bunch crossing from the front of the train.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
SG::ReadHandleKey< ComTime > m_comTimeName
IntegerProperty m_minPixelHits
represents the track state (measurement, material, fit parameters and quality) at a surface.
A summary of the information contained by a track.
std::string to_string(const DetectorType &type)
BooleanProperty m_vetoBadChips
SG::ReadHandleKey< InDet::SCT_ClusterContainer > m_sctContainerName
int previousChip(double xl, int side, bool swap) const
int layer_disk(const Identifier &id) const
Gaudi::Property< bool > m_enforceExpressTriggers
StatusCode initialize(bool used=true)
IntegerProperty m_minOtherHits
int getWaferIndex(const int barrel_bc, const int layer_disk, const int side) const
virtual StatusCode initialize() override
initialize
@ SiSPSeededFinder
Tracks from SiSPSeedFinder.
accumulate
Update flags based on parser line args.
SG::ReadCondHandleKey< BunchCrossingCondData > m_bunchCrossingKey
#define ATH_MSG_WARNING(x)
int eta_module(const Identifier &id) const
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)
BooleanProperty m_useTRTPhase
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual StatusCode sysInitialize() override
Override sysInitialize.
UnsignedIntegerProperty m_maxSiHoles
int side(const Identifier &id) const
SG::ReadHandleKey< TrackCollection > m_TrackName
Declare a monitored scalar variable.
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
UnsignedIntegerProperty m_minSiHits
ToolHandle< ISCT_ConfigurationConditionsTool > m_configConditions