 |
ATLAS Offline Software
|
#include <IDAlignMonResidualsAlg.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...
|
|
|
| IDAlignMonResidualsAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~IDAlignMonResidualsAlg () |
|
virtual StatusCode | initialize () override |
| initialize More...
|
|
virtual StatusCode | fillHistograms (const EventContext &ctx) const override |
| 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...
|
|
|
void | fillTRTHistograms (int barrel_ec, int layer_or_wheel, int phi_module, float predictR, float hitR, float residualR, float pullR, bool isTubeHit, float trketa) const |
|
void | fillTRTBarrelHistograms (int barrel_ec, int layer_or_wheel, int phi_module, float predictR, float hitR, float residualR, float pullR, bool LRcorrect, bool isTubeHit, float trketa) const |
|
void | fillTRTEndcapHistograms (int barrel_ec, int phi_module, float predictR, float hitR, float residualR, float pullR, bool LRcorrect, bool isTubeHit, float trketa) const |
|
StatusCode | setupTools () |
|
StatusCode | getSiResiduals (const Trk::Track *, const Trk::TrackStateOnSurface *, bool, double *) const |
|
std::unique_ptr< Trk::TrackParameters > | getUnbiasedTrackParameters (const Trk::Track *, const Trk::TrackStateOnSurface *) const |
|
bool | trackRequiresRefit (const Trk::Track *) 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...
|
|
Definition at line 47 of file IDAlignMonResidualsAlg.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.
◆ IDAlignMonResidualsAlg()
IDAlignMonResidualsAlg::IDAlignMonResidualsAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~IDAlignMonResidualsAlg()
IDAlignMonResidualsAlg::~IDAlignMonResidualsAlg |
( |
| ) |
|
|
virtual |
◆ 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.
◆ fillHistograms()
StatusCode IDAlignMonResidualsAlg::fillHistograms |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
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
filling TRT histograms
Implements AthMonitorAlgorithm.
Definition at line 146 of file IDAlignMonResidualsAlg.cxx.
153 auto residualGroup =
getGroup(
"Residuals");
156 bool hasBeenCalledThisEvent=
false;
162 if (!hasBeenCalledThisEvent){
165 hasBeenCalledThisEvent=
true;
171 fill(
"residualGroup", mu_m);
176 if (not tracks.isValid()) {
178 return StatusCode::RECOVERABLE;
182 ATH_MSG_DEBUG (
"IDAlignMonResidual: Start loop on tracks. Number of tracks " << tracks->size());
186 if ( !trksItr || trksItr->perigeeParameters() ==
nullptr ) {
187 ATH_MSG_DEBUG(
"InDetAlignmentMonitoringRun3: NULL track pointer in collection" );
199 ATH_MSG_DEBUG(
"Not all TSOS contain track parameters - will be missing residuals/pulls");
202 ATH_MSG_DEBUG(
"All TSOS of track " << nTracks <<
"/" << tracks->size() <<
" contain track parameters - Good!");
206 ATH_MSG_DEBUG(
"** IDAlignMonResiduals::fillHistograms() ** track: " << nTracks <<
" has " << trksItr->trackStateOnSurfaces()->size() <<
" TrkSurfaces");
216 if (tsos ==
nullptr) {
222 ATH_MSG_DEBUG(
" --> testing if hit " << nTSOS <<
"/" << trksItr->trackStateOnSurfaces()->size() <<
" is a track measurement");
224 ATH_MSG_DEBUG(
"Skipping TSOS " << nTSOS <<
" because it is an outlier (or the first TSOS on the track)");
229 ATH_MSG_DEBUG(
" --> Defined hit measurementOnTrack() for hit: " << nTSOS <<
"/" << trksItr->trackStateOnSurfaces()->size() <<
" of track " << nTracks);
233 ATH_MSG_DEBUG(
" --> Going to retrive the Trk::RIO_OnTrack for hit " << nTSOS);
236 if (nHits >0)
ATH_MSG_DEBUG(
"No hit associated with TSOS " << nTSOS);
240 ATH_MSG_DEBUG(
" --> Going to retrive the track parameters of this TSOS: " << nTSOS);
242 if(trackParameter==
nullptr) {
244 ATH_MSG_DEBUG(
" Skipping TSOS " << nTSOS <<
" because it does not have TrackParameters");
248 const AmgSymMatrix(5)* TrackParCovariance = trackParameter ? trackParameter->covariance() :
nullptr;
250 if(TrackParCovariance==
nullptr) {
253 ATH_MSG_DEBUG(
"Skipping TSOS " << nTSOS <<
" because does not have MeasuredTrackParameters");
258 " --> going to define residuals and everything of TSOS #" << nTSOS <<
"/" <<
259 trksItr->trackStateOnSurfaces()->size());
261 float residualX = 9999.0;
262 float residualY = 9999.0;
263 float pullX = 9999.0;
264 float pullY = 9999.0;
265 float biasedResidualX = 9999.0;
266 float biasedResidualY = 9999.0;
281 if ( detType == 99) {
282 ATH_MSG_DEBUG(
" --> Hit " << nTSOS <<
" with detector type " << detType <<
" is not an Inner Detector hit -> skip this hit");
288 ATH_MSG_DEBUG(
"** IDAlignMonResidualsAlg::fillHistograms() ** Hit is from the TRT, finding residuals... ");
292 if (!trackParameter) {
293 ATH_MSG_WARNING(
"No TrackParameters associated with TRT TrkSurface " << nTSOS);
297 float trketa = tsos->trackParameters()->eta();
306 ATH_MSG_DEBUG(
"Found Trk::TrackParameters for hit " << nTSOS <<
" --> TRT hit (detType= " << detType <<
")" );
312 if (!trackParameterUnbiased) {
313 ATH_MSG_WARNING(
"Cannot define unbiased parameters for hit, skipping it.");
316 ATH_MSG_DEBUG(
" --> TRT UnBiased TrackParameters of hit " << nTSOS <<
" FOUND");
318 float predictR = trackParameterUnbiased->parameters()[
Trk::locR];
321 std::optional<Trk::ResidualPull> residualPull =
323 trackParameterUnbiased.get(),
330 ATH_MSG_DEBUG(
" no covariance of the track parameters given, can not calculate pull!");
335 float residualR = hitR - predictR;
340 if (trtCircle !=
nullptr) {
341 ATH_MSG_DEBUG(
" fillHistograms() ** filling TRT histograms for hit/tsos #" << nTSOS
342 <<
" Barrel/EndCap: " << barrel_ec
343 <<
" layer/wheel: " << layer_or_wheel
344 <<
" phi: " << phi_module
345 <<
" Residual: " << residualR);
361 ATH_MSG_DEBUG(
"applying hit quality cuts to Silicon hit...");
369 else ATH_MSG_DEBUG(
"hit quality cuts NOT APPLIED to Silicon hit.");
391 ATH_MSG_DEBUG(
"Found Trk::TrackParameters " << trackParameter);
393 double unbiasedResXY[4] = {9999.0,9999.0,9999.0,9999.0};
394 double biasedResXY[4] = {9999.0,9999.0,9999.0,9999.0};
399 if (
sc.isFailure()) {
400 ATH_MSG_DEBUG(
"Problem in determining unbiased residuals! Hit is skipped.");
402 fill(residualGroup, detType_m);
408 residualX = (
float)unbiasedResXY[0];
409 residualY = (
float)unbiasedResXY[1];
410 pullX = (
float)unbiasedResXY[2];
411 pullY = (
float)unbiasedResXY[3];
415 if (
sc.isFailure()) {
416 ATH_MSG_DEBUG(
"Problem in determining biased residuals! Hit is skipped.");
422 biasedResidualX = (
float)biasedResXY[0];
423 biasedResidualY = (
float)biasedResXY[1];
427 ATH_MSG_DEBUG(
"No TrackParameters associated with Si TrkSurface "<< nTSOS <<
" - Hit is probably an outlier");
462 ATH_MSG_DEBUG(
" This is a PIXEL hit " << hitId <<
" - filling histograms");
464 si_residualx_m = residualX;
465 fill(residualGroup, si_residualx_m);
468 int ModEtaShift[4] = {0, 30, 53, 76};
469 int ModPhiShift[4] = {0, 24, 56, 104};
472 si_b_residualx_m = residualX;
473 fill(residualGroup, si_b_residualx_m);
475 layerDisk_si_m = layerDisk;
476 si_barrel_resX_m = residualX;
477 si_barrel_resY_m = residualY;
478 si_barrel_pullX_m = pullX;
479 si_barrel_pullY_m = pullY;
480 fill(residualGroup, layerDisk_si_m, si_barrel_resX_m, si_barrel_resY_m, si_barrel_pullX_m, si_barrel_pullY_m);
487 fill(residualGroup, pix_b_residualx_m, pix_b_biased_residualx_m, pix_b_residualy_m, pix_b_biased_residualy_m);
507 auto modPhiShift_barrel_m =
Monitored::Scalar<int>(
"m_modPhiShift_barrel", modPhi + ModPhiShift[layerDisk] );
508 auto modEtaShift_barrel_m =
Monitored::Scalar<int>(
"m_modEtaShift_barrel", modEta + ModEtaShift[layerDisk] );
509 fill(residualGroup, modPhiShift_barrel_m, residualX_barrel_m, residualY_barrel_m);
510 fill(residualGroup, modEtaShift_barrel_m, residualX_barrel_m, residualY_barrel_m);
512 else if(barrelEC==2){
513 int ModPhiShift[3] = {0, 55, 110};
516 layerDisk_si_m = layerDisk;
517 si_eca_resX_m = residualX;
518 si_eca_resY_m = residualY;
519 si_eca_pullX_m = pullX;
520 si_eca_pullY_m = pullY;
521 fill(residualGroup, layerDisk_si_m, si_eca_resX_m, si_eca_resY_m, si_eca_pullX_m, si_eca_pullY_m);
529 fill(residualGroup, pix_eca_residualx_m, pix_eca_residualy_m);
533 fill(residualGroup, pix_eca_pullx_m, pix_eca_pully_m);
541 fill(residualGroup, modPhiShift_eca_m, residualX_eca_m, residualY_eca_m);
543 else if(barrelEC==-2){
544 int ModPhiShift[3] = {0, 55, 110};
547 layerDisk_si_m = layerDisk;
548 si_ecc_resX_m = residualX;
549 si_ecc_resY_m = residualY;
550 si_ecc_pullX_m = pullX;
551 si_ecc_pullY_m = pullY;
552 fill(residualGroup, layerDisk_si_m, si_ecc_resX_m, si_ecc_resY_m, si_ecc_pullX_m, si_ecc_pullY_m);
560 fill(residualGroup, pix_ecc_residualx_m, pix_ecc_residualy_m);
564 fill(residualGroup, pix_ecc_pullx_m, pix_ecc_pully_m);
572 fill(residualGroup, modPhiShift_ecc_m, residualX_ecc_m, residualY_ecc_m);
575 else if (detType==1) {
576 si_residualx_m = residualX;
577 fill(residualGroup, si_residualx_m);
579 ATH_MSG_DEBUG(
" This is a SCT hit " << hitId <<
" - filling histograms");
582 int ModPhiShift[4] = {0, 42, 92, 150};
583 int ModEtaShift[4] = {0, 23, 46, 69};
586 si_b_residualx_m = residualX;
587 fill(residualGroup, si_b_residualx_m);
589 layerDisk_si_m = 4 + 2 * layerDisk + sctSide;
590 si_barrel_resX_m = residualX;
591 si_barrel_pullX_m = pullX;
592 fill(residualGroup, layerDisk_si_m, si_barrel_resX_m, si_barrel_pullX_m);
596 fill(residualGroup, sct_b_residualx_m);
614 auto modPhiShift_sct_barrel_m =
Monitored::Scalar<int>(
"m_modPhiShift_sct_barrel", modPhi + ModPhiShift[layerDisk] );
615 auto modEtaShift_sct_barrel_m =
Monitored::Scalar<int>(
"m_modEtaShift_sct_barrel", modEta + ModEtaShift[layerDisk] );
616 fill(residualGroup, modPhiShift_sct_barrel_m, modEtaShift_sct_barrel_m, residualX_sct_barrel_m);
619 else if(barrelEC==2){
624 layerDisk_si_m = 3 + 2 * layerDisk + sctSide;
625 si_eca_resX_m = residualX;
626 si_eca_pullX_m = pullX;
627 fill(residualGroup, layerDisk_si_m, si_eca_resX_m, si_eca_pullX_m);
633 fill(residualGroup, sct_eca_residualx_m, sct_eca_pullx_m);
642 auto modPhiShift_sct_eca_m =
Monitored::Scalar<int>(
"m_modPhiShift_sct_eca", modPhi + layerDisk * (gap_sct + Nmods) );
643 fill(residualGroup, modPhiShift_sct_eca_m, residualX_sct_eca_m);
646 else if(barrelEC==-2){
651 layerDisk_si_m = 3 + 2 * layerDisk + sctSide;
652 si_ecc_resX_m = residualX;
653 si_ecc_pullX_m = pullX;
654 fill(residualGroup, layerDisk_si_m, si_ecc_resX_m, si_ecc_pullX_m);
660 fill(residualGroup, sct_ecc_residualx_m, sct_ecc_pullx_m);
669 auto modPhiShift_sct_ecc_m =
Monitored::Scalar<int>(
"m_modPhiShift_sct_ecc", modPhi + layerDisk * (gap_sct + Nmods) );
670 fill(residualGroup, modPhiShift_sct_ecc_m, residualX_sct_ecc_m);
680 return StatusCode::SUCCESS;
◆ fillTRTBarrelHistograms()
void IDAlignMonResidualsAlg::fillTRTBarrelHistograms |
( |
int |
barrel_ec, |
|
|
int |
layer_or_wheel, |
|
|
int |
phi_module, |
|
|
float |
predictR, |
|
|
float |
hitR, |
|
|
float |
residualR, |
|
|
float |
pullR, |
|
|
bool |
LRcorrect, |
|
|
bool |
isTubeHit, |
|
|
float |
trketa |
|
) |
| const |
|
private |
Definition at line 810 of file IDAlignMonResidualsAlg.cxx.
816 else if (
side == 1 && barrel_ec == 1)
doFill =
true;
817 else if (
side == 2 && barrel_ec == -1)
doFill =
true;
838 if (LRcorrect && !isTubeHit) trt_b_lr_m = 0.5;
839 if (LRcorrect && isTubeHit) trt_b_lr_m = 1.5;
840 if (!LRcorrect && !isTubeHit) trt_b_lr_m = 2.5;
841 if (!LRcorrect && isTubeHit) trt_b_lr_m = 3.5;
849 trt_b_lrVsPhiSec_m = LRcorrect;
◆ fillTRTEndcapHistograms()
void IDAlignMonResidualsAlg::fillTRTEndcapHistograms |
( |
int |
barrel_ec, |
|
|
int |
phi_module, |
|
|
float |
predictR, |
|
|
float |
hitR, |
|
|
float |
residualR, |
|
|
float |
pullR, |
|
|
bool |
LRcorrect, |
|
|
bool |
isTubeHit, |
|
|
float |
trketa |
|
) |
| const |
|
private |
Definition at line 857 of file IDAlignMonResidualsAlg.cxx.
858 for (
unsigned int endcap = 0; endcap < 2; ++endcap) {
860 if (!endcap && barrel_ec == 2)
doFill =
true;
861 else if (endcap && barrel_ec == -2)
doFill =
true;
882 if (LRcorrect && !isTubeHit) trt_ec_lr_m = 0.5;
883 else if (LRcorrect && isTubeHit) trt_ec_lr_m = 1.5;
884 else if (!LRcorrect && !isTubeHit) trt_ec_lr_m = 2.5;
885 else if (!LRcorrect && isTubeHit) trt_ec_lr_m = 3.5;
◆ fillTRTHistograms()
void IDAlignMonResidualsAlg::fillTRTHistograms |
( |
int |
barrel_ec, |
|
|
int |
layer_or_wheel, |
|
|
int |
phi_module, |
|
|
float |
predictR, |
|
|
float |
hitR, |
|
|
float |
residualR, |
|
|
float |
pullR, |
|
|
bool |
isTubeHit, |
|
|
float |
trketa |
|
) |
| const |
|
private |
Filling EndCapA histograms
Definition at line 774 of file IDAlignMonResidualsAlg.cxx.
775 bool LRcorrect = (predictR * hitR > 0);
778 if (barrel_ec == -1) {
782 if (barrel_ec == 1 || barrel_ec == -1)
795 if (barrel_ec == 2 || barrel_ec == -2)
◆ filterPassed()
◆ 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 <<
"}.");
◆ getSiResiduals()
Definition at line 684 of file IDAlignMonResidualsAlg.cxx.
686 if (!
m_doPulls)
return StatusCode::FAILURE;
690 double residualX = -9999.0;
691 double residualY = -9999.0;
692 double pullX = -9999.0;
693 double pullY = -9999.0;
700 std::unique_ptr <Trk::TrackParameters> trackParameterUnbiased{};
704 std::unique_ptr <Trk::TrackParameters> trackParameterForResiduals{};
705 if(trackParameterUnbiased){
706 trackParameterForResiduals = std:: move(trackParameterUnbiased);
711 trackParameterForResiduals = std::move(uTrkPtr);
716 if (hit && trackParameterForResiduals) {
720 std::optional<Trk::ResidualPull> residualPull = std::nullopt;
728 residualX = residualPull->residual()[
Trk::loc1];
729 if(residualPull->isPullValid()) pullX = residualPull->pull()[
Trk::loc1];
731 ATH_MSG_DEBUG(
"ResidualPullCalculator finds invalid X Pull!!!");
732 sc = StatusCode::FAILURE;
735 if (residualPull->dimension() >= 2){
738 residualY = residualPull->residual()[
Trk::loc2];
741 if(residualPull->isPullValid()) pullY = residualPull->pull()[
Trk::loc2];
743 ATH_MSG_DEBUG(
"ResidualPullCalculator finds invalid Y Pull!!!");
744 sc = StatusCode::FAILURE;
750 sc = StatusCode::FAILURE;
764 if(pullX!=pullX || pullY!=pullY){
766 sc = StatusCode::FAILURE;
◆ 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.
◆ getUnbiasedTrackParameters()
Definition at line 901 of file IDAlignMonResidualsAlg.cxx.
904 std::unique_ptr <Trk::TrackParameters> TrackParams{};
905 std::unique_ptr <Trk::TrackParameters> UnbiasedTrackParams{};
906 std::unique_ptr <Trk::TrackParameters> PropagatedTrackParams{};
907 std::unique_ptr <Trk::TrackParameters> OtherSideUnbiasedTrackParams{};
910 bool trueUnbiased =
true;
920 if (hitOnTrack !=
nullptr) surfaceID = hitOnTrack->
identify();
924 if (surfaceID.is_valid() && trueUnbiased &&
m_idHelper->
is_sct(surfaceID)) {
931 IdentifierHash otherSideHash;
938 if (TempHitOnTrack !=
nullptr) {
941 OtherModuleSideHit = TempTsos;
946 if (OtherModuleSideHit) {
948 const AmgSymMatrix(5)* OMSHmeasuredTrackParameterCov = OMSHmeasuredTrackParameter ? OMSHmeasuredTrackParameter->covariance() :
nullptr;
951 if (OMSHmeasuredTrackParameterCov) {
952 ATH_MSG_VERBOSE(
"OtherSideTrackParameters: " << *(OtherModuleSideHit->trackParameters()) );
953 OtherSideUnbiasedTrackParams =
m_iUpdator->removeFromState(*(OtherModuleSideHit->trackParameters()),
954 OtherModuleSideHit->measurementOnTrack()->localParameters(),
955 OtherModuleSideHit->measurementOnTrack()->localCovariance());
957 if (OtherSideUnbiasedTrackParams) {
958 ATH_MSG_VERBOSE(
"Unbiased OtherSideTrackParameters: " << *OtherSideUnbiasedTrackParams);
961 const Trk::Surface* TempSurface = &(OtherModuleSideHit->measurementOnTrack()->associatedSurface());
972 ATH_MSG_VERBOSE(
"TempSurface->associatedLayer()->enclosingTrackingVolume exists");
979 Gaudi::Hive::currentContext(),
980 *OtherSideUnbiasedTrackParams,
987 ATH_MSG_VERBOSE(
"TempSurface->associatedLayer()->enclosingTrackingVolume does not exist");
993 ATH_MSG_VERBOSE(
"After OtherSide surface call. Surface does not exist");
997 if (PropagatedTrackParams) {
998 ATH_MSG_VERBOSE(
"Propagated Track Parameters: " << *PropagatedTrackParams);
1000 ATH_MSG_DEBUG(
"Propagation of unbiased OtherSideParameters failed");
1003 ATH_MSG_DEBUG(
"RemoveFromState did not work for OtherSideParameters");
1006 ATH_MSG_VERBOSE(
"No OtherModuleSideHit Measured Track Parameters found");
1014 if (!PropagatedTrackParams) {
1016 PropagatedTrackParams = std::move(uTrkPtr);
1019 UnbiasedTrackParams =
1021 ->removeFromState(*PropagatedTrackParams,
1025 if (UnbiasedTrackParams) {
1027 ATH_MSG_VERBOSE(
"Unbiased Trackparameters: " << *UnbiasedTrackParams);
1029 TrackParams = std::move(UnbiasedTrackParams);
1032 ATH_MSG_WARNING(
"RemoveFromState did not work, using original TrackParameters");
1035 TrackParams = std::move(uTrkPtr);
◆ initialize()
StatusCode IDAlignMonResidualsAlg::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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()
◆ 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;
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
◆ setupTools()
StatusCode IDAlignMonResidualsAlg::setupTools |
( |
| ) |
|
|
private |
Definition at line 1043 of file IDAlignMonResidualsAlg.cxx.
1075 return StatusCode::FAILURE;
1080 return StatusCode::FAILURE;
1084 ATH_MSG_DEBUG(
"No residual/pull calculator for general hit residuals configured.");
1085 ATH_MSG_DEBUG(
"It is recommended to give R/P calculators to the det-specific tool handle lists then.");
1093 ATH_MSG_DEBUG(
"Generic hit residuals&pulls will be calculated in one or both available local coordinates");
1098 ATH_MSG_DEBUG(
"No hit quality tool configured - not hit quality cuts will be imposed");
1105 ATH_MSG_DEBUG(
"Hit quality tool setup - hit quality cuts will be applied to Si hits");
1110 return StatusCode::SUCCESS;
◆ 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.
◆ trackRequiresRefit()
bool IDAlignMonResidualsAlg::trackRequiresRefit |
( |
const Trk::Track * |
track | ) |
const |
|
private |
Definition at line 1114 of file IDAlignMonResidualsAlg.cxx.
1124 int nHitsNoParams = 0;
1130 if(tsos ==
nullptr)
continue;
1136 if (mesh==
nullptr)
continue;
1138 if (hit==
nullptr)
continue;
1143 if(trackParameter==
nullptr) ++nHitsNoParams;
1147 ATH_MSG_DEBUG(
"Total nhits on track (excluding outliers) = " << nHits <<
", nhits without trackparameters = " << nHitsNoParams);
1149 if(nHitsNoParams>0) {
◆ 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()
◆ m_applyTrkSel
bool IDAlignMonResidualsAlg::m_applyTrkSel {} |
|
private |
◆ m_checkrate
int IDAlignMonResidualsAlg::m_checkrate {} |
|
private |
◆ 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_doHitQuality
bool IDAlignMonResidualsAlg::m_doHitQuality {false} |
|
private |
◆ m_doPulls
bool IDAlignMonResidualsAlg::m_doPulls {} |
|
private |
◆ m_DQFilterTools
ToolHandleArray<IDQFilterTool> AthMonitorAlgorithm::m_DQFilterTools {this,"FilterTools",{}} |
|
protectedinherited |
◆ m_dummy
◆ 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_extendedPlots
bool IDAlignMonResidualsAlg::m_extendedPlots {} |
|
private |
◆ m_fileKey
Gaudi::Property<std::string> AthMonitorAlgorithm::m_fileKey {this,"FileKey",""} |
|
protectedinherited |
◆ m_hitQualityTool
◆ m_idHelper
◆ m_iUpdator
◆ m_lbDurationDataKey
◆ m_lumiDataKey
◆ m_name
std::string AthMonitorAlgorithm::m_name |
|
privateinherited |
◆ m_nPixEClayers
const int IDAlignMonResidualsAlg::m_nPixEClayers {3} |
|
staticprivate |
◆ m_nSCTEClayers
const int IDAlignMonResidualsAlg::m_nSCTEClayers {9} |
|
staticprivate |
◆ m_nSiBlayers
const int IDAlignMonResidualsAlg::m_nSiBlayers {4} |
|
staticprivate |
◆ m_nTRTBlayers
const int IDAlignMonResidualsAlg::m_nTRTBlayers {3} |
|
staticprivate |
◆ m_nTRTEClayers
const int IDAlignMonResidualsAlg::m_nTRTEClayers {2} |
|
staticprivate |
◆ m_PIX_Mgr
◆ m_pixECAResidualX
std::vector<int> IDAlignMonResidualsAlg::m_pixECAResidualX |
|
private |
◆ m_pixECAResidualY
std::vector<int> IDAlignMonResidualsAlg::m_pixECAResidualY |
|
private |
◆ m_pixECCResidualX
std::vector<int> IDAlignMonResidualsAlg::m_pixECCResidualX |
|
private |
◆ m_pixECCResidualY
std::vector<int> IDAlignMonResidualsAlg::m_pixECCResidualY |
|
private |
◆ m_pixECResidualX_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_pixECResidualX_2DProf |
|
private |
◆ m_pixECResidualY_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_pixECResidualY_2DProf |
|
private |
◆ m_Pixel_Manager
std::string IDAlignMonResidualsAlg::m_Pixel_Manager |
|
private |
◆ m_pixelID
◆ m_pixPullX
std::vector<int> IDAlignMonResidualsAlg::m_pixPullX |
|
private |
◆ m_pixPullY
std::vector<int> IDAlignMonResidualsAlg::m_pixPullY |
|
private |
◆ m_pixResidualX
std::vector<int> IDAlignMonResidualsAlg::m_pixResidualX |
|
private |
◆ m_pixResidualX_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_pixResidualX_2DProf |
|
private |
◆ m_pixResidualXvsEta
std::vector<int> IDAlignMonResidualsAlg::m_pixResidualXvsEta |
|
private |
◆ m_pixResidualXvsPhi
std::vector<int> IDAlignMonResidualsAlg::m_pixResidualXvsPhi |
|
private |
◆ m_pixResidualY
std::vector<int> IDAlignMonResidualsAlg::m_pixResidualY |
|
private |
◆ m_pixResidualY_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_pixResidualY_2DProf |
|
private |
◆ m_pixResidualYvsEta
std::vector<int> IDAlignMonResidualsAlg::m_pixResidualYvsEta |
|
private |
◆ m_pixResidualYvsPhi
std::vector<int> IDAlignMonResidualsAlg::m_pixResidualYvsPhi |
|
private |
◆ m_propagator
◆ m_residualPullCalculator
◆ m_SCT_Manager
std::string IDAlignMonResidualsAlg::m_SCT_Manager |
|
private |
◆ m_SCT_Mgr
◆ m_sct_s0_ResidualX_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_sct_s0_ResidualX_2DProf |
|
private |
◆ m_sct_s1_ResidualX_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_sct_s1_ResidualX_2DProf |
|
private |
◆ m_sctECA_s0_ResidualX_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_sctECA_s0_ResidualX_2DProf |
|
private |
◆ m_sctECA_s1_ResidualX_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_sctECA_s1_ResidualX_2DProf |
|
private |
◆ m_sctECAResidualX_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_sctECAResidualX_2DProf |
|
private |
◆ m_sctECC_s0_ResidualX_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_sctECC_s0_ResidualX_2DProf |
|
private |
◆ m_sctECC_s1_ResidualX_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_sctECC_s1_ResidualX_2DProf |
|
private |
◆ m_sctECCResidualX_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_sctECCResidualX_2DProf |
|
private |
◆ m_sctID
◆ m_sctPullX
std::vector<int> IDAlignMonResidualsAlg::m_sctPullX |
|
private |
◆ m_sctResidualX
std::vector<int> IDAlignMonResidualsAlg::m_sctResidualX |
|
private |
◆ m_sctResidualX_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_sctResidualX_2DProf |
|
private |
◆ m_sctResidualXvsEta
std::vector<int> IDAlignMonResidualsAlg::m_sctResidualXvsEta |
|
private |
◆ m_sctResidualXvsPhi
std::vector<int> IDAlignMonResidualsAlg::m_sctResidualXvsPhi |
|
private |
◆ m_toolLookupMap
std::unordered_map<std::string, size_t> AthMonitorAlgorithm::m_toolLookupMap |
|
privateinherited |
◆ m_tools
◆ m_trackSelection
◆ m_tracksKey
◆ m_tracksName
◆ 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_trtBLR
std::vector<int> IDAlignMonResidualsAlg::m_trtBLR |
|
private |
◆ m_trtBLRVsPhiSec
std::vector<std::vector<int> > IDAlignMonResidualsAlg::m_trtBLRVsPhiSec |
|
private |
◆ m_trtBMeasuredR
std::vector<int> IDAlignMonResidualsAlg::m_trtBMeasuredR |
|
private |
◆ m_trtBPredictedR
std::vector<int> IDAlignMonResidualsAlg::m_trtBPredictedR |
|
private |
◆ m_trtBPullR
std::vector<int> IDAlignMonResidualsAlg::m_trtBPullR |
|
private |
◆ m_trtBPullRNoTube
std::vector<int> IDAlignMonResidualsAlg::m_trtBPullRNoTube |
|
private |
◆ m_trtBResidualR
std::vector<int> IDAlignMonResidualsAlg::m_trtBResidualR |
|
private |
◆ m_trtBResidualRNoTube
std::vector<int> IDAlignMonResidualsAlg::m_trtBResidualRNoTube |
|
private |
◆ m_trtBResVsEta
std::vector<std::vector<int> > IDAlignMonResidualsAlg::m_trtBResVsEta |
|
private |
◆ m_trtBResVsPhiSec
std::vector<std::vector<int> > IDAlignMonResidualsAlg::m_trtBResVsPhiSec |
|
private |
◆ m_trtcaldbTool
◆ m_trtECLR
std::vector<int> IDAlignMonResidualsAlg::m_trtECLR |
|
private |
◆ m_trtECLRVsPhiSec
std::vector<int> IDAlignMonResidualsAlg::m_trtECLRVsPhiSec |
|
private |
◆ m_trtECMeasuredR
std::vector<int> IDAlignMonResidualsAlg::m_trtECMeasuredR |
|
private |
◆ m_trtECPredictedR
std::vector<int> IDAlignMonResidualsAlg::m_trtECPredictedR |
|
private |
◆ m_trtECPullR
std::vector<int> IDAlignMonResidualsAlg::m_trtECPullR |
|
private |
◆ m_trtECPullRNoTube
std::vector<int> IDAlignMonResidualsAlg::m_trtECPullRNoTube |
|
private |
◆ m_trtECResidualR
std::vector<int> IDAlignMonResidualsAlg::m_trtECResidualR |
|
private |
◆ m_trtECResidualRNoTube
std::vector<int> IDAlignMonResidualsAlg::m_trtECResidualRNoTube |
|
private |
◆ m_trtECResVsEta
std::vector<int> IDAlignMonResidualsAlg::m_trtECResVsEta |
|
private |
◆ m_trtECResVsPhiSec
std::vector<int> IDAlignMonResidualsAlg::m_trtECResVsPhiSec |
|
private |
◆ m_trtID
◆ m_useLumi
Gaudi::Property<bool> AthMonitorAlgorithm::m_useLumi {this,"EnableLumi",false} |
|
protectedinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_vTrigChainNames
std::vector<std::string> AthMonitorAlgorithm::m_vTrigChainNames |
|
protectedinherited |
The documentation for this class was generated from the following files:
std::vector< int > m_trtECResVsEta
def retrieve(aClass, aKey=None)
std::string m_Pixel_Manager
bool is_pixel(Identifier id) const
std::vector< int > m_trtBPredictedR
const TrackParameters * trackParameters() const
return ptr to trackparameters const overload
std::vector< int > m_pixPullY
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
std::vector< int > m_trtECLR
SG::ReadHandleKey< TrackCollection > m_tracksKey
ToolHandle< IInDetAlignHitQualSelTool > m_hitQualityTool
std::vector< std::vector< int > > m_trtBLRVsPhiSec
std::vector< int > m_trtBResidualR
std::vector< int > m_pixECCResidualX
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
std::vector< int > m_pixPullX
std::vector< int > m_sctECAResidualX_2DProf
bool is_sct(Identifier id) const
static const int m_nTRTEClayers
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::unique_ptr< ParametersBase< DIM, T > > uniqueClone() const
clone method for polymorphic deep copy returning unique_ptr; it is not overriden, but uses the existi...
const Trk::TrackStates * trackStateOnSurfaces() const
return a pointer to a const DataVector of const TrackStateOnSurfaces.
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
SG::ReadHandleKey< TrackCollection > m_tracksName
std::vector< int > m_sctECA_s0_ResidualX_2DProf
ToolHandle< Trk::IPropagator > m_propagator
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.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< int > m_trtECResidualRNoTube
std::vector< int > m_trtECResidualR
static const int m_nPixEClayers
std::vector< int > m_pixECCResidualY
ToolHandle< Trk::IResidualPullCalculator > m_residualPullCalculator
The residual and pull calculator tool handle.
std::unordered_map< std::string, size_t > m_toolLookupMap
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
const MeasurementBase * measurementOnTrack() const
returns MeasurementBase const overload
@ loc2
generic first and second local coordinate
StatusCode getSiResiduals(const Trk::Track *, const Trk::TrackStateOnSurface *, bool, double *) const
std::vector< int > m_sctResidualX
std::vector< int > m_sctResidualXvsPhi
std::vector< int > m_sctResidualX_2DProf
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)
std::vector< int > m_trtBPullR
std::vector< int > m_trtECPullRNoTube
std::vector< int > m_sct_s1_ResidualX_2DProf
void fillTRTHistograms(int barrel_ec, int layer_or_wheel, int phi_module, float predictR, float hitR, float residualR, float pullR, bool isTubeHit, float trketa) const
std::vector< int > m_trtECLRVsPhiSec
#define AmgSymMatrix(dim)
std::vector< std::vector< int > > m_trtBResVsEta
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
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
const InDetDD::PixelDetectorManager * m_PIX_Mgr
const InDetDD::SCT_DetectorManager * m_SCT_Mgr
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
std::vector< int > m_sctResidualXvsEta
std::vector< int > m_pixResidualX_2DProf
std::vector< int > m_pixECResidualX_2DProf
std::vector< int > m_trtBPullRNoTube
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
std::vector< int > m_pixECAResidualX
void doFill(H *hist, W weight, size_t i, const M &m1, const Ms &... m)
Perform (arbitrary dimension) histogram fill with weight.
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
ToolHandle< Trk::IUpdator > m_iUpdator
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
std::vector< int > m_pixResidualYvsEta
Generic monitoring tool for athena components.
std::vector< int > m_trtECPullR
std::vector< int > m_trtBMeasuredR
::StatusCode StatusCode
StatusCode definition for legacy code.
void fillTRTEndcapHistograms(int barrel_ec, int phi_module, float predictR, float hitR, float residualR, float pullR, bool LRcorrect, bool isTubeHit, float trketa) const
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.
std::vector< int > m_trtECResVsPhiSec
std::vector< int > m_pixECAResidualY
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
std::vector< int > m_trtBLR
std::vector< int > m_sctECA_s1_ResidualX_2DProf
std::vector< int > m_trtECPredictedR
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
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.
AthConfigFlags cosmics(AthConfigFlags flags, str instanceName, str recoMode)
std::string m_SCT_Manager
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int get_other_side(const IdentifierHash &id, IdentifierHash &other) const
Wafer hash on other side.
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
int layer_or_wheel(const Identifier &id) const
std::vector< int > m_pixECResidualY_2DProf
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
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::vector< int > m_pixResidualX
int eta_module(const Identifier &id) const
std::vector< int > m_trtECMeasuredR
std::unique_ptr< Trk::TrackParameters > getUnbiasedTrackParameters(const Trk::Track *, const Trk::TrackStateOnSurface *) const
represents the track state (measurement, material, fit parameters and quality) at a surface.
virtual const Surface & associatedSurface() const =0
Interface method to get the associated Surface.
ToolHandle< ITRT_CalDbTool > m_trtcaldbTool
int layer_disk(const Identifier &id) const
std::vector< int > m_sct_s0_ResidualX_2DProf
Gaudi::Property< bool > m_enforceExpressTriggers
static const int m_nSiBlayers
int phi_module(const Identifier &id) const
static const int m_nTRTBlayers
virtual float lbAverageInteractionsPerCrossing(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Calculate the average mu, i.e.
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
virtual StatusCode initialize() override
initialize
void fillTRTBarrelHistograms(int barrel_ec, int layer_or_wheel, int phi_module, float predictR, float hitR, float residualR, float pullR, bool LRcorrect, bool isTubeHit, float trketa) const
const Trk::Layer * associatedLayer() const
return the associated Layer
std::vector< int > m_pixResidualYvsPhi
std::vector< int > m_sctPullX
bool trackRequiresRefit(const Trk::Track *) const
std::vector< int > m_pixResidualXvsPhi
std::vector< std::vector< int > > m_trtBResVsPhiSec
std::vector< int > m_pixResidualY_2DProf
accumulate
Update flags based on parser line args.
@ Biased
RP with track state including the hit.
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
#define ATH_MSG_WARNING(x)
std::vector< int > m_trtBResidualRNoTube
ToolHandle< InDet::IInDetTrackSelectionTool > m_trackSelection
std::vector< int > m_sctECCResidualX_2DProf
Identifier identify() const
return the identifier -extends MeasurementBase
int eta_module(const Identifier &id) const
const TrackingVolume * enclosingTrackingVolume() const
get the confining TrackingVolume
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
const PixelID * m_pixelID
std::vector< int > m_sctECC_s1_ResidualX_2DProf
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::vector< int > m_sctECC_s0_ResidualX_2DProf
virtual StatusCode sysInitialize() override
Override sysInitialize.
int side(const Identifier &id) const
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.
std::vector< int > m_pixResidualXvsEta
static const int m_nSCTEClayers
int phi_module(const Identifier &id) const
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
std::vector< int > m_pixResidualY
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const AtlasDetectorID * m_idHelper
const ToolHandle< GenericMonitoringTool > & getGroup(const std::string &name) const
Get a specific monitoring tool from the tool handle array.
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.