L1TriggerConfig/RPCTriggerConfig/test/DumpL1RPCHsbConfig.cc
// ------------ method called to for each event  ------------
method called to for each event
method called to for each event
void DumpL1RPCHsbConfig::analyze(edm::StreamID, const edm::Event& iEvent, const edm::EventSetup& iSetup) const {
  using namespace edm;
  edm::ESHandle<L1RPCHsbConfig> hsbConfig = iSetup.getHandle(getToken_);
  LogTrace("DumpL1RPCHsbConfig") << std::endl;
  LogDebug("DumpL1RPCHsbConfig") << "\n\n Printing L1RPCHsbConfigRcd record\n" << std::endl;
  LogTrace("DumpL1RPCHsbConfig") << "\nChecking HSB inputs: \n" << std::endl;
  LogTrace("DumpL1RPCHsbConfig") << " HSB0: ";
  for (int i = 0; i < hsbConfig->getMaskSize(); ++i) {
    LogTrace("DumpL1RPCHsbConfig") << " Input " << i << " " << hsbConfig->getHsbMask(0, i) << " ";
  }
  std::cout << std::endl;
  LogTrace("DumpL1RPCHsbConfig") << " HSB1: ";
  for (int i = 0; i < hsbConfig->getMaskSize(); ++i) {
    LogTrace("DumpL1RPCHsbConfig") << " Input " << i << " " << hsbConfig->getHsbMask(1, i) << " ";
  }
}
void DumpL1RPCHsbConfig :: analyze ( edm :: StreamID , const edm :: Event & iEvent , const edm :: EventSetup & iSetup ) const { using namespace edm ; edm :: ESHandle < L1RPCHsbConfig > hsbConfig = iSetup . getHandle ( getToken_ ) ; LogTrace ( " " ) << std :: endl ; LogDebug ( " " ) << " \n \n \n " << std :: endl ; LogTrace ( " " ) << " \n \n " << std :: endl ; LogTrace ( " " ) << " " ; for ( int i = 0 ; i < hsbConfig -> getMaskSize ( ) ; ++ i ) { LogTrace ( " " ) << " " << i << " " << hsbConfig -> getHsbMask ( 0 , i ) << " " ; } std :: cout << std :: endl ; LogTrace ( " " ) << " " ; for ( int i = 0 ; i < hsbConfig -> getMaskSize ( ) ; ++ i ) { LogTrace ( " " ) << " " << i << " " << hsbConfig -> getHsbMask ( 1 , i ) << " " ; } }
method called to for each event
method called to for each event