CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
Stage1Layer2EGammaAlgorithmImpHI.cc File Reference
#include "L1Trigger/L1TCalorimeter/interface/Stage1Layer2EGammaAlgorithmImp.h"
#include "DataFormats/L1TCalorimeter/interface/CaloRegion.h"
#include "DataFormats/L1CaloTrigger/interface/L1CaloRegionDetId.h"
#include "L1Trigger/L1TCalorimeter/interface/PUSubtractionMethods.h"
#include "L1Trigger/L1TCalorimeter/interface/HardwareSortingMethods.h"
#include "L1Trigger/L1TCalorimeter/interface/JetFinderMethods.h"
#include "L1Trigger/L1TCalorimeter/interface/legacyGtHelper.h"
#include <bitset>

Go to the source code of this file.

Functions

void verboseDumpEGammas (const std::vector< l1t::EGamma > &egs)
 

Function Documentation

void verboseDumpEGammas ( const std::vector< l1t::EGamma > &  egs)

Definition at line 128 of file Stage1Layer2EGammaAlgorithmImpHI.cc.

References gather_cfg::cout, and l1t::pack16bitsEgammaSpecial().

129 {
130  // int fwPhi[18] = { 4,
131  // 3 ,
132  // 2 ,
133  // 1 ,
134  // 0 ,
135  // 17 ,
136  // 16 ,
137  // 15 ,
138  // 14 ,
139  // 13 ,
140  // 12 ,
141  // 11 ,
142  // 10 ,
143  // 9 ,
144  // 8 ,
145  // 7 ,
146  // 6 ,
147  // 5 };
148 
149  // int fwEta[22] = {0,
150  // 1,
151  // 2,
152  // 3,
153  // 0,
154  // 1,
155  // 2,
156  // 3,
157  // 4,
158  // 5,
159  // 6,
160  // 0,
161  // 1,
162  // 2,
163  // 3,
164  // 4,
165  // 5,
166  // 6,
167  // 0,
168  // 1,
169  // 2,
170  // 3};
171 
172 
173  std::cout << "pt eta phi" << std::endl;
174  for(std::vector<l1t::EGamma>::const_iterator itEGamma = jets.begin();
175  itEGamma != jets.end(); ++itEGamma){
176 
177  //std::cout << itEGamma->hwPt() << " ";
178  //std::cout << fwEta[itEGamma->hwEta()] << " " ;
179  //std::cout << fwPhi[itEGamma->hwPhi()] << " ";
180  //std::cout << itEGamma->hwEta() << " " ;
181  //std::cout << itEGamma->hwPhi() << std::endl;
182  //bool sign = (itEGamma->hwEta() < 11);
183  //std::cout << sign << std::endl;
184  std::cout << std::hex << pack16bitsEgammaSpecial(itEGamma->hwPt(), itEGamma->hwEta(), itEGamma->hwPhi()) << std::endl;
185 
186 
187  }
188 }
unsigned int pack16bitsEgammaSpecial(int pt, int eta, int phi)
vector< PseudoJet > jets
tuple cout
Definition: gather_cfg.py:121