|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "GaudiKernel/EventContext.h"
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;
105 const EventContext& ctx = Algorithm::getContext();
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;
def retrieve(aClass, aKey=None)
std::vector< double > * m_globalCovXZ
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
std::vector< double > * m_globalCovZX
StringProperty m_ntupleTreeName
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
virtual StatusCode initialize() override final
const PixelID * m_pixelID
std::vector< int > * m_isOverlap
std::vector< int > * m_isInnermost
std::vector< double > * m_globalZ
SpacePointAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
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.
std::vector< double > * m_globalY
BooleanProperty m_usePixel
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< double > * m_globalX
virtual StatusCode execute() override final
std::vector< int > * m_sideModule
BooleanProperty m_useOverlap
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
std::vector< int > * m_etaModule
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
StringProperty m_ntupleFileName
SG::ReadHandleKey< SpacePointOverlapCollection > m_inputOverlapKey
int eta_module(const Identifier &id) const
std::vector< int > * m_layerDisk
std::vector< double > * m_globalCovZZ
int side(const Identifier &id) const
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
std::vector< double > * m_globalCovYX
ServiceHandle< ITHistSvc > m_thistSvc
Handle class for reading from StoreGate.
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
std::vector< int > * m_phiModule
std::vector< double > * m_globalCovZY