19 edm::LogInfo(
"SiPixelDetInfoFileWriter::SiPixelDetInfoFileWriter");
21 trackerGeomTokenBeginRun_ = esConsumes<TrackerGeometry, TrackerDigiGeometryRecord, edm::Transition::BeginRun>();
26 edm::LogInfo(
"SiPixelDetInfoFileWriter::~SiPixelDetInfoFileWriter");
30 outputFile_.open(filePath_.c_str());
32 if (outputFile_.is_open()) {
35 edm::LogInfo(
"SiPixelDetInfoFileWriter::beginJob - got geometry ") << std::endl;
36 edm::LogInfo(
"SiPixelDetInfoFileWriter") <<
" There are " << pDD->detUnits().size() <<
" detectors" << std::endl;
40 for (
const auto &it : pDD->detUnits()) {
47 int nrows = topol.
nrows();
51 outputFile_ << detid <<
" " << ncols <<
" " << nrows <<
"\n";
55 edm::LogInfo(
"SiPixelDetInfoFileWriter::beginJob - Loop finished. ")
56 << nPixelDets <<
" Pixel DetUnits found " << std::endl;
60 edm::LogError(
"SiPixelDetInfoFileWriter::beginJob - Unable to open file") << endl;
T getUntrackedParameter(std::string const &, T const &) const
virtual int ncolumns() const =0
virtual int nrows() const =0
Log< level::Error, false > LogError
DetId geographicalId() const
The label of this GeomDet.
void analyze(const edm::Event &, const edm::EventSetup &) override
void beginRun(const edm::Run &, const edm::EventSetup &) override
Log< level::Info, false > LogInfo
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
SiPixelDetInfoFileWriter(const edm::ParameterSet &)
~SiPixelDetInfoFileWriter() override
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const