84 : m_inputTFile(nullptr),
85 m_outputTFile(nullptr),
87 m_outputTree(nullptr),
129 uint32_t nEntries = m_inputTree->GetEntries();
131 for (uint32_t
i = 0;
i < nEntries; ++
i) {
132 m_inputTree->GetEntry(
i);
133 std::map<uint32_t, uint32_t>::const_iterator it =
theMap.find(
rawid_i);
152 m_outputTFile->Close();
157 if (!myfile.is_open())
158 throw cms::Exception(
"FileAccess") <<
"Unable to open input text file";
164 while (!myfile.eof() && myfile.good()) {
165 myfile >> oldid >> newid;
168 std::pair<uint32_t, uint32_t> pairType;
170 pairType.first = oldid;
171 pairType.second = newid;
174 pairType.first = newid;
175 pairType.second = oldid;
T getUntrackedParameter(std::string const &, T const &) const
std::string m_conversionType
#define DEFINE_FWK_MODULE(type)
U second(std::pair< T, U > const &p)
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
Tracker_OldtoNewConverter(const edm::ParameterSet &)
std::map< uint32_t, uint32_t > theMap
Log< level::Info, false > LogInfo
~Tracker_OldtoNewConverter() override