Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <FPGATrackSimLayerStudyTool.h>
|
| FPGATrackSimLayerStudyTool (const std::string &, const std::string &, const IInterface *) |
|
virtual StatusCode | initialize () override |
|
StatusCode | registerHistograms (const FPGATrackSimBinnedHits *binnedhits, bool skipTruth) |
|
void | allocateDataFlowCounters () |
|
void | resetDataFlowCounters () |
|
const std::string | dir () const |
|
void parseTruthInfo | ATLAS_NOT_THREAD_SAFE (std::vector< FPGATrackSimTruthTrack > const &truthtracks) |
|
void fillBinLevelOutput | ATLAS_NOT_THREAD_SAFE (const FPGATrackSimBinUtil::IdxSet &idx, const FPGATrackSimBinnedHits::BinEntry &data) |
|
void fillBinningSummary | ATLAS_NOT_THREAD_SAFE (const std::vector< std::shared_ptr< const FPGATrackSimHit >> &hits) |
|
void | sliceCheck () |
|
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 |
|
|
void | setBinPlotsActive (const FPGATrackSimBinUtil::IdxSet &idx) |
|
StatusCode | bookTree () |
|
void | ClearTreeVectors () |
|
template<typename HistType , typename... HistDef> |
StatusCode | makeAndRegHist (HistType *&ptr, HistDef... histargs) |
|
template<typename HistType , typename... HistDef> |
StatusCode | makeAndRegHistVector (std::vector< HistType * > &vec, unsigned len, const std::vector< std::string > *namevec, const char *namebase, HistDef... histargs) |
|
StatusCode | regGraph (TGraph *g) const |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
|
ServiceHandle< ITHistSvc > | m_tHistSvc {this, "THistSvc", "THistSvc"} |
|
Gaudi::Property< std::string > | m_dir {this, "dir", {"/GENSCAN/"}, "String name of output directory"} |
|
Gaudi::Property< double > | m_phiScale {this, "phiScale", {}, "Scale for Delta Phi variable"} |
|
Gaudi::Property< double > | m_etaScale {this, "etaScale", {}, "Scale for Delta Eta variable"} |
|
Gaudi::Property< double > | m_drScale {this, "drScale", {}, "Scale for radius differences"} |
|
const FPGATrackSimBinnedHits * | m_binnedhits {nullptr} |
|
bool | m_isSingleParticle = false |
|
bool | m_truthIsValid = false |
|
FPGATrackSimTrackPars | m_truthpars |
|
std::vector< FPGATrackSimBinUtil::IdxSet > | m_truthbin |
|
FPGATrackSimBinUtil::ParSet | m_truthparset |
|
bool | m_binPlotsActive = false |
|
std::vector< TH2D * > | m_rZ_allhits |
|
TH1D * | m_truthpars_hists [5] = {0, 0, 0, 0, 0} |
|
TH1D * | m_inputHits = 0 |
|
TH1D * | m_phiShift_road = 0 |
|
TH1D * | m_etaShift_road = 0 |
|
TH2D * | m_phiShift2D_road = 0 |
|
TH2D * | m_etaShift2D_road = 0 |
|
std::vector< TH1D * > | m_hitsPerStepBin |
|
TH1D * | m_hitsPerLayer = 0 |
|
TH2D * | m_hitsPerLayer2D = 0 |
|
TH2D * | m_hitsPerLayer_bin = 0 |
|
TTree * | m_bin_module_tree = nullptr |
|
std::vector< unsigned > | m_tree_bin |
|
std::vector< float > | m_tree_r |
|
std::vector< float > | m_tree_z |
|
std::vector< int > | m_tree_id |
|
std::vector< int > | m_tree_hash |
|
std::vector< int > | m_tree_layer |
|
std::vector< int > | m_tree_side |
|
std::vector< int > | m_tree_etamod |
|
std::vector< int > | m_tree_phimod |
|
std::vector< int > | m_tree_dettype |
|
std::vector< int > | m_tree_detzone |
|
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 |
|
◆ StoreGateSvc_t
◆ FPGATrackSimLayerStudyTool()
FPGATrackSimLayerStudyTool::FPGATrackSimLayerStudyTool |
( |
const std::string & |
algname, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
ifc |
|
) |
| |
◆ allocateDataFlowCounters()
void FPGATrackSimLayerStudyTool::allocateDataFlowCounters |
( |
| ) |
|
◆ ATLAS_NOT_THREAD_SAFE() [1/3]
◆ ATLAS_NOT_THREAD_SAFE() [2/3]
void fillBinningSummary FPGATrackSimLayerStudyTool::ATLAS_NOT_THREAD_SAFE |
( |
const std::vector< std::shared_ptr< const FPGATrackSimHit >> & |
hits | ) |
|
◆ ATLAS_NOT_THREAD_SAFE() [3/3]
◆ bookTree()
StatusCode FPGATrackSimLayerStudyTool::bookTree |
( |
| ) |
|
|
private |
◆ ClearTreeVectors()
void FPGATrackSimLayerStudyTool::ClearTreeVectors |
( |
| ) |
|
|
private |
◆ 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()
◆ dir()
const std::string FPGATrackSimLayerStudyTool::dir |
( |
| ) |
const |
|
inline |
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ 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
◆ initialize()
StatusCode FPGATrackSimLayerStudyTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 25 of file FPGATrackSimLayerStudyTool.cxx.
28 auto props = this->getProperties();
29 for( Gaudi::Details::PropertyBase* prop : props ) {
30 if (prop->ownerTypeName()==this->type()) {
31 ATH_MSG_DEBUG(
"Property:\t" << prop->name() <<
"\t : \t" << prop->toString());
39 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.
◆ makeAndRegHist()
template<typename HistType , typename... HistDef>
StatusCode FPGATrackSimLayerStudyTool::makeAndRegHist |
( |
HistType *& |
ptr, |
|
|
HistDef... |
histargs |
|
) |
| |
|
inlineprivate |
◆ makeAndRegHistVector()
template<typename HistType , typename... HistDef>
StatusCode FPGATrackSimLayerStudyTool::makeAndRegHistVector |
( |
std::vector< HistType * > & |
vec, |
|
|
unsigned |
len, |
|
|
const std::vector< std::string > * |
namevec, |
|
|
const char * |
namebase, |
|
|
HistDef... |
histargs |
|
) |
| |
|
inlineprivate |
Definition at line 152 of file FPGATrackSimLayerStudyTool.h.
155 for (
unsigned i = 0;
i < len;
i++) {
157 std::string
name = std::string(namebase);
161 if (namevec->size()==len) {
162 name += (*namevec)[
i];
164 return StatusCode::FAILURE;
171 return StatusCode::SUCCESS;
◆ 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.
◆ regGraph()
StatusCode FPGATrackSimLayerStudyTool::regGraph |
( |
TGraph * |
g | ) |
const |
|
inlineprivate |
◆ registerHistograms()
◆ renounce()
◆ renounceArray()
◆ resetDataFlowCounters()
void FPGATrackSimLayerStudyTool::resetDataFlowCounters |
( |
| ) |
|
◆ setBinPlotsActive()
◆ sliceCheck()
void FPGATrackSimLayerStudyTool::sliceCheck |
( |
| ) |
|
◆ sysInitialize()
◆ 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_bin_module_tree
TTree* FPGATrackSimLayerStudyTool::m_bin_module_tree = nullptr |
|
private |
◆ m_binnedhits
◆ m_binPlotsActive
bool FPGATrackSimLayerStudyTool::m_binPlotsActive = false |
|
private |
◆ m_detStore
◆ m_dir
Gaudi::Property<std::string> FPGATrackSimLayerStudyTool::m_dir {this, "dir", {"/GENSCAN/"}, "String name of output directory"} |
|
private |
◆ m_drScale
Gaudi::Property<double> FPGATrackSimLayerStudyTool::m_drScale {this, "drScale", {}, "Scale for radius differences"} |
|
private |
◆ m_etaScale
Gaudi::Property<double> FPGATrackSimLayerStudyTool::m_etaScale {this, "etaScale", {}, "Scale for Delta Eta variable"} |
|
private |
◆ m_etaShift2D_road
TH2D* FPGATrackSimLayerStudyTool::m_etaShift2D_road = 0 |
|
private |
◆ m_etaShift_road
TH1D* FPGATrackSimLayerStudyTool::m_etaShift_road = 0 |
|
private |
◆ m_evtStore
◆ m_hitsPerLayer
TH1D* FPGATrackSimLayerStudyTool::m_hitsPerLayer = 0 |
|
private |
◆ m_hitsPerLayer2D
TH2D* FPGATrackSimLayerStudyTool::m_hitsPerLayer2D = 0 |
|
private |
◆ m_hitsPerLayer_bin
TH2D* FPGATrackSimLayerStudyTool::m_hitsPerLayer_bin = 0 |
|
private |
◆ m_hitsPerStepBin
std::vector<TH1D *> FPGATrackSimLayerStudyTool::m_hitsPerStepBin |
|
private |
◆ m_inputHits
TH1D* FPGATrackSimLayerStudyTool::m_inputHits = 0 |
|
private |
◆ m_isSingleParticle
bool FPGATrackSimLayerStudyTool::m_isSingleParticle = false |
|
private |
◆ m_phiScale
Gaudi::Property<double> FPGATrackSimLayerStudyTool::m_phiScale {this, "phiScale", {}, "Scale for Delta Phi variable"} |
|
private |
◆ m_phiShift2D_road
TH2D* FPGATrackSimLayerStudyTool::m_phiShift2D_road = 0 |
|
private |
◆ m_phiShift_road
TH1D* FPGATrackSimLayerStudyTool::m_phiShift_road = 0 |
|
private |
◆ m_rZ_allhits
std::vector<TH2D *> FPGATrackSimLayerStudyTool::m_rZ_allhits |
|
private |
◆ m_tHistSvc
ServiceHandle<ITHistSvc> FPGATrackSimLayerStudyTool::m_tHistSvc {this, "THistSvc", "THistSvc"} |
|
private |
◆ m_tree_bin
std::vector<unsigned> FPGATrackSimLayerStudyTool::m_tree_bin |
|
private |
◆ m_tree_dettype
std::vector<int> FPGATrackSimLayerStudyTool::m_tree_dettype |
|
private |
◆ m_tree_detzone
std::vector<int> FPGATrackSimLayerStudyTool::m_tree_detzone |
|
private |
◆ m_tree_etamod
std::vector<int> FPGATrackSimLayerStudyTool::m_tree_etamod |
|
private |
◆ m_tree_hash
std::vector<int> FPGATrackSimLayerStudyTool::m_tree_hash |
|
private |
◆ m_tree_id
std::vector<int> FPGATrackSimLayerStudyTool::m_tree_id |
|
private |
◆ m_tree_layer
std::vector<int> FPGATrackSimLayerStudyTool::m_tree_layer |
|
private |
◆ m_tree_phimod
std::vector<int> FPGATrackSimLayerStudyTool::m_tree_phimod |
|
private |
◆ m_tree_r
std::vector<float> FPGATrackSimLayerStudyTool::m_tree_r |
|
private |
◆ m_tree_side
std::vector<int> FPGATrackSimLayerStudyTool::m_tree_side |
|
private |
◆ m_tree_z
std::vector<float> FPGATrackSimLayerStudyTool::m_tree_z |
|
private |
◆ m_truthbin
◆ m_truthIsValid
bool FPGATrackSimLayerStudyTool::m_truthIsValid = false |
|
private |
◆ m_truthpars
◆ m_truthpars_hists
TH1D* FPGATrackSimLayerStudyTool::m_truthpars_hists[5] = {0, 0, 0, 0, 0} |
|
private |
◆ m_truthparset
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< size_t > vec
virtual void setOwner(IDataHandleHolder *o)=0
virtual const std::string & parNames(unsigned i) const =0
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::string to_string(const DetectorType &type)
const FPGATrackSimBinTool & getBinTool() const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
unsigned getNLayers() const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>