Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include <GaudiKernel/StatusCode.h>
17 #include <nlohmann/json.hpp>
22 const std::vector<Gaudi::Details::PropertyBase*> props = this->getProperties();
23 for( Gaudi::Details::PropertyBase* prop : props ) {
24 if (prop->ownerTypeName()==this->type()) {
25 ATH_MSG_DEBUG(
"Property:\t" << prop->name() <<
"\t : \t" << prop->toString());
47 return StatusCode::SUCCESS;
73 const std::vector<std::shared_ptr<const FPGATrackSimHit>> &
hits) {
80 for (
auto &
bin :
step->validBinsFull()) {
90 for (
const std::shared_ptr<const FPGATrackSimHit> &hit :
hits) {
100 for (
const auto &hit :
115 if (hit.hitptr->isMapped()) {
116 storedhit.
layer = hit.hitptr->getLayer();
130 return StatusCode::SUCCESS;
146 if (((lyrhit >> hit.
layer) & 0
x1) == 0x0)
148 lyrhit |= (0x1 << hit.
layer);
154 return std::count_if(
hits.begin(),
hits.end(),[lyr](
auto& hit){return hit.layer==lyr;});
169 std::vector <std::set<unsigned> >(5,std::set<unsigned>()));
171 std::map <unsigned,unsigned>());
175 for (
const auto &binelem :
data) {
176 std::vector<unsigned>
bin;
177 binelem.at(
"bin").get_to(
bin);
178 auto& lyrmap = binelem[
"lyrmap"];
181 for (
auto &lyrelem : lyrmap) {
183 lyrelem.at(
"lyr").get_to(lyr);
196 ATH_MSG_FATAL(
"Layer map bins have inconsistent numbers of layers");
FPGATrackSimBinArray< std::vector< std::set< unsigned > > > m_lyr_to_mod_map
std::vector< FPGATrackSimBinArray< BinEntry > > m_binnedHitsStep
char data[hepevt_bytes_allocation_ATLAS]
void addHit(const StoredHit &hit)
ServiceHandle< IFPGATrackSimEventSelectionSvc > m_EvtSel
StatusCode fill(const std::vector< std::shared_ptr< const FPGATrackSimHit >> &hits)
unsigned int hitsInLyr(unsigned lyr) const
Binning Classes for GenScanTool.
Binning Classes for BinStep.
std::vector< StoredHit > hits
virtual StatusCode initialize() override
unsigned int size() const
void setsize(const std::vector< unsigned int > &dims, const T &initval)
ToolHandle< FPGATrackSimBinTool > m_bintool
::StatusCode StatusCode
StatusCode definition for legacy code.
Binning Utilities for GenScanTool.
FPGATrackSimBinArray< std::map< unsigned, unsigned > > m_mod_to_lyr_map
Defines Parameters used for binning.
void readLayerMap(const std::string &filename)
Gaudi::Property< std::string > m_lyrmapFile
void initBinnedDataArrays()