Skip to content

Commit

Permalink
Merge branch 'l1t-devel-CMSSW_7_1_0_pre7' of github.com:cms-l1t-offli…
Browse files Browse the repository at this point in the history
…ne/cmssw into mydevel
  • Loading branch information
dburns7 committed May 20, 2014
2 parents 92f0a04 + 7a44458 commit 45bdcd1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@ l1t::Stage2Layer2ClusterAlgorithmFirmwareImp1::Stage2Layer2ClusterAlgorithmFirmw
params_(params)
{


m_seedThreshold = params_->egSeedThresholdHw();
m_clusterThreshold = params_->egNeighbourThresholdHw();

if (m_clusterInput==E) {
m_seedThreshold = floor(params_->egSeedThreshold()/params_->towerLsbE());
m_clusterThreshold = floor(params_->egNeighbourThreshold()/params_->towerLsbE());
}
if (m_clusterInput==H) {
m_seedThreshold = floor(params_->egSeedThreshold()/params_->towerLsbH());
m_clusterThreshold = floor(params_->egNeighbourThreshold()/params_->towerLsbH());
}
else {
m_seedThreshold = floor(params_->egSeedThreshold()/params_->towerLsbSum());
m_clusterThreshold = floor(params_->egNeighbourThreshold()/params_->towerLsbSum());
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ void l1t::Stage2Layer2TauAlgorithmFirmwareImp1::processEvent(const std::vector<l


for ( auto itr = clusters.cbegin(); itr != clusters.end(); ++itr ) {
math::XYZTLorentzVector p4;
l1t::Tau tau( p4, itr->hwPt(), itr->hwEta(), itr->hwPhi(), 0);
taus.push_back(tau);
if(itr->checkClusterFlag(l1t::CaloCluster::PASS_THRES_SEED) &&
itr->checkClusterFlag(l1t::CaloCluster::PASS_FILTER_CLUSTER) ){
math::XYZTLorentzVector p4;
l1t::Tau tau( p4, itr->hwPt(), itr->hwEta(), itr->hwPhi(), 0);
taus.push_back(tau);
}
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void l1t::Stage2MainProcessorFirmwareImp1::processEvent(const std::vector<l1t::C
m_towerAlgo->processEvent( inTowers, outTowers );
m_egClusterAlgo->processEvent( outTowers, egClusters );
m_egAlgo->processEvent( egClusters, outTowers, egammas );
m_egClusterAlgo->processEvent( outTowers, tauClusters );
m_tauClusterAlgo->processEvent( outTowers, tauClusters );
m_tauAlgo->processEvent( tauClusters, taus );
m_jetAlgo->processEvent( outTowers, jets );
m_sumAlgo->processEvent( outTowers, towerSums );
Expand Down

0 comments on commit 45bdcd1

Please sign in to comment.