CMS 3D CMS Logo

Functions
Stage1Layer2SingleTrackHI.cc File Reference
#include "L1Trigger/L1TCalorimeter/interface/Stage1Layer2TauAlgorithmImp.h"
#include "DataFormats/L1CaloTrigger/interface/L1CaloRegionDetId.h"
#include "L1Trigger/L1TCalorimeter/interface/PUSubtractionMethods.h"
#include "L1Trigger/L1TCalorimeter/interface/legacyGtHelper.h"
#include "L1Trigger/L1TCalorimeter/interface/HardwareSortingMethods.h"

Go to the source code of this file.

Functions

void findRegions (const std::vector< l1t::CaloRegion > *sr, std::vector< l1t::Tau > *t, const int etaMask)
 

Function Documentation

void findRegions ( const std::vector< l1t::CaloRegion > *  sr,
std::vector< l1t::Tau > *  t,
const int  etaMask 
)

Definition at line 49 of file Stage1Layer2SingleTrackHI.cc.

Referenced by l1t::Stage1Layer2SingleTrackHI::processEvent(), and l1t::Stage1Layer2SingleTrackHI::Stage1Layer2SingleTrackHI().

50 {
51  for(std::vector<l1t::CaloRegion>::const_iterator region = sr->begin(); region != sr->end(); region++)
52  {
53  int tauEta = region->hwEta();
54  if(tauEta < 4 || tauEta > 17) continue; // taus CANNOT be in the forward region
55  if((etaMask & (1<<tauEta))>>tauEta) continue;
56 
57  ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > TauLorentz(0,0,0,0);
58  l1t::Tau taucand(*&TauLorentz,region->hwPt(),region->hwEta(),region->hwPhi());
59 
60  t->push_back(taucand);
61  }
62 }
Definition: Tau.h:21