 |
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, V, H > &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, float qpT) 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 layer_or_wheel, int phi_module, float predictR, float hitR, float residualR, float pullR, bool LRcorrect, bool isTubeHit, float trketa, float qpT) 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, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &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 147 of file IDAlignMonResidualsAlg.cxx.
154 auto residualGroup =
getGroup(
"Residuals");
157 bool hasBeenCalledThisEvent=
false;
163 if (!hasBeenCalledThisEvent){
166 hasBeenCalledThisEvent=
true;
172 fill(
"residualGroup", mu_m);
177 if (not tracks.isValid()) {
179 return StatusCode::RECOVERABLE;
183 ATH_MSG_DEBUG (
"IDAlignMonResidual: Start loop on tracks. Number of tracks " << tracks->size());
187 if ( !trksItr || trksItr->perigeeParameters() ==
nullptr ) {
188 ATH_MSG_DEBUG(
"InDetAlignmentMonitoringRun3: NULL track pointer in collection" );
200 ATH_MSG_DEBUG(
"Not all TSOS contain track parameters - will be missing residuals/pulls");
203 ATH_MSG_DEBUG(
"All TSOS of track " << nTracks <<
"/" << tracks->size() <<
" contain track parameters - Good!");
207 ATH_MSG_DEBUG(
"** IDAlignMonResiduals::fillHistograms() ** track: " << nTracks <<
" has " << trksItr->trackStateOnSurfaces()->size() <<
" TrkSurfaces");
212 const Trk::Perigee* measPer = trksItr->perigeeParameters();
213 float charge = 1;
if (measPer->charge() < 0)
charge = -1;
215 trkpt = measPer->pT()/1000.;
223 if (tsos ==
nullptr) {
229 ATH_MSG_DEBUG(
" --> testing if hit " << nTSOS <<
"/" << trksItr->trackStateOnSurfaces()->size() <<
" is a track measurement");
231 ATH_MSG_DEBUG(
"Skipping TSOS " << nTSOS <<
" because it is an outlier (or the first TSOS on the track)");
236 ATH_MSG_DEBUG(
" --> Defined hit measurementOnTrack() for hit: " << nTSOS <<
"/" << trksItr->trackStateOnSurfaces()->size() <<
" of track " << nTracks);
240 ATH_MSG_DEBUG(
" --> Going to retrive the Trk::RIO_OnTrack for hit " << nTSOS);
243 if (nHits >0)
ATH_MSG_DEBUG(
"No hit associated with TSOS " << nTSOS);
247 ATH_MSG_DEBUG(
" --> Going to retrive the track parameters of this TSOS: " << nTSOS);
249 if(trackParameter==
nullptr) {
251 ATH_MSG_DEBUG(
" Skipping TSOS " << nTSOS <<
" because it does not have TrackParameters");
255 const AmgSymMatrix(5)* TrackParCovariance = trackParameter ? trackParameter->covariance() :
nullptr;
257 if(TrackParCovariance==
nullptr) {
260 ATH_MSG_DEBUG(
"Skipping TSOS " << nTSOS <<
" because does not have MeasuredTrackParameters");
265 " --> going to define residuals and everything of TSOS #" << nTSOS <<
"/" <<
266 trksItr->trackStateOnSurfaces()->size());
268 float residualX = 9999.0;
269 float residualY = 9999.0;
270 float pullX = 9999.0;
271 float pullY = 9999.0;
272 float biasedResidualX = 9999.0;
273 float biasedResidualY = 9999.0;
278 int layer_or_wheel = 99;
290 if ( detType == 99) {
291 ATH_MSG_DEBUG(
" --> Hit " << nTSOS <<
" with detector type " << detType <<
" is not an Inner Detector hit -> skip this hit");
297 ATH_MSG_DEBUG(
"** IDAlignMonResidualsAlg::fillHistograms() ** Hit is from the TRT, finding residuals... ");
301 if (!trackParameter) {
302 ATH_MSG_WARNING(
"No TrackParameters associated with TRT TrkSurface " << nTSOS);
306 float trketa = tsos->trackParameters()->eta();
315 ATH_MSG_DEBUG(
"Found Trk::TrackParameters for hit " << nTSOS <<
" --> TRT hit (detType= " << detType <<
")" );
321 if (!trackParameterUnbiased) {
322 ATH_MSG_WARNING(
"Cannot define unbiased parameters for hit, skipping it.");
325 ATH_MSG_DEBUG(
" --> TRT UnBiased TrackParameters of hit " << nTSOS <<
" FOUND");
327 float predictR = trackParameterUnbiased->parameters()[
Trk::locR];
330 std::optional<Trk::ResidualPull> residualPull =
332 trackParameterUnbiased.get(),
339 ATH_MSG_DEBUG(
" no covariance of the track parameters given, can not calculate pull!");
344 float residualR = hitR - predictR;
349 if (trtCircle !=
nullptr) {
350 ATH_MSG_DEBUG(
" fillHistograms() ** filling TRT histograms for hit/tsos #" << nTSOS
351 <<
" Barrel/EndCap: " << barrel_ec
352 <<
" layer/wheel: " << layer_or_wheel
353 <<
" phi: " << phi_module
354 <<
" Residual: " << residualR);
371 ATH_MSG_DEBUG(
"applying hit quality cuts to Silicon hit...");
379 else ATH_MSG_DEBUG(
"hit quality cuts NOT APPLIED to Silicon hit.");
401 ATH_MSG_DEBUG(
"Found Trk::TrackParameters " << trackParameter);
403 double unbiasedResXY[4] = {9999.0,9999.0,9999.0,9999.0};
404 double biasedResXY[4] = {9999.0,9999.0,9999.0,9999.0};
409 if (
sc.isFailure()) {
410 ATH_MSG_DEBUG(
"Problem in determining unbiased residuals! Hit is skipped.");
412 fill(residualGroup, detType_m);
418 residualX = (
float)unbiasedResXY[0];
419 residualY = (
float)unbiasedResXY[1];
420 pullX = (
float)unbiasedResXY[2];
421 pullY = (
float)unbiasedResXY[3];
425 if (
sc.isFailure()) {
426 ATH_MSG_DEBUG(
"Problem in determining biased residuals! Hit is skipped.");
432 biasedResidualX = (
float)biasedResXY[0];
433 biasedResidualY = (
float)biasedResXY[1];
437 ATH_MSG_DEBUG(
"No TrackParameters associated with Si TrkSurface "<< nTSOS <<
" - Hit is probably an outlier");
472 ATH_MSG_DEBUG(
" This is a PIXEL hit " << hitId <<
" - filling histograms");
474 si_residualx_m = residualX;
475 fill(residualGroup, si_residualx_m);
478 int ModEtaShift[4] = {0, 30, 53, 76};
479 int ModPhiShift[4] = {0, 24, 56, 104};
482 si_b_residualx_m = residualX;
483 fill(residualGroup, si_b_residualx_m);
485 layerDisk_si_m = layerDisk;
486 si_barrel_resX_m = residualX;
487 si_barrel_resY_m = residualY;
488 si_barrel_pullX_m = pullX;
489 si_barrel_pullY_m = pullY;
490 fill(residualGroup, layerDisk_si_m, si_barrel_resX_m, si_barrel_resY_m, si_barrel_pullX_m, si_barrel_pullY_m);
497 fill(residualGroup, pix_b_residualx_m, pix_b_biased_residualx_m, pix_b_residualy_m, pix_b_biased_residualy_m);
517 auto modPhiShift_barrel_m =
Monitored::Scalar<int>(
"m_modPhiShift_barrel", modPhi + ModPhiShift[layerDisk] );
518 auto modEtaShift_barrel_m =
Monitored::Scalar<int>(
"m_modEtaShift_barrel", modEta + ModEtaShift[layerDisk] );
519 fill(residualGroup, modPhiShift_barrel_m, residualX_barrel_m, residualY_barrel_m);
520 fill(residualGroup, modEtaShift_barrel_m, residualX_barrel_m, residualY_barrel_m);
522 else if(barrelEC==2){
523 int ModPhiShift[3] = {0, 55, 110};
526 layerDisk_si_m = layerDisk;
527 si_eca_resX_m = residualX;
528 si_eca_resY_m = residualY;
529 si_eca_pullX_m = pullX;
530 si_eca_pullY_m = pullY;
531 fill(residualGroup, layerDisk_si_m, si_eca_resX_m, si_eca_resY_m, si_eca_pullX_m, si_eca_pullY_m);
539 fill(residualGroup, pix_eca_residualx_m, pix_eca_residualy_m);
543 fill(residualGroup, pix_eca_pullx_m, pix_eca_pully_m);
551 fill(residualGroup, modPhiShift_eca_m, residualX_eca_m, residualY_eca_m);
553 else if(barrelEC==-2){
554 int ModPhiShift[3] = {0, 55, 110};
557 layerDisk_si_m = layerDisk;
558 si_ecc_resX_m = residualX;
559 si_ecc_resY_m = residualY;
560 si_ecc_pullX_m = pullX;
561 si_ecc_pullY_m = pullY;
562 fill(residualGroup, layerDisk_si_m, si_ecc_resX_m, si_ecc_resY_m, si_ecc_pullX_m, si_ecc_pullY_m);
570 fill(residualGroup, pix_ecc_residualx_m, pix_ecc_residualy_m);
574 fill(residualGroup, pix_ecc_pullx_m, pix_ecc_pully_m);
582 fill(residualGroup, modPhiShift_ecc_m, residualX_ecc_m, residualY_ecc_m);
585 else if (detType==1) {
586 si_residualx_m = residualX;
587 fill(residualGroup, si_residualx_m);
589 ATH_MSG_DEBUG(
" This is a SCT hit " << hitId <<
" - filling histograms");
592 int ModPhiShift[4] = {0, 42, 92, 150};
593 int ModEtaShift[4] = {0, 23, 46, 69};
596 si_b_residualx_m = residualX;
597 fill(residualGroup, si_b_residualx_m);
599 layerDisk_si_m = 4 + 2 * layerDisk + sctSide;
600 si_barrel_resX_m = residualX;
601 si_barrel_pullX_m = pullX;
602 fill(residualGroup, layerDisk_si_m, si_barrel_resX_m, si_barrel_pullX_m);
606 fill(residualGroup, sct_b_residualx_m);
624 auto modPhiShift_sct_barrel_m =
Monitored::Scalar<int>(
"m_modPhiShift_sct_barrel", modPhi + ModPhiShift[layerDisk] );
625 auto modEtaShift_sct_barrel_m =
Monitored::Scalar<int>(
"m_modEtaShift_sct_barrel", modEta + ModEtaShift[layerDisk] );
626 fill(residualGroup, modPhiShift_sct_barrel_m, modEtaShift_sct_barrel_m, residualX_sct_barrel_m);
629 else if(barrelEC==2){
634 layerDisk_si_m = 3 + 2 * layerDisk + sctSide;
635 si_eca_resX_m = residualX;
636 si_eca_pullX_m = pullX;
637 fill(residualGroup, layerDisk_si_m, si_eca_resX_m, si_eca_pullX_m);
643 fill(residualGroup, sct_eca_residualx_m, sct_eca_pullx_m);
652 auto modPhiShift_sct_eca_m =
Monitored::Scalar<int>(
"m_modPhiShift_sct_eca", modPhi + layerDisk * (gap_sct + Nmods) );
653 fill(residualGroup, modPhiShift_sct_eca_m, residualX_sct_eca_m);
656 else if(barrelEC==-2){
661 layerDisk_si_m = 3 + 2 * layerDisk + sctSide;
662 si_ecc_resX_m = residualX;
663 si_ecc_pullX_m = pullX;
664 fill(residualGroup, layerDisk_si_m, si_ecc_resX_m, si_ecc_pullX_m);
670 fill(residualGroup, sct_ecc_residualx_m, sct_ecc_pullx_m);
679 auto modPhiShift_sct_ecc_m =
Monitored::Scalar<int>(
"m_modPhiShift_sct_ecc", modPhi + layerDisk * (gap_sct + Nmods) );
680 fill(residualGroup, modPhiShift_sct_ecc_m, residualX_sct_ecc_m);
690 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 822 of file IDAlignMonResidualsAlg.cxx.
828 else if (
side == 1 && barrel_ec == 1)
doFill =
true;
829 else if (
side == 2 && barrel_ec == -1)
doFill =
true;
850 if (LRcorrect && !isTubeHit) trt_b_lr_m = 0.5;
851 if (LRcorrect && isTubeHit) trt_b_lr_m = 1.5;
852 if (!LRcorrect && !isTubeHit) trt_b_lr_m = 2.5;
853 if (!LRcorrect && isTubeHit) trt_b_lr_m = 3.5;
861 trt_b_lrVsPhiSec_m = LRcorrect;
◆ fillTRTEndcapHistograms()
void IDAlignMonResidualsAlg::fillTRTEndcapHistograms |
( |
int |
barrel_ec, |
|
|
int |
layer_or_wheel, |
|
|
int |
phi_module, |
|
|
float |
predictR, |
|
|
float |
hitR, |
|
|
float |
residualR, |
|
|
float |
pullR, |
|
|
bool |
LRcorrect, |
|
|
bool |
isTubeHit, |
|
|
float |
trketa, |
|
|
float |
qpT |
|
) |
| const |
|
private |
Definition at line 869 of file IDAlignMonResidualsAlg.cxx.
870 for (
unsigned int endcap = 0; endcap < 2; ++endcap) {
872 if (!endcap && barrel_ec == 2)
doFill =
true;
873 else if (endcap && barrel_ec == -2)
doFill =
true;
899 if (LRcorrect && !isTubeHit) trt_ec_lr_m = 0.5;
900 else if (LRcorrect && isTubeHit) trt_ec_lr_m = 1.5;
901 else if (!LRcorrect && !isTubeHit) trt_ec_lr_m = 2.5;
902 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, |
|
|
float |
qpT |
|
) |
| const |
|
private |
Filling EndCapA histograms
Definition at line 784 of file IDAlignMonResidualsAlg.cxx.
785 bool LRcorrect = (predictR * hitR > 0);
788 if (barrel_ec == -1) {
792 if (barrel_ec == 1 || barrel_ec == -1)
805 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 694 of file IDAlignMonResidualsAlg.cxx.
696 if (!
m_doPulls)
return StatusCode::FAILURE;
700 double residualX = -9999.0;
701 double residualY = -9999.0;
702 double pullX = -9999.0;
703 double pullY = -9999.0;
710 std::unique_ptr <Trk::TrackParameters> trackParameterUnbiased{};
714 std::unique_ptr <Trk::TrackParameters> trackParameterForResiduals{};
715 if(trackParameterUnbiased){
716 trackParameterForResiduals = std:: move(trackParameterUnbiased);
721 trackParameterForResiduals = std::move(uTrkPtr);
726 if (hit && trackParameterForResiduals) {
730 std::optional<Trk::ResidualPull> residualPull = std::nullopt;
738 residualX = residualPull->residual()[
Trk::loc1];
739 if(residualPull->isPullValid()) pullX = residualPull->pull()[
Trk::loc1];
741 ATH_MSG_DEBUG(
"ResidualPullCalculator finds invalid X Pull!!!");
742 sc = StatusCode::FAILURE;
745 if (residualPull->dimension() >= 2){
748 residualY = residualPull->residual()[
Trk::loc2];
751 if(residualPull->isPullValid()) pullY = residualPull->pull()[
Trk::loc2];
753 ATH_MSG_DEBUG(
"ResidualPullCalculator finds invalid Y Pull!!!");
754 sc = StatusCode::FAILURE;
760 sc = StatusCode::FAILURE;
774 if(pullX!=pullX || pullY!=pullY){
776 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 918 of file IDAlignMonResidualsAlg.cxx.
921 std::unique_ptr <Trk::TrackParameters> TrackParams{};
922 std::unique_ptr <Trk::TrackParameters> UnbiasedTrackParams{};
923 std::unique_ptr <Trk::TrackParameters> PropagatedTrackParams{};
924 std::unique_ptr <Trk::TrackParameters> OtherSideUnbiasedTrackParams{};
927 bool trueUnbiased =
true;
937 if (hitOnTrack !=
nullptr) surfaceID = hitOnTrack->
identify();
941 if (surfaceID.is_valid() && trueUnbiased &&
m_idHelper->
is_sct(surfaceID)) {
948 IdentifierHash otherSideHash;
955 if (TempHitOnTrack !=
nullptr) {
958 OtherModuleSideHit = TempTsos;
963 if (OtherModuleSideHit) {
965 const AmgSymMatrix(5)* OMSHmeasuredTrackParameterCov = OMSHmeasuredTrackParameter ? OMSHmeasuredTrackParameter->covariance() :
nullptr;
968 if (OMSHmeasuredTrackParameterCov) {
969 ATH_MSG_VERBOSE(
"OtherSideTrackParameters: " << *(OtherModuleSideHit->trackParameters()) );
970 OtherSideUnbiasedTrackParams =
m_iUpdator->removeFromState(*(OtherModuleSideHit->trackParameters()),
971 OtherModuleSideHit->measurementOnTrack()->localParameters(),
972 OtherModuleSideHit->measurementOnTrack()->localCovariance());
974 if (OtherSideUnbiasedTrackParams) {
975 ATH_MSG_VERBOSE(
"Unbiased OtherSideTrackParameters: " << *OtherSideUnbiasedTrackParams);
978 const Trk::Surface* TempSurface = &(OtherModuleSideHit->measurementOnTrack()->associatedSurface());
989 ATH_MSG_VERBOSE(
"TempSurface->associatedLayer()->enclosingTrackingVolume exists");
996 Gaudi::Hive::currentContext(),
997 *OtherSideUnbiasedTrackParams,
1004 ATH_MSG_VERBOSE(
"TempSurface->associatedLayer()->enclosingTrackingVolume does not exist");
1010 ATH_MSG_VERBOSE(
"After OtherSide surface call. Surface does not exist");
1014 if (PropagatedTrackParams) {
1015 ATH_MSG_VERBOSE(
"Propagated Track Parameters: " << *PropagatedTrackParams);
1017 ATH_MSG_DEBUG(
"Propagation of unbiased OtherSideParameters failed");
1020 ATH_MSG_DEBUG(
"RemoveFromState did not work for OtherSideParameters");
1023 ATH_MSG_VERBOSE(
"No OtherModuleSideHit Measured Track Parameters found");
1031 if (!PropagatedTrackParams) {
1033 PropagatedTrackParams = std::move(uTrkPtr);
1036 UnbiasedTrackParams =
1038 ->removeFromState(*PropagatedTrackParams,
1042 if (UnbiasedTrackParams) {
1044 ATH_MSG_VERBOSE(
"Unbiased Trackparameters: " << *UnbiasedTrackParams);
1046 TrackParams = std::move(UnbiasedTrackParams);
1049 ATH_MSG_WARNING(
"RemoveFromState did not work, using original TrackParameters");
1052 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 1060 of file IDAlignMonResidualsAlg.cxx.
1092 return StatusCode::FAILURE;
1097 return StatusCode::FAILURE;
1101 ATH_MSG_DEBUG(
"No residual/pull calculator for general hit residuals configured.");
1102 ATH_MSG_DEBUG(
"It is recommended to give R/P calculators to the det-specific tool handle lists then.");
1110 ATH_MSG_DEBUG(
"Generic hit residuals&pulls will be calculated in one or both available local coordinates");
1115 ATH_MSG_DEBUG(
"No hit quality tool configured - not hit quality cuts will be imposed");
1122 ATH_MSG_DEBUG(
"Hit quality tool setup - hit quality cuts will be applied to Si hits");
1127 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 1131 of file IDAlignMonResidualsAlg.cxx.
1141 int nHitsNoParams = 0;
1147 if(tsos ==
nullptr)
continue;
1153 if (mesh==
nullptr)
continue;
1155 if (hit==
nullptr)
continue;
1160 if(trackParameter==
nullptr) ++nHitsNoParams;
1164 ATH_MSG_DEBUG(
"Total nhits on track (excluding outliers) = " << nHits <<
", nhits without trackparameters = " << nHitsNoParams);
1166 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_trtECResVsPt_2DProf
std::vector<int> IDAlignMonResidualsAlg::m_trtECResVsPt_2DProf |
|
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
void fillTRTHistograms(int barrel_ec, int layer_or_wheel, int phi_module, float predictR, float hitR, float residualR, float pullR, bool isTubeHit, float trketa, float qpT) const
std::vector< int > m_sctECAResidualX_2DProf
bool is_sct(Identifier id) const
static const int m_nTRTEClayers
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.
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
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
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
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
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.
void fillTRTEndcapHistograms(int barrel_ec, int layer_or_wheel, int phi_module, float predictR, float hitR, float residualR, float pullR, bool LRcorrect, bool isTubeHit, float trketa, float qpT) const
std::vector< int > m_trtECPullR
std::vector< int > m_trtBMeasuredR
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
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.
std::vector< int > m_trtECResVsPt_2DProf
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.
double charge(const T &p)
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
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.