30 const std::vector<TriggerThreshold *> *caloThresholds) {
105 std::map<unsigned int, TriggerThreshold *> thrMap;
106 for (std::vector<TriggerThreshold *>::const_iterator it =
107 caloThresholds->begin();
108 it != caloThresholds->end(); ++it)
110 if ((*it)->type() == jetTriggerType)
112 unsigned int num =
static_cast<unsigned int>((*it)->thresholdNumber());
113 thrMap.insert(std::map<unsigned int, TriggerThreshold *>::value_type(num, (*it)));
120 const vector<unsigned int> passed_thresholds =
126 int((this->
eta() + ((this->
eta() > 0.01) ? 0.025 : -0.025)) / 0.1) - 1;
131 for (vector<unsigned int>::const_iterator itp = passed_thresholds.begin();
132 itp != passed_thresholds.end(); ++itp)
134 std::map<unsigned int, TriggerThreshold *>::const_iterator thr =
135 thrMap.find(*itp - 1);
136 if (thr != thrMap.end())
139 thr->second->triggerThresholdValue(ieta, iphi);
146 std::map<unsigned int, unsigned int>::value_type(*itp, jtv->
window()));
164 int((this->
eta() + ((this->
eta() > 0.01) ? 0.025 : -0.025)) / 0.1) - 1;
172 for (std::vector<TriggerThreshold *>::const_iterator it =
173 caloThresholds->begin();
174 it != caloThresholds->end(); ++it) {
182 unsigned int etCut = jtv->
ptcut();
188 unsigned int num =
static_cast<unsigned int>((*it)->thresholdNumber());
190 std::map<unsigned int, unsigned int>::value_type(num, etCut));
192 std::map<unsigned int, unsigned int>::value_type(num, window));
203 int ieta = int((this->
eta() + ((this->
eta() > 0.01) ? 0.025 : -0.025)) / 0.1) - 1;
211 for (
const shared_ptr<TrigConf::L1Threshold> &thr : l1menu->thresholds(
"JET"))
222 unsigned int etCut = std::round(jetThr->thrValue(ieta));
223 unsigned int etCounts = jetThr->thrValueCounts(ieta);
226 bool eTPassed = (roiET > etCounts);
230 const unsigned int num = thr->mapping();
268 return ((col & 2) << 1) + (row >> 1);
276 return (col & 1) + ((row & 1) << 1);
287 std::map<unsigned int, unsigned int>::const_iterator it =
290 if (it->second > highest)
291 highest = it->second;
304 std::map<unsigned int, unsigned int>::const_iterator it =
307 if (it->second > highest)
308 highest = it->second;
324 std::map<unsigned int, unsigned int>::const_iterator it =
339 return (((1 << (thresholdNumber + 7)) &
m_roiWord) > 0);
351std::vector<unsigned int>
354 std::vector<unsigned int> newVec;
364 for (
unsigned int iTh = 0; iTh <= nThresh; ++iTh) {
365 std::map<unsigned int, unsigned int>::const_iterator it =
368 newVec.push_back(iTh);
Scalar eta() const
pseudorapidity method
CoordinateRange class declaration.
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
This class defines the reconstructed em/tau hadron ROI.
bool passedFwdThreshold(unsigned int thresholdNumber) const
Same for forward jets.
unsigned int windowSize(unsigned int thresh) const
returns the size of the window.
void constructRun2(const std::vector< TrigConf::TriggerThreshold * > *caloThresholds)
construct call for Run 2 Jet RoIs
int m_version
Store the RoI format version.
virtual unsigned int frame() const
returns RoI frame number
bool isValidThreshold(unsigned int thresh) const
returns true if thresh is a valid threshold number
void constructRun1(const std::vector< TrigConf::TriggerThreshold * > *caloThresholds)
The "construct" calls unpack the RoIWord and copy information about the passed thresholds from the ve...
virtual unsigned int etLarge() const
returns roi ET in larger cluster.
virtual unsigned int etSmall() const
returns roi ET in smaller cluster.
virtual unsigned int module() const
returns JEM number
unsigned int triggerThreshold(unsigned int thresh) const
returns the value of the trigger threshold for the threshold passed.
void constructRun3(const TrigConf::L1Menu *const l1menu)
CoordinateRange m_coordRange
this contains the coordinate range worked out from the RoIWord hardware coord (i.e.
virtual double eta() const
returns eta coord of ROI
virtual unsigned int crate() const
returns JEP crate number
std::vector< unsigned int > thresholdsPassed() const
returns a vector of thresholds passed.
std::map< unsigned int, unsigned int > m_triggerThresholdValue
virtual unsigned int roiWord() const
returns roi word
virtual double phi() const
returns phi coord of ROI
bool passedThreshold(unsigned int thresholdNumber) const
returns TRUE if threshold number threshold_number has been passed by this ROI.
JEPRoIDecoder * m_decoder
Used for decoding RoI word.
virtual unsigned int localcoord() const
returns local coordinate within frame
std::map< unsigned int, unsigned int > m_windowSize
unsigned int thresholdPattern() const
returns bitmask of passed thresholds
unsigned long int m_thresholdMask
Information on trigger thresholds passed by RoI.
unsigned long int m_roiWord
this is the actual format of the data sent from the LVL1 hardware.
const CoordinateRange & coord() const
returns the CoordinateRange.
bool isForwardJet() const
returns true if the RoI is a forward jet RoI.
RecJetRoI & operator=(RecJetRoI const &obj)
static const unsigned int Error
static const unsigned int numOfJetCMXThresholds
static const unsigned int numOfJetThresholds
static const unsigned int numOfFwdJetThresholds
float globalJetScale() const
virtual JetWindowSize::Size windowSize() const override
virtual int thresholdValueCount() const override
static std::string & typeAsString(TriggerType tt)
const CaloInfo & caloInfo() const
unsigned int window() const
Forward iterator to traverse the main components of the trigger configuration.