CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Attributes
RPCSeedFinder Class Reference

#include <RPCSeedFinder.h>

Public Member Functions

void configure (const edm::ParameterSet &iConfig)
 
 RPCSeedFinder ()
 
void seed ()
 
void setEventSetup (const edm::EventSetup &iSetup)
 
void setOutput (std::vector< weightedTrajectorySeed > *goodweightedRef, std::vector< weightedTrajectorySeed > *candidateweightedRef)
 
void setrecHits (ConstMuonRecHitContainer &recHits)
 
 ~RPCSeedFinder ()
 

Private Types

typedef
MuonTransientTrackingRecHit::ConstMuonRecHitContainer 
ConstMuonRecHitContainer
 
typedef
MuonTransientTrackingRecHit::ConstMuonRecHitPointer 
ConstMuonRecHitPointer
 
typedef
MuonTransientTrackingRecHit::MuonRecHitContainer 
MuonRecHitContainer
 
typedef
MuonTransientTrackingRecHit::MuonRecHitPointer 
MuonRecHitPointer
 
typedef
RPCSeedPattern::weightedTrajectorySeed 
weightedTrajectorySeed
 

Private Attributes

std::vector
< weightedTrajectorySeed > * 
candidateweightedSeedsRef
 
const edm::EventSetupeSetup
 
std::vector
< weightedTrajectorySeed > * 
goodweightedSeedsRef
 
bool isConfigured
 
bool isEventSetupset
 
bool isOutputset
 
bool isrecHitsset
 
RPCSeedPattern oneSeed
 

Detailed Description

Author
Haiyun.Teng - Peking University

Definition at line 23 of file RPCSeedFinder.h.

Member Typedef Documentation

Definition at line 28 of file RPCSeedFinder.h.

Definition at line 26 of file RPCSeedFinder.h.

Definition at line 27 of file RPCSeedFinder.h.

Definition at line 25 of file RPCSeedFinder.h.

Definition at line 29 of file RPCSeedFinder.h.

Constructor & Destructor Documentation

RPCSeedFinder::RPCSeedFinder ( )

Definition at line 14 of file RPCSeedFinder.cc.

14  {
15 
16  // Initiate the member
17  isrecHitsset = false;
18  isConfigured = false;
19  isOutputset = false;
20  isEventSetupset = false;
21  oneSeed.clear();
22 }
RPCSeedPattern oneSeed
Definition: RPCSeedFinder.h:47
bool isEventSetupset
Definition: RPCSeedFinder.h:45
RPCSeedFinder::~RPCSeedFinder ( )

Definition at line 24 of file RPCSeedFinder.cc.

24  {
25 
26 }

Member Function Documentation

void RPCSeedFinder::configure ( const edm::ParameterSet iConfig)

Definition at line 28 of file RPCSeedFinder.cc.

28  {
29 
30  oneSeed.configure(iConfig);
31  isConfigured = true;
32 }
void configure(const edm::ParameterSet &iConfig)
RPCSeedPattern oneSeed
Definition: RPCSeedFinder.h:47
void RPCSeedFinder::seed ( )

Definition at line 55 of file RPCSeedFinder.cc.

References gather_cfg::cout.

55  {
56 
57  cout << "[RPCSeedFinder] --> seeds called" << endl;
58 
59  if(isrecHitsset == false || isOutputset == false || isConfigured == false || isEventSetupset == false)
60  {
61  cout << "Configuration or IO is not set yet" << endl;
62  return;
63  }
64 
65  weightedTrajectorySeed theweightedSeed;
66  int isGoodSeed = 0;
67  const edm::EventSetup &iSetup = *eSetup;
68  theweightedSeed = oneSeed.seed(iSetup, isGoodSeed);
69  // Push back the good seed
70  if(isGoodSeed == 1)
71  {
72  cout << "[RPCSeedFinder] --> Seeds from " << oneSeed.nrhit() << " recHits." << endl;
73  goodweightedSeedsRef->push_back(theweightedSeed);
74  }
75  // Push back cadidate seed but not the fake seed
76  if(isGoodSeed >= 0)
77  {
78  candidateweightedSeedsRef->push_back(theweightedSeed);
79  }
80 
81  // Unset the signal
82  oneSeed.clear();
83  isrecHitsset = false;
84 }
unsigned int nrhit() const
std::vector< weightedTrajectorySeed > * candidateweightedSeedsRef
Definition: RPCSeedFinder.h:50
weightedTrajectorySeed seed(const edm::EventSetup &eSetup, int &isGoodSeed)
const edm::EventSetup * eSetup
Definition: RPCSeedFinder.h:46
std::vector< weightedTrajectorySeed > * goodweightedSeedsRef
Definition: RPCSeedFinder.h:49
RPCSeedPattern oneSeed
Definition: RPCSeedFinder.h:47
RPCSeedPattern::weightedTrajectorySeed weightedTrajectorySeed
bool isEventSetupset
Definition: RPCSeedFinder.h:45
tuple cout
Definition: gather_cfg.py:41
void RPCSeedFinder::setEventSetup ( const edm::EventSetup iSetup)

Definition at line 49 of file RPCSeedFinder.cc.

49  {
50 
51  eSetup = &iSetup;
52  isEventSetupset = true;
53 }
const edm::EventSetup * eSetup
Definition: RPCSeedFinder.h:46
bool isEventSetupset
Definition: RPCSeedFinder.h:45
void RPCSeedFinder::setOutput ( std::vector< weightedTrajectorySeed > *  goodweightedRef,
std::vector< weightedTrajectorySeed > *  candidateweightedRef 
)

Definition at line 34 of file RPCSeedFinder.cc.

34  {
35 
36  goodweightedSeedsRef = goodweightedRef;
37  candidateweightedSeedsRef = candidateweightedRef;
38  isOutputset = true;
39 }
std::vector< weightedTrajectorySeed > * candidateweightedSeedsRef
Definition: RPCSeedFinder.h:50
std::vector< weightedTrajectorySeed > * goodweightedSeedsRef
Definition: RPCSeedFinder.h:49
void RPCSeedFinder::setrecHits ( ConstMuonRecHitContainer recHits)

Definition at line 41 of file RPCSeedFinder.cc.

41  {
42 
43  oneSeed.clear();
44  for (ConstMuonRecHitContainer::const_iterator iter = recHits.begin(); iter!= recHits.end(); iter++)
45  oneSeed.add(*iter);
46  isrecHitsset = true;
47 }
RPCSeedPattern oneSeed
Definition: RPCSeedFinder.h:47
void add(const ConstMuonRecHitPointer &hit)

Member Data Documentation

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
bool RPCSeedFinder::isEventSetupset
private

Definition at line 45 of file RPCSeedFinder.h.

bool RPCSeedFinder::isOutputset
private
bool RPCSeedFinder::isrecHitsset
private

Definition at line 42 of file RPCSeedFinder.h.

RPCSeedPattern RPCSeedFinder::oneSeed
private

Definition at line 47 of file RPCSeedFinder.h.