FastTrackerRecHitCombiner::FastTrackerRecHitCombiner |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 45 of file FastTrackerRecHitCombiner.cc.
50 produces<FastTrackerRecHitCombinationCollection>();
T getParameter(std::string const &) const
edm::EDGetTokenT< FastTrackerRecHitRefCollection > simHit2RecHitMapToken
edm::EDGetTokenT< edm::PSimHitContainer > simHitsToken
FastTrackerRecHitCombiner::~FastTrackerRecHitCombiner |
( |
| ) |
|
|
inlineoverride |
void FastTrackerRecHitCombiner::endStream |
( |
| ) |
|
|
inlineoverrideprivate |
Definition at line 55 of file FastTrackerRecHitCombiner.cc.
References edm::Event::getByToken(), edm::Ref< C, T, F >::isNull(), minNHits, eostools::move(), convertSQLitetoXML_cfg::output, edm::Event::put(), rpcPointValidation_cfi::recHit, rpcPointValidation_cfi::simHit, simHit2RecHitMapToken, trackerHits::simHits, simHitsToken, and PSimHit::trackId().
Referenced by beginStream(), JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
69 for(
unsigned int simHitCounter = 0;simHitCounter < simHits->size();simHitCounter++){
77 currentCombination.push_back(recHit);
80 if(simHits->size()-simHitCounter == 1 || simHit.
trackId() != (*simHits)[simHitCounter+1].trackId() ){
82 if(currentCombination.size() >=
minNHits){
83 currentCombination.shrink_to_fit();
84 output->push_back(currentCombination);
86 currentCombination.clear();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< FastTrackerRecHitRefCollection > simHit2RecHitMapToken
bool isNull() const
Checks for null.
std::vector< FastTrackerRecHitRef > FastTrackerRecHitCombination
std::vector< FastTrackerRecHitCombination > FastTrackerRecHitCombinationCollection
edm::EDGetTokenT< edm::PSimHitContainer > simHitsToken
unsigned int trackId() const
unsigned int FastTrackerRecHitCombiner::minNHits |
|
private |