27 edm::LogInfo(
"SiPixelDetInfoFileWriter::SiPixelDetInfoFileWriter");
36 edm::LogInfo(
"SiPixelDetInfoFileWriter::~SiPixelDetInfoFileWriter");
43 outputFile_.open(filePath_.c_str());
45 if (outputFile_.is_open()){
51 edm::LogInfo(
"SiPixelDetInfoFileWriter::beginJob - got geometry ")<<std::endl;
52 edm::LogInfo(
"SiPixelDetInfoFileWriter") <<
" There are "<<pDD->detUnits().size() <<
" detectors"<<std::endl;
56 for(TrackerGeometry::DetUnitContainer::const_iterator it = pDD->detUnits().begin(); it != pDD->detUnits().end(); it++){
64 int nrows = topol.
nrows();
69 outputFile_ << detid <<
" "<< ncols <<
" " << nrows <<
"\n";
74 edm::LogInfo(
"SiPixelDetInfoFileWriter::beginJob - Loop finished. ")<< nPixelDets <<
" Pixel DetUnits found " << std::endl;
79 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
~SiPixelDetInfoFileWriter()
DetId geographicalId() const
The label of this GeomDet.
void analyze(const edm::Event &, const edm::EventSetup &)
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
SiPixelDetInfoFileWriter(const edm::ParameterSet &)
void beginRun(const edm::Run &, const edm::EventSetup &)