CMS 3D CMS Logo

Public Member Functions | Private Types | Private Attributes

RPCSeedFinder Class Reference

#include <RPCSeedFinder.h>

List of all members.

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.

                             {

    // Initiate the member
    isrecHitsset = false;
    isConfigured = false;
    isOutputset = false;
    isEventSetupset = false;
    oneSeed.clear();
}
RPCSeedFinder::~RPCSeedFinder ( )

Definition at line 24 of file RPCSeedFinder.cc.

                              {

}

Member Function Documentation

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;
}

Member Data Documentation

Definition at line 50 of file RPCSeedFinder.h.

Definition at line 46 of file RPCSeedFinder.h.

Definition at line 49 of file RPCSeedFinder.h.

Definition at line 45 of file RPCSeedFinder.h.

Definition at line 42 of file RPCSeedFinder.h.

Definition at line 47 of file RPCSeedFinder.h.