1 #define SiStripMonitorHardware_BuildEventMatchingCode 2 #ifdef SiStripMonitorHardware_BuildEventMatchingCode 4 #ifndef DQM_SiStripMonitorHardware_SiStripSpyEventMatcher_H 5 #define DQM_SiStripMonitorHardware_SiStripSpyEventMatcher_H 11 #include "boost/cstdint.hpp" 12 #include "boost/shared_ptr.hpp" 22 template<
class T>
class DetSetVector;
23 template<
class T>
class DetSet;
37 std::unique_ptr< FEDRawDataCollection >
rawData;
41 std::unique_ptr< edm::DetSetVector<SiStripRawDigi> >
scopeDigis;
48 std::vector<uint32_t>& theTotalEventCounters,
49 std::vector<uint32_t>& theL1ACounters,
50 std::vector<uint32_t>& theAPVAddresses,
78 const SpyEventList* matchesForEvent(
const uint32_t eventId,
const uint8_t apvAddress)
const;
80 void getMatchedCollections(
const uint32_t eventId,
const uint8_t apvAddress,
const SpyEventList* matchingEvents,
91 EventKey(
const uint32_t eventId,
const uint8_t apvAddress);
92 uint32_t
eventId()
const {
return eventId_; }
110 Counters::const_iterator
begin()
const {
return pConst->begin(); }
111 Counters::const_iterator
end()
const {
return pConst->end(); }
128 static void findMatchingFeds(
const uint32_t eventId,
const uint8_t apvAddress,
129 CountersPtr totalEventCounters,
130 CountersPtr l1aCounters,
131 CountersPtr apvAddresses,
132 std::set<uint16_t>& matchingFeds);
133 static void mergeMatchingData(
const std::set<uint16_t>& matchingFeds,
135 CountersPtr inputTotalEventCounters,
136 CountersPtr inputL1ACounters,
137 CountersPtr inputAPVAddresses,
143 std::vector<uint32_t>& outputTotalEventCounters,
144 std::vector<uint32_t>& outputL1ACounters,
145 std::vector<uint32_t>& outputAPVAddresses,
163 std::unique_ptr<edm::VectorInputSource>
const source_;
171 LogDebug(mlLabel_) <<
"Retrieving product " <<
tag;
176 const std::shared_ptr< const edm::Wrapper<T> > productWrapper = edm::getProductByTag<T>(
event,
tag,
nullptr);
177 if (productWrapper) {
178 return productWrapper->product();
186 return ( (this->eventId_<rhs.
eventId_) ?
true : ( ((this->eventId_==rhs.
eventId_) && (this->apvAddress_<rhs.
apvAddress_)) ?
true :
false) );
191 #endif //ndef DQM_SiStripMonitorHardware_SiStripSpyEventMatcher_H 193 #endif //SiStripMonitorHardware_BuildEventMatchingCode
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
static AlgebraicMatrix initialize()
edm::VectorInputSource Source
edm::InputTag virginRawDigisTag_
static const char * mlLabel_
std::vector< uint32_t > Counters
std::unique_ptr< std::vector< uint32_t > > l1aCounters
boost::shared_ptr< CountersWrapper > CountersPtr
edm::InputTag rawDataTag_
std::unique_ptr< std::vector< uint32_t > > totalEventCounters
edm::InputTag payloadDigisTag_
std::unique_ptr< edm::EventPrincipal > eventPrincipal_
std::set< uint16_t > alreadyMergedFeds_
std::vector< uint32_t > outputL1ACounters_
FEDRawDataCollection & outputRawData_
T const * getProduct(RefCore const &ref)
std::unique_ptr< edm::ProcessConfiguration > processConfiguration_
edm::InputTag apvAddressesTag_
edm::InputTag scopeDigisTag_
Counters::const_iterator end() const
boost::shared_ptr< std::vector< edm::DetSet< SiStripRawDigi > > > outputReorderedDigisVector_
std::unique_ptr< edm::DetSetVector< SiStripRawDigi > > virginRawDigis
std::vector< uint32_t > outputAPVAddresses_
boost::shared_ptr< std::vector< edm::DetSet< SiStripRawDigi > > > outputScopeDigisVector_
edm::InputTag l1aCountersTag_
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
Container::value_type value_type
boost::shared_ptr< std::vector< edm::DetSet< SiStripRawDigi > > > outputPayloadDigisVector_
std::set< EventID > SpyEventList
T operator[](int i) const
std::shared_ptr< edm::ProductRegistry > productRegistry_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::unique_ptr< edm::VectorInputSource > const source_
edm::InputTag totalEventCountersTag_
std::unique_ptr< FEDRawDataCollection > rawData
std::vector< uint32_t > outputTotalEventCounters_
std::unique_ptr< edm::DetSetVector< SiStripRawDigi > > scopeDigis
edm::InputTag reorderedDigisTag_
Counters::const_iterator begin() const
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
boost::shared_ptr< std::vector< edm::DetSet< SiStripRawDigi > > > outputVirginRawDigisVector_
const Counters::value_type at(const size_t i) const
std::unique_ptr< std::vector< uint32_t > > apvAddresses
uint8_t apvAddress() const
std::unique_ptr< edm::DetSetVector< SiStripRawDigi > > reorderedDigis
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
std::unique_ptr< edm::DetSetVector< SiStripRawDigi > > payloadDigis
std::map< EventKey, SpyEventList > eventMatches_