|
ATLAS Offline Software
|
Go to the documentation of this file.
24 return StatusCode::SUCCESS;
37 std::list<FPGATrackSimHit> CompleteIDModuleList;
42 Int_t countForSRAM(0);
64 CompleteIDModuleList.push_back(tmpmodraw);
71 for (; wafer_it!=wafer_end; ++wafer_it) {
90 CompleteIDModuleList.push_back(tmpmodraw);
98 std::set<unsigned int> **grouped_modules =
new std::set<unsigned int>*[nregions];
99 for (
unsigned int ireg=0;ireg!=nregions;++ireg) grouped_modules[ireg] =
new std::set<unsigned int>[nplanes];
101 for (
auto& curmodrawhit: CompleteIDModuleList) {
107 bool hasOneRegion(
false);
108 for (
unsigned int ireg=0;ireg!=nregions;++ireg) {
112 grouped_modules[ireg][curmodrawhit.getLayer()].insert(curmodrawhit.getIdentifierHash());
116 if (!hasOneRegion)
ATH_MSG_WARNING (
"The module with hash " << curmodrawhit.getIdentifierHash() <<
" and FPGATrackSim ID (" << curmodrawhit.getLayer() <<
"," << curmodrawhit.getSection() <<
") is not associated to a tower");
121 for (
unsigned int ireg=0;ireg!=nregions;++ireg) {
122 for (
unsigned int ip=0;
ip!=nplanes;++
ip) {
123 ATH_MSG_DEBUG (
"Region " << ireg <<
", layer" <<
ip <<
" has " << grouped_modules[ireg][
ip].
size() <<
" modules");
124 unsigned int modnumber(0);
125 for (
const auto &curhash: grouped_modules[ireg][
ip]) {
126 fout << ireg <<
'\t' <<
ip <<
'\t' << curhash <<
'\t' << modnumber++ << std::endl;
137 for (
unsigned int ireg=0;ireg!=nregions;++ireg)
delete [] grouped_modules[ireg];
138 delete [] grouped_modules;
def retrieve(aClass, aKey=None)
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...
int phi_index(const Identifier &id) const
void setEtaIndex(unsigned v)
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
void setIdentifierHash(unsigned v)
const_id_iterator wafer_begin(void) const
Iterators over full set of ids. Wafer iterator is sorted.
std::vector< Identifier >::const_iterator const_id_iterator
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int phi_module(const Identifier &id) const
void setDetectorZone(DetectorZone detZone)
virtual IdentifierHash identifyHash() const override final
identifier hash (inline)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Maps ITK module indices to FPGATrackSim regions.
void setDetType(SiliconTech detType)
void setPhiIndex(unsigned v)
::StatusCode StatusCode
StatusCode definition for legacy code.
int eta_index(const Identifier &id) const
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
void setPhiModule(unsigned v)
int layer_disk(const Identifier &id) const
void setLayerDisk(unsigned v)
int eta_module(const Identifier &id) const
int layer_disk(const Identifier &id) const
#define ATH_MSG_WARNING(x)
int strip(const Identifier &id) const
int eta_module(const Identifier &id) const
int side(const Identifier &id) const
const_id_iterator wafer_end(void) const
virtual SiDetectorElementCollection::const_iterator getDetectorElementEnd() const =0
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
virtual SiDetectorElementCollection::const_iterator getDetectorElementBegin() const =0
int phi_module(const Identifier &id) const
virtual Identifier identify() const override final
identifier of this detector element (inline)
void setHitType(HitType type)