#include <RPCSeedFinder.h>
Definition at line 23 of file RPCSeedFinder.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitContainer RPCSeedFinder::ConstMuonRecHitContainer [private] |
Definition at line 28 of file RPCSeedFinder.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitPointer RPCSeedFinder::ConstMuonRecHitPointer [private] |
Definition at line 26 of file RPCSeedFinder.h.
typedef MuonTransientTrackingRecHit::MuonRecHitContainer RPCSeedFinder::MuonRecHitContainer [private] |
Definition at line 27 of file RPCSeedFinder.h.
Definition at line 25 of file RPCSeedFinder.h.
typedef RPCSeedPattern::weightedTrajectorySeed RPCSeedFinder::weightedTrajectorySeed [private] |
Definition at line 29 of file RPCSeedFinder.h.
RPCSeedFinder::RPCSeedFinder | ( | ) |
Definition at line 14 of file RPCSeedFinder.cc.
{ // Initiate the member isrecHitsset = false; isConfigured = false; isOutputset = false; isEventSetupset = false; oneSeed.clear(); }
RPCSeedFinder::~RPCSeedFinder | ( | ) |
Definition at line 24 of file RPCSeedFinder.cc.
{ }
void RPCSeedFinder::configure | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 28 of file RPCSeedFinder.cc.
{ oneSeed.configure(iConfig); isConfigured = true; }
void RPCSeedFinder::seed | ( | ) |
Definition at line 55 of file RPCSeedFinder.cc.
References gather_cfg::cout.
{ cout << "[RPCSeedFinder] --> seeds called" << endl; if(isrecHitsset == false || isOutputset == false || isConfigured == false || isEventSetupset == false) { cout << "Configuration or IO is not set yet" << endl; return; } weightedTrajectorySeed theweightedSeed; int isGoodSeed = 0; const edm::EventSetup &iSetup = *eSetup; theweightedSeed = oneSeed.seed(iSetup, isGoodSeed); // Push back the good seed if(isGoodSeed == 1) { cout << "[RPCSeedFinder] --> Seeds from " << oneSeed.nrhit() << " recHits." << endl; goodweightedSeedsRef->push_back(theweightedSeed); } // Push back cadidate seed but not the fake seed if(isGoodSeed >= 0) { candidateweightedSeedsRef->push_back(theweightedSeed); } // Unset the signal oneSeed.clear(); isrecHitsset = false; }
void RPCSeedFinder::setEventSetup | ( | const edm::EventSetup & | iSetup | ) |
Definition at line 49 of file RPCSeedFinder.cc.
{ eSetup = &iSetup; isEventSetupset = true; }
void RPCSeedFinder::setOutput | ( | std::vector< weightedTrajectorySeed > * | goodweightedRef, |
std::vector< weightedTrajectorySeed > * | candidateweightedRef | ||
) |
Definition at line 34 of file RPCSeedFinder.cc.
{ goodweightedSeedsRef = goodweightedRef; candidateweightedSeedsRef = candidateweightedRef; isOutputset = true; }
void RPCSeedFinder::setrecHits | ( | ConstMuonRecHitContainer & | recHits | ) |
Definition at line 41 of file RPCSeedFinder.cc.
{ oneSeed.clear(); for (ConstMuonRecHitContainer::const_iterator iter = recHits.begin(); iter!= recHits.end(); iter++) oneSeed.add(*iter); isrecHitsset = true; }
std::vector<weightedTrajectorySeed>* RPCSeedFinder::candidateweightedSeedsRef [private] |
Definition at line 50 of file RPCSeedFinder.h.
const edm::EventSetup* RPCSeedFinder::eSetup [private] |
Definition at line 46 of file RPCSeedFinder.h.
std::vector<weightedTrajectorySeed>* RPCSeedFinder::goodweightedSeedsRef [private] |
Definition at line 49 of file RPCSeedFinder.h.
bool RPCSeedFinder::isConfigured [private] |
Definition at line 43 of file RPCSeedFinder.h.
Referenced by RPCSeedrecHitFinder::configure(), RPCSeedrecHitFinder::fillrecHits(), and RPCSeedrecHitFinder::RPCSeedrecHitFinder().
bool RPCSeedFinder::isEventSetupset [private] |
Definition at line 45 of file RPCSeedFinder.h.
bool RPCSeedFinder::isOutputset [private] |
Definition at line 44 of file RPCSeedFinder.h.
Referenced by RPCSeedrecHitFinder::fillrecHits(), RPCSeedrecHitFinder::RPCSeedrecHitFinder(), and RPCSeedrecHitFinder::setOutput().
bool RPCSeedFinder::isrecHitsset [private] |
Definition at line 42 of file RPCSeedFinder.h.
RPCSeedPattern RPCSeedFinder::oneSeed [private] |
Definition at line 47 of file RPCSeedFinder.h.