19 sinPhi.push_back(
sin(2. * 3.1415927 *
i * 1.0 / L1CaloRegionDetId::N_PHI));
20 cosPhi.push_back(
cos(2. * 3.1415927 *
i * 1.0 / L1CaloRegionDetId::N_PHI));
23 sinPhi.push_back(
sin(-3.1415927 + 2. * 3.1415927 * (
i-9) * 1.0 / L1CaloRegionDetId::N_PHI));
24 cosPhi.push_back(
cos(-3.1415927 + 2. * 3.1415927 * (
i-9) * 1.0 / L1CaloRegionDetId::N_PHI));
31 const std::vector<l1t::CaloEmCand> & EMCands,
32 const std::vector<l1t::Tau> *
taus,
38 for(std::vector<CaloRegion>::const_iterator region = regions.begin(); region != regions.end(); region++) {
40 int ieta=region->hwEta();
41 if (ieta > 3 && ieta < 18) {
45 int iphi=region->hwPhi();
46 regionET=region->hwPt();
48 q2x+= regionET *
cosPhi[iphi];
49 q2y+= regionET *
sinPhi[iphi];
51 int HFq2 = q2x*q2x+q2y*q2y;
std::vector< double > cosPhi
Stage1Layer2FlowAlgorithm(CaloParamsHelper const *params)
Sin< T >::type sin(const T &t)
void SetRing(unsigned index, int value)
Cos< T >::type cos(const T &t)
void processEvent(const std::vector< l1t::CaloRegion > ®ions, const std::vector< l1t::CaloEmCand > &EMCands, const std::vector< l1t::Tau > *taus, l1t::CaloSpare *spare) override
std::vector< double > sinPhi
static const unsigned N_PHI