|
ATLAS Offline Software
|
#include <SpacePointAnalysis.h>
|
| SpacePointAnalysis (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~SpacePointAnalysis () |
|
virtual StatusCode | initialize () override final |
|
virtual StatusCode | execute () override final |
|
virtual unsigned int | cardinality () const override |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. 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 | 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 |
|
|
SG::ReadHandleKey< SpacePointContainer > | m_inputKey {this, "InputKey", "PixelSpacePoints", "Key of input space points"} |
|
SG::ReadHandleKey< SpacePointOverlapCollection > | m_inputOverlapKey {this, "InputOverlapKey", "OverlapSpacePoints", "Key of input for overlap space points"} |
|
const PixelID * | m_pixelID {} |
|
const SCT_ID * | m_stripID {} |
|
std::vector< int > * | m_barrelEndcap {} |
|
std::vector< int > * | m_layerDisk {} |
|
std::vector< int > * | m_phiModule {} |
|
std::vector< int > * | m_etaModule {} |
|
std::vector< int > * | m_sideModule {} |
|
std::vector< int > * | m_isInnermost {} |
|
std::vector< int > * | m_isNextToInnermost {} |
|
std::vector< int > * | m_isOverlap {} |
|
std::vector< double > * | m_eta {} |
|
std::vector< double > * | m_globalX {} |
|
std::vector< double > * | m_globalY {} |
|
std::vector< double > * | m_globalZ {} |
|
std::vector< double > * | m_globalCovXX {} |
|
std::vector< double > * | m_globalCovYY {} |
|
std::vector< double > * | m_globalCovZZ {} |
|
std::vector< double > * | m_globalCovXY {} |
|
std::vector< double > * | m_globalCovXZ {} |
|
std::vector< double > * | m_globalCovYX {} |
|
std::vector< double > * | m_globalCovYZ {} |
|
std::vector< double > * | m_globalCovZX {} |
|
std::vector< double > * | m_globalCovZY {} |
|
TH2 * | m_h_globalZR {} |
|
TH1 * | m_h_etaSpacePoint {} |
|
TTree * | m_tree {} |
|
StringProperty | m_ntupleFileName {this, "NtupleFileName", "/ntuples/file1", "Output filename"} |
|
StringProperty | m_ntupleDirName {this, "NtupleDirectoryName", "/SpacePointAnalysis/", "Directory name in output file"} |
|
StringProperty | m_ntupleTreeName {this, "NtupleTreeName", "SpacePointAna", "Tree name in output file"} |
|
StringProperty | m_path {this, "HistPath", "/SpacePointAnalysis/", "Full path in output file"} |
|
ServiceHandle< ITHistSvc > | m_thistSvc { this, "THistSvc", "THistSvc", "Histogramming svc" } |
|
BooleanProperty | m_usePixel {this, "UsePixel", true, "enable use of pixel ID or SCT ID"} |
|
BooleanProperty | m_useOverlap {this, "UseOverlap", true, "enable use of overlap for SCT ID"} |
|
DataObjIDColl | m_extendedExtraObjects |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 26 of file SpacePointAnalysis.h.
◆ StoreGateSvc_t
◆ SpacePointAnalysis()
SpacePointAnalysis::SpacePointAnalysis |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~SpacePointAnalysis()
SpacePointAnalysis::~SpacePointAnalysis |
( |
| ) |
|
|
inline |
◆ cardinality()
virtual unsigned int SpacePointAnalysis::cardinality |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ 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);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ 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()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode SpacePointAnalysis::execute |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 80 of file SpacePointAnalysis.cxx.
105 const EventContext& ctx = Algorithm::getContext();
108 if(spContainer.isValid()) {
110 if (!spCollection)
continue;
112 const Identifier idColl(spCollection->identify());
119 bool isInnermost =
m_usePixel ? (layerDisk==0) :
false;
120 bool isNextToInnermost =
m_usePixel ? ((layerDisk==1) or (brlEc!=0 and layerDisk==2)) :
false;
131 auto globalPos = spacePoint->globalPosition();
132 auto globalCov = spacePoint->globCovariance();
134 m_eta->push_back(globalPos.eta());
160 if (spCollection.isValid()) {
171 const bool isInnermost(
false);
172 const bool isNextToInnermost(
false);
183 auto globalPos = spacePoint->globalPosition();
184 auto globalCov = spacePoint->globCovariance();
186 m_eta->push_back(globalPos.eta());
214 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()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ initialize()
StatusCode SpacePointAnalysis::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 23 of file SpacePointAnalysis.cxx.
68 m_h_globalZR =
new TH2F(
"h_globalZR",
"h_globalZR; z [mm]; r [mm]",1500,-3000.,3000,1500,0.,1500);
75 ATH_MSG_INFO(
"No overlap collection when enabled for pixel space points! Check your configuration if needed.");
77 return StatusCode::SUCCESS;
◆ 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.
◆ 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.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_barrelEndcap
std::vector<int>* SpacePointAnalysis::m_barrelEndcap {} |
|
private |
◆ m_detStore
◆ m_eta
std::vector<double>* SpacePointAnalysis::m_eta {} |
|
private |
◆ m_etaModule
std::vector<int>* SpacePointAnalysis::m_etaModule {} |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_globalCovXX
std::vector<double>* SpacePointAnalysis::m_globalCovXX {} |
|
private |
◆ m_globalCovXY
std::vector<double>* SpacePointAnalysis::m_globalCovXY {} |
|
private |
◆ m_globalCovXZ
std::vector<double>* SpacePointAnalysis::m_globalCovXZ {} |
|
private |
◆ m_globalCovYX
std::vector<double>* SpacePointAnalysis::m_globalCovYX {} |
|
private |
◆ m_globalCovYY
std::vector<double>* SpacePointAnalysis::m_globalCovYY {} |
|
private |
◆ m_globalCovYZ
std::vector<double>* SpacePointAnalysis::m_globalCovYZ {} |
|
private |
◆ m_globalCovZX
std::vector<double>* SpacePointAnalysis::m_globalCovZX {} |
|
private |
◆ m_globalCovZY
std::vector<double>* SpacePointAnalysis::m_globalCovZY {} |
|
private |
◆ m_globalCovZZ
std::vector<double>* SpacePointAnalysis::m_globalCovZZ {} |
|
private |
◆ m_globalX
std::vector<double>* SpacePointAnalysis::m_globalX {} |
|
private |
◆ m_globalY
std::vector<double>* SpacePointAnalysis::m_globalY {} |
|
private |
◆ m_globalZ
std::vector<double>* SpacePointAnalysis::m_globalZ {} |
|
private |
◆ m_h_etaSpacePoint
TH1* SpacePointAnalysis::m_h_etaSpacePoint {} |
|
private |
◆ m_h_globalZR
TH2* SpacePointAnalysis::m_h_globalZR {} |
|
private |
◆ m_inputKey
◆ m_inputOverlapKey
◆ m_isInnermost
std::vector<int>* SpacePointAnalysis::m_isInnermost {} |
|
private |
◆ m_isNextToInnermost
std::vector<int>* SpacePointAnalysis::m_isNextToInnermost {} |
|
private |
◆ m_isOverlap
std::vector<int>* SpacePointAnalysis::m_isOverlap {} |
|
private |
◆ m_layerDisk
std::vector<int>* SpacePointAnalysis::m_layerDisk {} |
|
private |
◆ m_ntupleDirName
◆ m_ntupleFileName
StringProperty SpacePointAnalysis::m_ntupleFileName {this, "NtupleFileName", "/ntuples/file1", "Output filename"} |
|
private |
◆ m_ntupleTreeName
StringProperty SpacePointAnalysis::m_ntupleTreeName {this, "NtupleTreeName", "SpacePointAna", "Tree name in output file"} |
|
private |
◆ m_path
StringProperty SpacePointAnalysis::m_path {this, "HistPath", "/SpacePointAnalysis/", "Full path in output file"} |
|
private |
◆ m_phiModule
std::vector<int>* SpacePointAnalysis::m_phiModule {} |
|
private |
◆ m_pixelID
◆ m_sideModule
std::vector<int>* SpacePointAnalysis::m_sideModule {} |
|
private |
◆ m_stripID
◆ m_thistSvc
ServiceHandle<ITHistSvc> SpacePointAnalysis::m_thistSvc { this, "THistSvc", "THistSvc", "Histogramming svc" } |
|
private |
◆ m_tree
TTree* SpacePointAnalysis::m_tree {} |
|
private |
◆ m_useOverlap
BooleanProperty SpacePointAnalysis::m_useOverlap {this, "UseOverlap", true, "enable use of overlap for SCT ID"} |
|
private |
◆ m_usePixel
BooleanProperty SpacePointAnalysis::m_usePixel {this, "UsePixel", true, "enable use of pixel ID or SCT ID"} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
std::vector< double > * m_globalCovXZ
std::vector< double > * m_globalCovZX
StringProperty m_ntupleTreeName
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
const PixelID * m_pixelID
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< int > * m_isOverlap
std::vector< int > * m_isInnermost
std::vector< double > * m_globalZ
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< int > * m_barrelEndcap
std::vector< double > * m_globalCovYY
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int phi_module(const Identifier &id) const
const std::string & key() const
Return the StoreGate ID for the referenced object.
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
std::vector< double > * m_globalY
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
BooleanProperty m_usePixel
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< double > * m_globalX
std::vector< int > * m_sideModule
BooleanProperty m_useOverlap
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
std::vector< int > * m_etaModule
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< double > * m_globalCovXX
int layer_disk(const Identifier &id) const
int eta_module(const Identifier &id) const
StringProperty m_ntupleDirName
SG::ReadHandleKey< SpacePointContainer > m_inputKey
int layer_disk(const Identifier &id) const
std::vector< double > * m_eta
std::vector< double > * m_globalCovXY
DataObjIDColl m_extendedExtraObjects
StringProperty m_ntupleFileName
SG::ReadHandleKey< SpacePointOverlapCollection > m_inputOverlapKey
#define ATH_MSG_WARNING(x)
int eta_module(const Identifier &id) const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::vector< int > * m_layerDisk
std::vector< double > * m_globalCovZZ
int side(const Identifier &id) const
AthAlgorithm()
Default constructor:
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
std::vector< double > * m_globalCovYX
ServiceHandle< ITHistSvc > m_thistSvc
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
std::vector< double > * m_globalCovYZ
int phi_module(const Identifier &id) const
std::vector< int > * m_isNextToInnermost
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
std::vector< int > * m_phiModule
std::vector< double > * m_globalCovZY