1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*----------------------------------------------------------------------
Toy EDAnalyzer for testing purposes only.
It reads ros-rob and tdc-cell connections from ascii files and dumps
the resulting compact map.
----------------------------------------------------------------------*/
#include <stdexcept>
#include <iostream>
#include <fstream>
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "CondTools/DT/test/stubs/DTCompactMapDump.h"
#include "CondTools/DT/interface/DTCompactMapWriter.h"
namespace edmtest {
DTCompactMapDump::DTCompactMapDump(edm::ParameterSet const& p) {
// parameters to setup
fileName = p.getParameter<std::string>("fileName");
}
DTCompactMapDump::DTCompactMapDump(int i) {}
void DTCompactMapDump::analyze(const edm::Event& e, const edm::EventSetup& context) {}
void DTCompactMapDump::endJob() {
std::ifstream jobDesc(fileName.c_str());
DTCompactMapWriter::buildSteering(jobDesc);
}
DEFINE_FWK_MODULE(DTCompactMapDump);
} // namespace edmtest
|