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