Go to the documentation of this file.
19 edm::LogInfo(
"SiStripDetInfoFileWriter::SiStripDetInfoFileWriter");
22 tkGeomToken_ = esConsumes<edm::Transition::BeginRun>();
26 edm::LogInfo(
"SiStripDetInfoFileWriter::~SiStripDetInfoFileWriter");
30 outputFile_.open(filePath_.c_str());
32 if (outputFile_.is_open()) {
33 const auto&
dd = iSetup.
getData(tkGeomToken_);
35 edm::LogInfo(
"SiStripDetInfoFileWriter::beginRun - got geometry ") << std::endl;
37 edm::LogInfo(
"SiStripDetInfoFileWriter") <<
" There are " <<
dd.detUnits().size() <<
" detectors" << std::endl;
39 for (
const auto& it :
dd.detUnits()) {
48 if (numberOfAPVs < 1 || numberOfAPVs > 6) {
51 <<
"Will not write this entry to file" << endl;
55 outputFile_ << detid <<
" " << numberOfAPVs <<
" " << stripLength <<
" " <<
thickness <<
"\n";
64 edm::LogError(
"SiStripDetInfoFileWriter::beginRun - Unable to open file") << endl;
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Info, false > LogInfo
SiStripDetInfoFileWriter(const edm::ParameterSet &)
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.
Log< level::Error, false > LogError
~SiStripDetInfoFileWriter() override
virtual int nstrips() const =0
bool getData(T &iHolder) const
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.