RecoLocalTracker/SiStripRecHitConverter/test/ReadRecHit.cc
// Functions that gets called by framework every event
Functions that gets called by framework every event
Functions that gets called by framework every event
void ReadRecHit::analyze(const edm::Event& e, const edm::EventSetup& es) {
    using namespace edm;
    edm::Handle<SiStripMatchedRecHit2DCollection> rechitsmatched = e.getHandle(matchedRecHitToken_);
    edm::Handle<SiStripRecHit2DCollection> rechitsrphi = e.getHandle(rphiToken_);
    edm::Handle<SiStripRecHit2DCollection> rechitsstereo = e.getHandle(stereoToken_);
    edm::LogInfo("ReadRecHit") << "Matched hits:";
    readRecHitAlgorithm_.run(rechitsmatched.product());
    edm::LogInfo("ReadRecHit") << "Rphi hits:";
    readRecHitAlgorithm_.run(rechitsrphi.product());
    edm::LogInfo("ReadRecHit") << "Stereo hits:";
    readRecHitAlgorithm_.run(rechitsstereo.product());
  }
void ReadRecHit :: analyze ( const edm :: Event & e , const edm :: EventSetup & es ) { using namespace edm ; edm :: Handle < SiStripMatchedRecHit2DCollection > rechitsmatched = e . getHandle ( matchedRecHitToken_ ) ; edm :: Handle < SiStripRecHit2DCollection > rechitsrphi = e . getHandle ( rphiToken_ ) ; edm :: Handle < SiStripRecHit2DCollection > rechitsstereo = e . getHandle ( stereoToken_ ) ; edm :: LogInfo ( " " ) << " " ; readRecHitAlgorithm_ . run ( rechitsmatched . product ( ) ) ; edm :: LogInfo ( " " ) << " " ; readRecHitAlgorithm_ . run ( rechitsrphi . product ( ) ) ; edm :: LogInfo ( " " ) << " " ; readRecHitAlgorithm_ . run ( rechitsstereo . product ( ) ) ; }
Functions that gets called by framework every event
Functions that gets called by framework every event
// Step A: Get Inputs