14#include <GaudiKernel/IAppMgrUI.h>
28using namespace ITkPixel;
31int main(
int argc,
char *argv[])
35 std::string outFileName{
"ITkPixelIdentifiers.dat"};
37 outFileName = argv[1];
40 IAppMgrUI *appMgr = Gaudi::createApplicationMgr();
41 SmartIF<IProperty> propMgr = appMgr;
42 ANA_CHECK( propMgr->setProperty(
"EvtSel",
"NONE" ) );
43 ANA_CHECK( propMgr->setProperty(
"JobOptionsType",
"FILE" ) );
44 ANA_CHECK( propMgr->setProperty(
"JobOptionsPath",
"PixelReadoutGeometry/ITkPixelIdentifiersDumpConfig.txt" ) );
52 ANA_CHECK( detectorStore->retrieve(detManager,
"ITkPixel") );
56 ANA_CHECK( detectorStore->retrieve(pixelID,
"PixelID") );
58 std::ofstream
fout{outFileName};
66 <<
"FEs" << std::endl;
68 for (
unsigned int moduleHash{}; moduleHash < pixelID->
wafer_hash_max(); moduleHash++) {
74 fout << moduleHash <<
"\t"
int main(int, char **)
Main class for all the CppUnit test classes.
This is an Identifier helper class for the Pixel subdetector.
This is a "hash" representation of an Identifier.
value_type get_compact() const
Get the compact id.
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated pixel ...
virtual const SiDetectorElementCollection * getDetectorElementCollection() const override
access to whole collection via Iterators
Class used to describe the design of a module (diode segmentation and readout scheme)
int numberOfCircuits() const
Total number of circuits:
Class to hold the SiDetectorElement objects to be put in the detector store.
const SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
Class to hold geometrical description of a silicon detector element.
virtual const SiDetectorDesign & design() const override final
access to the local description (inline):
This is an Identifier helper class for the Pixel subdetector.
int layer_disk(const Identifier &id) const
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
size_type wafer_hash_max() const
int eta_module(const Identifier &id) const
int phi_module(const Identifier &id) const