Go to the documentation of this file.
22 edm::LogInfo(
"SiStripDetInfoFileWriter::SiStripDetInfoFileWriter");
28 edm::LogInfo(
"SiStripDetInfoFileWriter::~SiStripDetInfoFileWriter");
32 outputFile_.open(filePath_.c_str());
34 if (outputFile_.is_open()) {
39 edm::LogInfo(
"SiStripDetInfoFileWriter::beginRun - got geometry ") << std::endl;
41 edm::LogInfo(
"SiStripDetInfoFileWriter") <<
" There are " << pDD->
detUnits().size() <<
" detectors" << std::endl;
43 for (
const auto& it : pDD->
detUnits()) {
52 if (numberOfAPVs < 1 || numberOfAPVs > 6) {
55 <<
"Will not write this entry to file" << endl;
59 outputFile_ << detid <<
" " << numberOfAPVs <<
" " << stripLength <<
" " <<
thickness <<
"\n";
68 edm::LogError(
"SiStripDetInfoFileWriter::beginRun - Unable to open file") << endl;
T getUntrackedParameter(std::string const &, T const &) const
SiStripDetInfoFileWriter(const edm::ParameterSet &)
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
const Bounds & bounds() const
DetId geographicalId() const
The label of this GeomDet.
virtual float thickness() const =0
virtual float stripLength() const =0
const Plane & specificSurface() const
Same as surface(), kept for backward compatibility.
~SiStripDetInfoFileWriter() override
virtual int nstrips() const =0
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
void beginRun(const edm::Run &, const edm::EventSetup &iSetup) override
Namespace of DDCMS conversion namespace.