24 useFedKey_(useFedKey),
29 <<
"[sistrip::DigiToRaw::DigiToRaw]"
30 <<
" Constructing object...";
40 <<
"[sistrip::DigiToRaw::~DigiToRaw]"
41 <<
" Destructing object...";
57 std::auto_ptr<FEDRawDataCollection>& buffers ) {
64 std::auto_ptr<FEDRawDataCollection>& buffers ) {
68 template<
class Digi_t>
72 std::auto_ptr<FEDRawDataCollection>& buffers,
73 bool zeroSuppressed) {
79 const std::vector<uint16_t>& fed_ids = cabling->feds();
80 std::vector<uint16_t>::const_iterator ifed;
82 for ( ifed = fed_ids.begin(); ifed != fed_ids.end(); ifed++ ) {
84 const std::vector<FedChannelConnection>& conns = cabling->connections(*ifed);
85 std::vector<FedChannelConnection>::const_iterator iconn = conns.begin();
89 for ( ; iconn != conns.end(); iconn++ ) {
106 typename std::vector< edm::DetSet<Digi_t> >::const_iterator digis =
collection->find( key );
110 for ( idigi = digis_begin; idigi != digis->
data.end(); idigi++ ) {
112 if (
STRIP(idigi, digis_begin) < ipair*256 ||
113 STRIP(idigi, digis_begin) > ipair*256+255 ) {
continue; }
114 const unsigned short strip =
STRIP(idigi, digis_begin) % 256;
118 std::stringstream ss;
119 ss <<
"[sistrip::DigiToRaw::createFedBuffers]"
120 <<
" strip >= strips_per_fedCh";
128 const uint16_t
value = 0;
129 if ( value && value != (*idigi).adc() ) {
130 std::stringstream ss;
131 ss <<
"[sistrip::DigiToRaw::createFedBuffers]"
132 <<
" Incompatible ADC values in buffer!"
133 <<
" FedId/FedCh: " << *ifed <<
"/" << iconn->fedCh()
134 <<
" DetStrip: " <<
STRIP(idigi, digis_begin)
135 <<
" FedChStrip: " << strip
136 <<
" AdcValue: " << (*idigi).adc()
137 <<
" RawData[" << strip <<
"]: " <<
value;
143 chanData[strip] = (*idigi).adc();
150 FEDRawData& fedrawdata = buffers->FEDData( *ifed );
158 <<
"DigiToRaw::createFedBuffers] "
159 <<
"Exception caught : " << e.what();
EventNumber_t event() const
void generateBuffer(FEDRawData *rawDataObject, const FEDStripData &data, const uint16_t sourceID) const
void createFedBuffers_(edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< edm::DetSetVector< Digi_t > > &digis, std::auto_ptr< FEDRawDataCollection > &buffers, bool zeroSuppressed)
FEDBufferGenerator & setReadoutMode(const FEDReadoutMode newReadoutMode)
DigiToRaw(FEDReadoutMode, bool use_fed_key)
static const uint32_t invalid32_
void createFedBuffers(edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< edm::DetSetVector< SiStripDigi > > &digis, std::auto_ptr< FEDRawDataCollection > &buffers)
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
static const uint16_t STRIPS_PER_FEDCH
FEDBufferGenerator & setL1ID(const uint32_t newL1ID)
static const uint16_t invalid_
uint16_t STRIP(const edm::DetSet< SiStripDigi >::const_iterator &it, const edm::DetSet< SiStripDigi >::const_iterator &begin) const
collection_type::const_iterator const_iterator
FEDBufferGenerator bufferGenerator_