26 edm::LogInfo(
"SiPixelDetInfoFileWriter::SiPixelDetInfoFileWriter");
35 edm::LogInfo(
"SiPixelDetInfoFileWriter::~SiPixelDetInfoFileWriter");
42 outputFile_.open(filePath_.c_str());
44 if (outputFile_.is_open()){
50 edm::LogInfo(
"SiPixelDetInfoFileWriter::beginJob - got geometry ")<<std::endl;
51 edm::LogInfo(
"SiPixelDetInfoFileWriter") <<
" There are "<<pDD->
detUnits().size() <<
" detectors"<<std::endl;
55 for(
const auto& it : pDD->
detUnits()) {
63 int nrows = topol.
nrows();
68 outputFile_ << detid <<
" "<< ncols <<
" " << nrows <<
"\n";
73 edm::LogInfo(
"SiPixelDetInfoFileWriter::beginJob - Loop finished. ")<< nPixelDets <<
" Pixel DetUnits found " << std::endl;
78 edm::LogError(
"SiPixelDetInfoFileWriter::beginJob - Unable to open file")<<endl;
T getUntrackedParameter(std::string const &, T const &) const
virtual int nrows() const =0
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
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
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
SiPixelDetInfoFileWriter(const edm::ParameterSet &)
~SiPixelDetInfoFileWriter() override
virtual int ncolumns() const =0