46 edm::LogInfo(
"SiPixelDetInfoFileWriter::SiPixelDetInfoFileWriter");
48 trackerGeomTokenBeginRun_ = esConsumes<TrackerGeometry, TrackerDigiGeometryRecord, edm::Transition::BeginRun>();
53 edm::LogInfo(
"SiPixelDetInfoFileWriter::~SiPixelDetInfoFileWriter");
57 outputFile_.open(filePath_.c_str());
59 if (outputFile_.is_open()) {
62 edm::LogInfo(
"SiPixelDetInfoFileWriter::beginJob - got geometry ") << std::endl;
63 edm::LogInfo(
"SiPixelDetInfoFileWriter") <<
" There are " << pDD->
detUnits().size() <<
" detectors" << std::endl;
74 int nrows = topol.
nrows();
78 outputFile_ <<
detid <<
" " <<
ncols <<
" " << nrows <<
"\n";
82 edm::LogInfo(
"SiPixelDetInfoFileWriter::beginJob - Loop finished. ")
83 << nPixelDets <<
" Pixel DetUnits found " << std::endl;
87 edm::LogError(
"SiPixelDetInfoFileWriter::beginJob - Unable to open file") << endl;
void endRun(const edm::Run &, const edm::EventSetup &) override
virtual int ncolumns() const =0
virtual int nrows() const =0
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
Log< level::Error, false > LogError
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomTokenBeginRun_
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
void analyze(const edm::Event &, const edm::EventSetup &) override
DetId geographicalId() const
The label of this GeomDet.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Namespace of DDCMS conversion namespace.
void beginRun(const edm::Run &, const edm::EventSetup &) override
Log< level::Info, false > LogInfo
std::ofstream outputFile_
SiPixelDetInfoFileWriter(const edm::ParameterSet &)
~SiPixelDetInfoFileWriter() override
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.