![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
#include <FPGATrackSimHoughRootOutputTool.h>
|
| FPGATrackSimHoughRootOutputTool (const std::string &, const std::string &, const IInterface *) |
|
virtual StatusCode | initialize () override |
|
StatusCode | fillTree (std::vector< FPGATrackSimRoad * > &roads, const std::vector< FPGATrackSimTruthTrack > &truthTracks, const std::vector< FPGATrackSimOfflineTrack > &offlineTracks) |
|
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 |
|
◆ StoreGateSvc_t
◆ FPGATrackSimHoughRootOutputTool()
FPGATrackSimHoughRootOutputTool::FPGATrackSimHoughRootOutputTool |
( |
const std::string & |
algname, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
ifc |
|
) |
| |
◆ bookTree()
StatusCode FPGATrackSimHoughRootOutputTool::bookTree |
( |
| ) |
|
|
private |
Definition at line 29 of file FPGATrackSimHoughRootOutputTool.cxx.
31 m_tree =
new TTree(
"FPGATrackSimHoughRootOutput",
"FPGATrackSimHoughRootOutput");
57 m_truthtree =
new TTree(
"FPGATrackSimTruthTree",
"FPGATrackSimTruthTree");
69 m_offlinetree =
new TTree(
"FPGATrackSimOfflineTree",
"FPGATrackSimOfflineTree");
91 return StatusCode::SUCCESS;
◆ 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()
◆ 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
◆ fillTree()
Definition at line 96 of file FPGATrackSimHoughRootOutputTool.cxx.
103 for (
auto track : truthTracks) {
119 for (
auto track : offlineTracks) {
131 int nhole(0), nmeasurement(0), ninert(0), nbrem(0), nscatter(0), nperigee(0), noutlier(0), nother(0);
132 for (
const auto& hit :
track.getOfflineHits()) {
154 std::vector<FPGATrackSimMultiTruth> mtv;
160 for (
size_t iroad = 0; iroad < roads.size(); iroad++) {
163 if (road ==
nullptr)
continue;
170 for (
size_t icomb = 0; icomb < combs.size(); icomb++)
174 std::vector<int>
const & hit_indices = combs[icomb];
177 if (hit_indices[
layer] >= 0) {
183 mtv.push_back( truth );
187 const bool ok = truth.
best(tbarcode,tfrac);
190 m_barcode.push_back((
int)(tbarcode.second));
219 const bool ok = mt.best(tbarcode,tfrac);
236 return StatusCode::SUCCESS;
◆ initialize()
StatusCode FPGATrackSimHoughRootOutputTool::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.
◆ 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()
◆ ResetVectors()
void FPGATrackSimHoughRootOutputTool::ResetVectors |
( |
| ) |
|
|
private |
◆ 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_barcode
std::vector<int> FPGATrackSimHoughRootOutputTool::m_barcode |
|
private |
◆ m_barcodefrac
std::vector<float> FPGATrackSimHoughRootOutputTool::m_barcodefrac |
|
private |
◆ m_candidate_barcode
float FPGATrackSimHoughRootOutputTool::m_candidate_barcode = 0.0F |
|
private |
◆ m_candidate_barcodefrac
float FPGATrackSimHoughRootOutputTool::m_candidate_barcodefrac = 0.0F |
|
private |
◆ m_candidate_eventindex
float FPGATrackSimHoughRootOutputTool::m_candidate_eventindex = 0.0F |
|
private |
◆ m_detStore
◆ m_etamodule
std::vector<unsigned int> FPGATrackSimHoughRootOutputTool::m_etamodule |
|
private |
◆ m_etawidth
std::vector<unsigned int> FPGATrackSimHoughRootOutputTool::m_etawidth |
|
private |
◆ m_eventindex
std::vector<int> FPGATrackSimHoughRootOutputTool::m_eventindex |
|
private |
◆ m_EvtSel
◆ m_evtStore
◆ m_FPGATrackSimMapping
◆ m_ID
std::vector<unsigned int> FPGATrackSimHoughRootOutputTool::m_ID |
|
private |
◆ m_invpt
float FPGATrackSimHoughRootOutputTool::m_invpt = 0.0F |
|
private |
◆ m_isBarrel
std::vector<unsigned int> FPGATrackSimHoughRootOutputTool::m_isBarrel |
|
private |
◆ m_isPixel
std::vector<unsigned int> FPGATrackSimHoughRootOutputTool::m_isPixel |
|
private |
◆ m_layer
std::vector<unsigned int> FPGATrackSimHoughRootOutputTool::m_layer |
|
private |
◆ m_offline_barcode
std::vector<int> FPGATrackSimHoughRootOutputTool::m_offline_barcode |
|
private |
◆ m_offline_barcodefrac
std::vector<float> FPGATrackSimHoughRootOutputTool::m_offline_barcodefrac |
|
private |
◆ m_offline_d0
std::vector<float> FPGATrackSimHoughRootOutputTool::m_offline_d0 |
|
private |
◆ m_offline_eta
std::vector<float> FPGATrackSimHoughRootOutputTool::m_offline_eta |
|
private |
◆ m_offline_n_brempoint
std::vector<int> FPGATrackSimHoughRootOutputTool::m_offline_n_brempoint |
|
private |
◆ m_offline_n_holes
std::vector<int> FPGATrackSimHoughRootOutputTool::m_offline_n_holes |
|
private |
◆ m_offline_n_inertmaterial
std::vector<int> FPGATrackSimHoughRootOutputTool::m_offline_n_inertmaterial |
|
private |
◆ m_offline_n_measurement
std::vector<int> FPGATrackSimHoughRootOutputTool::m_offline_n_measurement |
|
private |
◆ m_offline_n_other
std::vector<int> FPGATrackSimHoughRootOutputTool::m_offline_n_other |
|
private |
◆ m_offline_n_outlier
std::vector<int> FPGATrackSimHoughRootOutputTool::m_offline_n_outlier |
|
private |
◆ m_offline_n_perigee
std::vector<int> FPGATrackSimHoughRootOutputTool::m_offline_n_perigee |
|
private |
◆ m_offline_n_scatterer
std::vector<int> FPGATrackSimHoughRootOutputTool::m_offline_n_scatterer |
|
private |
◆ m_offline_phi
std::vector<float> FPGATrackSimHoughRootOutputTool::m_offline_phi |
|
private |
◆ m_offline_pt
std::vector<float> FPGATrackSimHoughRootOutputTool::m_offline_pt |
|
private |
◆ m_offline_q
std::vector<int> FPGATrackSimHoughRootOutputTool::m_offline_q |
|
private |
◆ m_offline_z0
std::vector<float> FPGATrackSimHoughRootOutputTool::m_offline_z0 |
|
private |
◆ m_offlinetree
TTree* FPGATrackSimHoughRootOutputTool::m_offlinetree = nullptr |
|
private |
◆ m_phi
float FPGATrackSimHoughRootOutputTool::m_phi = 0.0F |
|
private |
◆ m_phimodule
std::vector<unsigned int> FPGATrackSimHoughRootOutputTool::m_phimodule |
|
private |
◆ m_phiwidth
std::vector<unsigned int> FPGATrackSimHoughRootOutputTool::m_phiwidth |
|
private |
◆ m_roadnumber
int FPGATrackSimHoughRootOutputTool::m_roadnumber = 0 |
|
private |
◆ m_tHistSvc
ServiceHandle<ITHistSvc> FPGATrackSimHoughRootOutputTool::m_tHistSvc {this, "THistSvc", "THistSvc"} |
|
private |
◆ m_tracknumber
int FPGATrackSimHoughRootOutputTool::m_tracknumber = 0 |
|
private |
◆ m_tree
TTree* FPGATrackSimHoughRootOutputTool::m_tree = nullptr |
|
private |
◆ m_treeindex
int FPGATrackSimHoughRootOutputTool::m_treeindex = 0 |
|
private |
◆ m_truth_barcode
std::vector<int> FPGATrackSimHoughRootOutputTool::m_truth_barcode |
|
private |
◆ m_truth_d0
std::vector<float> FPGATrackSimHoughRootOutputTool::m_truth_d0 |
|
private |
◆ m_truth_eta
std::vector<float> FPGATrackSimHoughRootOutputTool::m_truth_eta |
|
private |
◆ m_truth_eventindex
std::vector<int> FPGATrackSimHoughRootOutputTool::m_truth_eventindex |
|
private |
◆ m_truth_pdg
std::vector<float> FPGATrackSimHoughRootOutputTool::m_truth_pdg |
|
private |
◆ m_truth_phi
std::vector<float> FPGATrackSimHoughRootOutputTool::m_truth_phi |
|
private |
◆ m_truth_pt
std::vector<float> FPGATrackSimHoughRootOutputTool::m_truth_pt |
|
private |
◆ m_truth_q
std::vector<int> FPGATrackSimHoughRootOutputTool::m_truth_q |
|
private |
◆ m_truth_z0
std::vector<float> FPGATrackSimHoughRootOutputTool::m_truth_z0 |
|
private |
◆ m_truthtree
TTree* FPGATrackSimHoughRootOutputTool::m_truthtree = nullptr |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_x
std::vector<float> FPGATrackSimHoughRootOutputTool::m_x |
|
private |
◆ m_y
std::vector<float> FPGATrackSimHoughRootOutputTool::m_y |
|
private |
◆ m_z
std::vector<float> FPGATrackSimHoughRootOutputTool::m_z |
|
private |
The documentation for this class was generated from the following files:
unsigned getPhiModule() const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
unsigned getLayer() const
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< const FPGATrackSimHit * > const & getHits(size_t layer) const
std::vector< size_t > getNHits_layer() const
unsigned getEtaModule() const
bool best(FPGATrackSimMultiTruth::Barcode &code, FPGATrackSimMultiTruth::Weight &weight) const
virtual void setOwner(IDataHandleHolder *o)=0
const FPGATrackSimMultiTruth & getTruth() const
std::pair< unsigned long, unsigned long > Barcode
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
unsigned getIdentifierHash() const
std::vector< std::vector< int > > getComboIndices(std::vector< size_t > const &sizes)
Given a vector of sizes (of arrays), generates a vector of all combinations of indices to index one e...
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
unsigned getEtaWidth() const
unsigned getPhiWidth() const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
void assign_equal_normalization()