27 const std::vector<TrigConf::TriggerThreshold *> *caloThresholds)
30 this->
construct(RoIWord0, RoIWord1, RoIWord2, caloThresholds);
77 const std::vector<TriggerThreshold *> *caloThresholds)
84 std::map< int, TriggerThreshold* > etMissMap;
85 std::map< int, TriggerThreshold* > sumEtMap;
86 std::map< int, TriggerThreshold* > mEtSigMap;
87 for( std::vector< TriggerThreshold* >::const_iterator it = caloThresholds->begin();
88 it != caloThresholds->end(); ++it ) {
90 int num = ( *it )->thresholdNumber();
91 etMissMap.insert( std::map< int, TriggerThreshold* >::value_type( num, *it ) );
94 int num = ( *it )->thresholdNumber();
95 sumEtMap.insert( std::map< int, TriggerThreshold* >::value_type( num, *it ) );
98 int num = ( *it )->thresholdNumber();
99 mEtSigMap.insert( std::map< int, TriggerThreshold* >::value_type( num, *it ) );
106 std::map<int, TriggerThreshold *>::const_iterator thr = etMissMap.find(xeMapping - 1);
107 if (thr != etMissMap.end()) {
115 std::map<int, TriggerThreshold *>::const_iterator thr = sumEtMap.find(teMapping - 1);
116 if (thr != sumEtMap.end()) {
124 std::map<int, TriggerThreshold *>::const_iterator thr = mEtSigMap.find(xsMapping - 1);
125 if (thr != mEtSigMap.end()) {
135 if ( ! l1menu->thresholds(
"XE").empty() ) {
143 if ( ! l1menu->thresholds(
"TE").empty() ) {
151 if ( ! l1menu->thresholds(
"XS").empty() ) {
183 return (
get.etMissThresholdPassed(
m_roiWord2, thresholdNumber ) );
195 return (
get.sumEtThresholdPassed(
m_roiWord1, thresholdNumber ) );
207 return (
get.mEtSigThresholdPassed(
m_roiWord0, thresholdNumber ) );
A level 1 calorimeter trigger conversion service: returns the Coordinate represented by a RoI word.
This class defines the reconstructed EnergySum ROI.
std::vector< unsigned int > etMissThresholdsPassed() const
returns a vector of thresholds passed.
unsigned int roiWord2() const
returns roi word 2.
std::map< int, unsigned int > m_etMissThresholdValue
bool passedMEtSigThreshold(unsigned int thresholdNumber) const
returns TRUE if threshold number threshold_number has been passed by this ROI.
unsigned long int m_roiWord2
this is the actual format of the data sent from the LVL1 hardware.
unsigned int sumEtTriggerThreshold(const unsigned int thresh) const
returns the value of the trigger threshold for the threshold passed.
bool isValidMEtSigThreshold(const unsigned int thresh) const
returns true if thresh is a valid Sum Et threshold number
bool overflowX() const
returns the Ex overflow bit
unsigned int roiWord1() const
returns roi word 1.
int energyY() const
returns the (signed) Ey energy projection.
RecEnergyRoI & operator=(const RecEnergyRoI &obj)
int energyT() const
returns the total ET.
unsigned int mEtSigTriggerThreshold(const unsigned int thresh) const
returns the value of the trigger threshold for the threshold passed.
std::vector< unsigned int > sumEtThresholdsPassed() const
returns a vector of thresholds passed.
unsigned long int m_roiWord0
this is the actual format of the data sent from the LVL1 hardware.
std::map< int, unsigned int > m_mEtSigThresholdValue
void construct(unsigned int RoIWord0, unsigned int RoIWord1, unsigned int RoIWord2, const std::vector< TrigConf::TriggerThreshold * > *caloThresholds)
The "construct" call unpacks the RoIWord and copies information about the passed thresholds from the ...
unsigned int etMissTriggerThreshold(const unsigned int thresh) const
returns the value of the trigger threshold for the threshold passed.
unsigned int roiWord0() const
returns roi word 0.
bool passedSumEtThreshold(unsigned int thresholdNumber) const
returns TRUE if threshold number threshold_number has been passed by this ROI.
bool overflowY() const
returns the Ey overflow bit
bool overflowT() const
returns the ETsum overflow bit
unsigned long int m_roiWord1
this is the actual format of the data sent from the LVL1 hardware.
bool passedEtMissThreshold(unsigned int thresholdNumber) const
returns TRUE if threshold number threshold_number has been passed by this ROI.
bool isValidEtMissThreshold(const unsigned int thresh) const
returns true if thresh is a valid EtMiss threshold number
bool isValidSumEtThreshold(const unsigned int thresh) const
returns true if thresh is a valid Sum Et threshold number
int energyX() const
returns the (signed) Ex energy projection.
std::map< int, unsigned int > m_sumEtThresholdValue
std::vector< unsigned int > mEtSigThresholdsPassed() const
returns a vector of thresholds passed.
static const unsigned int numOfSumEtThresholds
static const unsigned int Error
static const unsigned int numOfMEtSigThresholds
static const unsigned int numOfMissingEtThresholds
static std::string & typeAsString(TriggerType tt)
Standard L1 threshold configuration.
virtual int thresholdValueCount() const
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Forward iterator to traverse the main components of the trigger configuration.