ATLAS Offline Software
|
Class monitoring one silicon layer. More...
#include <AFPSiLayerMonitor.h>
Public Member Functions | |
AFPSiLayerMonitor (const std::string &type, const std::string &name, const IInterface *parent) | |
Declares python properites. More... | |
~AFPSiLayerMonitor () | |
Does nothing More... | |
StatusCode | initialize () override |
Constructs m_layerFullName from m_stationID and m_pixelLayerID. More... | |
StatusCode | finalize () override |
Does nothing. More... | |
void | setParentMonitor (AFPHitsMonitorTool *parent) override |
Sets variable storing pointer to the main monitoring object. More... | |
void | bookHistograms (ManagedMonitorToolBase *toolToStoreHistograms, const std::string &histsDirName="") override |
Creates, adds axes descriptions and books histograms filled by this monitor. More... | |
void | fillHistograms (const xAOD::AFPSiHit &hit) override |
Fills histograms which have to be filled for each hit. More... | |
void | eventEnd () override |
Method that should be called when event processing is finished. More... | |
void | endOfLumiBlock () override |
Process histograms at the end of lumiblock. More... | |
int | layerID () const override |
Pixel plane ID number. More... | |
std::string | makeHistName (const std::string &name) const override |
Returns a name suffixed with station and layer numbers. More... | |
std::string | makeHistTitle (const std::string &title) const override |
Returns a title suffixed with station and layer numbers. More... | |
const std::string & | histsDirName () const override |
Returns name of the ROOT file directory where histograms are stored. More... | |
const std::string & | layerFullName () const override |
Returns layer and station name used to label bins in summary histograms. More... | |
virtual double | correctHitsForPileUp (double hits) const override |
Normalises number of hits in an event to 0 pile-up. More... | |
double | hitsInEvent () const override |
Number of pixels fired in an event. More... | |
double | hitsInEventScaled () const override |
Returns number of pixels fired in an event corrected for pile-up. More... | |
double | hitsInEventHotSpot () const override |
Number of pixels fired in an event in a hot-spot. More... | |
double | hitsInEventHotSpotScaled () const override |
Number of hits in hot-spot corrected for pile-up. More... | |
ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | evtStore () const |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More... | |
virtual StatusCode | sysInitialize () override |
Perform system initialization for an algorithm. 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 |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Protected Member Functions | |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
Add StoreName to extra input/output deps as needed. More... | |
Protected Attributes | |
int | m_pixelLayerID |
ID number of the silicon pixel layer. More... | |
int | m_stationID |
ID number of the station where the pixel layer is mounted. More... | |
std::string | m_layerFullName |
Layer and station name used to label summary histograms bins. More... | |
AFPHitsMonitorTool * | m_parentMonitor |
Pointer to the parent monitoring tool. More... | |
std::string | m_histsDirName |
Name of the ROOT file directory where histograms will be saved. More... | |
double | m_hitsScaleFactor |
Factor for correcting number of hits for pile-up (see AFPSiLayerMonitor::correctHitsForPileUp() More... | |
unsigned int | m_hitsInEvent |
Number of counted pixels fired in the current event. More... | |
LWHist2D * | m_hitMap |
2D distribution of hits in a layer row vs column (336 x 80) More... | |
TH1 * | m_hitMultiplicity |
Distribution of number of hits in an event. More... | |
TH1 * | m_timeOverThreshold |
Distribution of number of time-over-threshold i.e. signal strength for each hit. More... | |
int | m_hotSpotStartRow |
Defines the first row of a hot spot (including this row). More... | |
int | m_hotSpotEndRow |
Defines the last row of a hot spot (including this row). More... | |
int | m_hotSpotStartCol |
Defines the first column of a hot spot (including this column). More... | |
int | m_hotSpotEndCol |
Defines the last column of a hot spot (including this column). More... | |
unsigned int | m_hitsInEventHotSpot |
Counts number of hits in a hot-spot in an event. More... | |
TH1 * | m_hitMultiplicityHotSpot |
Distribution of number of hits in a hot-spot in an event. More... | |
Private Types | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Private Attributes | |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
StoreGateSvc_t | m_detStore |
Pointer to StoreGate (detector store by default) More... | |
std::vector< SG::VarHandleKeyArray * > | m_vhka |
bool | m_varHandleArraysDeclared |
Class monitoring one silicon layer.
Python properties:
pixelLayerID
- ID number of pixel layer m_pixelLayerID (default: -1)stationID
- ID number of station in which is the monitored layer m_stationID (default: -1)hitsScaleFactor
- Scale factor for normalising hits in event to pile-up m_hitsScaleFactor (default: 0.04) hotSpotStartRow
- First row of the hot-spot (included in the hot-spot) m_hotSpotStartRow (default: 0)hotSpotEndRow
- Last row of the hot-spot (included in the hot-spot) m_hotSpotEndRow (default: 50)hotSpotStartCol
- First column of the hot-spot (included in the hot-spot) m_hotSpotStartCol (default: 0)hotSpotEndCol
- Last column of the hot-spot (included in the hot-spot) m_hotSpotEndCol (default: 30) Definition at line 31 of file AFPSiLayerMonitor.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
AFPSiLayerMonitor::AFPSiLayerMonitor | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Declares python properites.
Definition at line 18 of file AFPSiLayerMonitor.cxx.
AFPSiLayerMonitor::~AFPSiLayerMonitor | ( | ) |
|
overridevirtual |
Creates, adds axes descriptions and books histograms filled by this monitor.
Implements IAFPSiLayerMonitor.
Definition at line 64 of file AFPSiLayerMonitor.cxx.
|
overridevirtual |
Normalises number of hits in an event to 0 pile-up.
The output is calculated according to the following formula
\[ n_{\textrm{corr}} = n_{\textrm{obs}} - a*\mu \]
where:
Implements IAFPSiLayerMonitor.
Definition at line 190 of file AFPSiLayerMonitor.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
|
overridevirtual |
Process histograms at the end of lumiblock.
Does nothing
Reimplemented from IAFPSiLayerMonitor.
Definition at line 166 of file AFPSiLayerMonitor.cxx.
|
overridevirtual |
Method that should be called when event processing is finished.
It fills histograms with "events" on Y axis. It also fills summary histograms from AFPHitsMonitorTool::m_summaryManager in m_parentMonitor.
Reimplemented from IAFPSiLayerMonitor.
Definition at line 153 of file AFPSiLayerMonitor.cxx.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
overridevirtual |
Fills histograms which have to be filled for each hit.
These are histograms with "number of hits" on Y axis. It also fills summary histograms from AFPHitsMonitorTool::m_summaryManager in m_parentMonitor
Implements IAFPSiLayerMonitor.
Definition at line 136 of file AFPSiLayerMonitor.cxx.
|
overridevirtual |
|
inlineoverridevirtual |
Returns name of the ROOT file directory where histograms are stored.
Implements IAFPSiLayerMonitor.
Definition at line 92 of file AFPSiLayerMonitor.h.
|
inlineoverridevirtual |
Number of pixels fired in an event.
Implements IAFPSiLayerMonitor.
Definition at line 111 of file AFPSiLayerMonitor.h.
|
inlineoverridevirtual |
Number of pixels fired in an event in a hot-spot.
The hot-spot is defined by: m_hotSpotStartRow, m_hotSpotEndRow, m_hotSpotStartCol, m_hotSpotEndCol. Definition includes boundries i.e. <= and >= are used.
Implements IAFPSiLayerMonitor.
Definition at line 124 of file AFPSiLayerMonitor.h.
|
inlineoverridevirtual |
Number of hits in hot-spot corrected for pile-up.
Implements IAFPSiLayerMonitor.
Definition at line 127 of file AFPSiLayerMonitor.h.
|
inlineoverridevirtual |
Returns number of pixels fired in an event corrected for pile-up.
Implements IAFPSiLayerMonitor.
Definition at line 114 of file AFPSiLayerMonitor.h.
|
overridevirtual |
Constructs m_layerFullName from m_stationID and m_pixelLayerID.
Implements IAFPSiLayerMonitor.
Definition at line 47 of file AFPSiLayerMonitor.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inlinestaticinherited |
Definition at line 25 of file IAFPSiLayerMonitor.h.
|
inlineoverridevirtual |
Returns layer and station name used to label bins in summary histograms.
Implements IAFPSiLayerMonitor.
Definition at line 95 of file AFPSiLayerMonitor.h.
|
inlineoverridevirtual |
Pixel plane ID number.
Implements IAFPSiLayerMonitor.
Definition at line 81 of file AFPSiLayerMonitor.h.
|
overridevirtual |
Returns a name suffixed with station and layer numbers.
Implements IAFPSiLayerMonitor.
Definition at line 172 of file AFPSiLayerMonitor.cxx.
|
overridevirtual |
Returns a title suffixed with station and layer numbers.
Implements IAFPSiLayerMonitor.
Definition at line 181 of file AFPSiLayerMonitor.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
inlineoverridevirtual |
Sets variable storing pointer to the main monitoring object.
Sets m_parentMonitor
Implements IAFPSiLayerMonitor.
Definition at line 51 of file AFPSiLayerMonitor.h.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
protected |
Name of the ROOT file directory where histograms will be saved.
Definition at line 135 of file AFPSiLayerMonitor.h.
|
protected |
2D distribution of hits in a layer row vs column (336 x 80)
Definition at line 141 of file AFPSiLayerMonitor.h.
|
protected |
Distribution of number of hits in an event.
Definition at line 146 of file AFPSiLayerMonitor.h.
|
protected |
Distribution of number of hits in a hot-spot in an event.
The hot-spot is defined by: m_hotSpotStartRow, m_hotSpotEndRow, m_hotSpotStartCol, m_hotSpotEndCol. Definition includes boundries i.e. <= and >= are used.
Definition at line 169 of file AFPSiLayerMonitor.h.
|
protected |
Number of counted pixels fired in the current event.
Definition at line 138 of file AFPSiLayerMonitor.h.
|
protected |
Counts number of hits in a hot-spot in an event.
Definition at line 160 of file AFPSiLayerMonitor.h.
|
protected |
Factor for correcting number of hits for pile-up (see AFPSiLayerMonitor::correctHitsForPileUp()
Definition at line 137 of file AFPSiLayerMonitor.h.
|
protected |
Defines the last column of a hot spot (including this column).
Definition at line 158 of file AFPSiLayerMonitor.h.
|
protected |
Defines the last row of a hot spot (including this row).
Definition at line 154 of file AFPSiLayerMonitor.h.
|
protected |
Defines the first column of a hot spot (including this column).
Definition at line 156 of file AFPSiLayerMonitor.h.
|
protected |
Defines the first row of a hot spot (including this row).
Definition at line 152 of file AFPSiLayerMonitor.h.
|
protected |
Layer and station name used to label summary histograms bins.
Definition at line 132 of file AFPSiLayerMonitor.h.
|
protected |
Pointer to the parent monitoring tool.
Definition at line 134 of file AFPSiLayerMonitor.h.
|
protected |
ID number of the silicon pixel layer.
Definition at line 130 of file AFPSiLayerMonitor.h.
|
protected |
ID number of the station where the pixel layer is mounted.
Definition at line 131 of file AFPSiLayerMonitor.h.
|
protected |
Distribution of number of time-over-threshold i.e. signal strength for each hit.
Definition at line 149 of file AFPSiLayerMonitor.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.