L1TriggerConfig/RPCTriggerConfig/test/DumpConeDefinition.cc
// ------------ method called to for each event  ------------
method called to for each event
method called to for each event
void DumpConeDefinition::analyze(edm::StreamID, const edm::Event& iEvent, const edm::EventSetup& iSetup) const {
  using namespace edm;
  L1RPCConeDefinition const& l1RPCConeDefinition = iSetup.getData(getToken_);
  L1RPCConeDefinition::TLPSizeVec::const_iterator it = l1RPCConeDefinition.getLPSizeVec().begin();
  L1RPCConeDefinition::TLPSizeVec::const_iterator itEnd = l1RPCConeDefinition.getLPSizeVec().end();
  LogTrace("DumpConeDefinition") << std::endl;
  LogDebug("DumpConeDefinition") << "\n Printing L1RPCConeDefinitionRcd record\n" << std::endl;
  LogTrace("DumpConeDefinition") << "\nlog plane sizes dump: \n" << std::endl;
  for (; it != itEnd; ++it) {
    LogTrace("DumpConeDefinition") << "Tw " << (int)it->m_tower << " lp " << (int)it->m_LP << " size "
                                   << (int)it->m_size << std::endl;
  }
  LogTrace("DumpConeDefinition") << "\nRing to tower connections dump: \n" << std::endl;
  L1RPCConeDefinition::TRingToTowerVec::const_iterator itR = l1RPCConeDefinition.getRingToTowerVec().begin();
  const L1RPCConeDefinition::TRingToTowerVec::const_iterator itREnd = l1RPCConeDefinition.getRingToTowerVec().end();
  for (; itR != itREnd; ++itR) {
    LogTrace("DumpConeDefinition") << "EP " << (int)itR->m_etaPart << " hwPL " << (int)itR->m_hwPlane << " tw "
                                   << (int)itR->m_tower << " index " << (int)itR->m_index << std::endl;
  }
}
void DumpConeDefinition :: analyze ( edm :: StreamID , const edm :: Event & iEvent , const edm :: EventSetup & iSetup ) const { using namespace edm ; L1RPCConeDefinition const & l1RPCConeDefinition = iSetup . getData ( getToken_ ) ; L1RPCConeDefinition :: TLPSizeVec :: const_iterator it = l1RPCConeDefinition . getLPSizeVec ( ) . begin ( ) ; L1RPCConeDefinition :: TLPSizeVec :: const_iterator itEnd = l1RPCConeDefinition . getLPSizeVec ( ) . end ( ) ; LogTrace ( " " ) << std :: endl ; LogDebug ( " " ) << " \n \n " << std :: endl ; LogTrace ( " " ) << " \n \n " << std :: endl ; for ( ; it != itEnd ; ++ it ) { LogTrace ( " " ) << " " << ( int ) it -> m_tower << " " << ( int ) it -> m_LP << " " << ( int ) it -> m_size << std :: endl ; } LogTrace ( " " ) << " \n \n " << std :: endl ; L1RPCConeDefinition :: TRingToTowerVec :: const_iterator itR = l1RPCConeDefinition . getRingToTowerVec ( ) . begin ( ) ; const L1RPCConeDefinition :: TRingToTowerVec :: const_iterator itREnd = l1RPCConeDefinition . getRingToTowerVec ( ) . end ( ) ; for ( ; itR != itREnd ; ++ itR ) { LogTrace ( " " ) << " " << ( int ) itR -> m_etaPart << " " << ( int ) itR -> m_hwPlane << " " << ( int ) itR -> m_tower << " " << ( int ) itR -> m_index << std :: endl ; } }
method called to for each event
method called to for each event