CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 98 of file Stage1Layer2SingleTrackHI.cc.

References HLT_25ns14e33_v3_cff::region.

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

99 {
100  for(std::vector<l1t::CaloRegion>::const_iterator region = sr->begin(); region != sr->end(); region++)
101  {
102  int tauEta = region->hwEta();
103  if(tauEta < 4 || tauEta > 17) continue; // taus CANNOT be in the forward region
104  if((etaMask & (1<<tauEta))>>tauEta) continue;
105 
106  ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > TauLorentz(0,0,0,0);
107  l1t::Tau taucand(*&TauLorentz,region->hwPt(),region->hwEta(),region->hwPhi());
108 
109  t->push_back(taucand);
110  }
111 }
Definition: Tau.h:13