55 template <
class Digitype>
58 LogDebug(
"RawDataConverter") <<
"Fill ZeroSuppressed Digis into the Tree";
64 if( ! detSetVector.
isValid() )
throw std::runtime_error(
"Could not find the Digis");
75 det = 0; ring = 0; beam = 0; disk = 0;
80 if ( theModule != detSetVector->end() ) {
83 for (theDigi = theModule->data.
begin(); theDigi != theModule->data.
end(); ++theDigi ) {
85 if ( theDigi->channel() < 512 )
theData.
GetTECEntry( det, ring, beam, disk ).at( theDigi->channel() ) = theDigi->adc();
88 }
while( loop.
TECLoop( det, ring, beam, disk ) );
91 det = 2; beam = 0; pos = 0;
96 if ( theModule != detSetVector->end() ) {
99 for (theDigi = theModule->data.
begin(); theDigi != theModule->data.
end(); ++theDigi ) {
101 if ( theDigi->channel() < 512 )
theData.
GetTIBTOBEntry( det, beam, pos ).at( theDigi->channel() ) = theDigi->adc();
108 det = 0; beam = 0; disk = 0;
113 if ( theModule != detSetVector->end() ) {
116 for (theDigi = theModule->data.
begin(); theDigi != theModule->data.
end(); ++theDigi ) {
118 if ( theDigi->channel() < 512 )
theData.
GetTEC2TECEntry( det, beam, disk ).at( theDigi->channel() ) = theDigi->adc();
void fillDetectorId(void)
DigiType GetValidLabels(const edm::Event &iEvent)
LASGlobalData< int > detectorId
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< std::string > theDigiModuleLabels
void beginRun(edm::Run const &, edm::EventSetup const &) override
bool TEC2TECLoop(int &, int &, int &) const
void GetDigis(const edm::Event &)
T & GetTIBTOBEntry(int subdetector, int beam, int tibTobPosition)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
iterator end()
Return the off-the-end iterator.
RawDataConverter(const edm::ParameterSet &)
~RawDataConverter() override
T & GetTEC2TECEntry(int subdetector, int beam, int tecDisk)
T & GetTECEntry(int subdetector, int tecRing, int beam, int tecDisk)
std::string CurrentModuleLabel
LASGlobalData< std::vector< float > > theData
bool TECLoop(int &, int &, int &, int &) const
bool TIBTOBLoop(int &, int &, int &) const
iterator begin()
Return an iterator to the first DetSet.
std::string CurrentInstanceLabel
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
std::vector< std::string > theProductInstanceLabels