53 template <
class Digitype>
56 LogDebug(
"RawDataConverter") <<
"Fill ZeroSuppressed Digis into the Tree";
62 if( ! detSetVector.
isValid() )
throw std::runtime_error(
"Could not find the Digis");
73 det = 0; ring = 0; beam = 0; disk = 0;
78 if ( theModule != detSetVector->end() ) {
81 for (theDigi = theModule->data.
begin(); theDigi != theModule->data.
end(); ++theDigi ) {
83 if ( theDigi->channel() < 512 )
theData.
GetTECEntry( det, ring, beam, disk ).at( theDigi->channel() ) = theDigi->adc();
86 }
while( loop.
TECLoop( det, ring, beam, disk ) );
89 det = 2; beam = 0; pos = 0;
94 if ( theModule != detSetVector->end() ) {
97 for (theDigi = theModule->data.
begin(); theDigi != theModule->data.
end(); ++theDigi ) {
99 if ( theDigi->channel() < 512 )
theData.
GetTIBTOBEntry( det, beam, pos ).at( theDigi->channel() ) = theDigi->adc();
106 det = 0; beam = 0; disk = 0;
111 if ( theModule != detSetVector->end() ) {
114 for (theDigi = theModule->data.
begin(); theDigi != theModule->data.
end(); ++theDigi ) {
116 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
std::vector< std::string > theDigiModuleLabels
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 &)
T & GetTEC2TECEntry(int subdetector, int beam, int tecDisk)
T & GetTECEntry(int subdetector, int tecRing, int beam, int tecDisk)
std::string CurrentModuleLabel
virtual void analyze(const edm::Event &, const edm::EventSetup &)
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
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