Go to the documentation of this file.
22 edm::LogInfo(
"SiPixelDetInfoFileWriter::SiPixelDetInfoFileWriter");
28 edm::LogInfo(
"SiPixelDetInfoFileWriter::~SiPixelDetInfoFileWriter");
32 outputFile_.open(filePath_.c_str());
34 if (outputFile_.is_open()) {
39 edm::LogInfo(
"SiPixelDetInfoFileWriter::beginJob - got geometry ") << std::endl;
40 edm::LogInfo(
"SiPixelDetInfoFileWriter") <<
" There are " << pDD->
detUnits().size() <<
" detectors" << std::endl;
44 for (
const auto &it : pDD->
detUnits()) {
51 int nrows = topol.
nrows();
55 outputFile_ << detid <<
" " <<
ncols <<
" " << nrows <<
"\n";
59 edm::LogInfo(
"SiPixelDetInfoFileWriter::beginJob - Loop finished. ")
60 << nPixelDets <<
" Pixel DetUnits found " << std::endl;
64 edm::LogError(
"SiPixelDetInfoFileWriter::beginJob - Unable to open file") << endl;
void beginRun(const edm::Run &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Info, false > LogInfo
~SiPixelDetInfoFileWriter() override
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
SiPixelDetInfoFileWriter(const edm::ParameterSet &)
virtual int ncolumns() const =0
DetId geographicalId() const
The label of this GeomDet.
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
Log< level::Error, false > LogError
virtual int nrows() const =0
Namespace of DDCMS conversion namespace.