test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripDigiToRaw.h
Go to the documentation of this file.
1 
2 #ifndef EventFilter_SiStripRawToDigi_SiStripDigiToRaw_H
3 #define EventFilter_SiStripRawToDigi_SiStripDigiToRaw_H
4 
9 #include "boost/cstdint.hpp"
10 #include <string>
11 
13 
14 class SiStripFedCabling;
16 class SiStripDigi;
17 class SiStripRawDigi;
18 
19 namespace sistrip {
20 
28  class DigiToRaw {
29 
30  public: // ----- public interface -----
31 
32  DigiToRaw( FEDReadoutMode, bool use_fed_key );
33  ~DigiToRaw();
34 
38  std::auto_ptr<FEDRawDataCollection>& buffers );
42  std::auto_ptr<FEDRawDataCollection>& buffers);
43 
45 
46  private: // ----- private data members -----
47 
48  template<class Digi_t>
52  std::auto_ptr<FEDRawDataCollection>& buffers,
53  bool zeroSuppressed);
56 
58  bool useFedKey_;
60 
61  };
62 
63 }
64 
65 
66 #endif // EventFilter_SiStripRawToDigi_SiStripDigiToRaw_H
67 
void fedReadoutMode(FEDReadoutMode mode)
Input: edm::DetSetVector&lt;SiStripDigi&gt;. Output: FEDRawDataCollection.
void createFedBuffers_(edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< edm::DetSetVector< Digi_t > > &digis, std::auto_ptr< FEDRawDataCollection > &buffers, bool zeroSuppressed)
DigiToRaw(FEDReadoutMode, bool use_fed_key)
void createFedBuffers(edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< edm::DetSetVector< SiStripDigi > > &digis, std::auto_ptr< FEDRawDataCollection > &buffers)
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
Definition: SiStripDigi.h:12
FEDReadoutMode mode_
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
#define begin
Definition: vmac.h:30
uint16_t STRIP(const edm::DetSet< SiStripDigi >::const_iterator &it, const edm::DetSet< SiStripDigi >::const_iterator &begin) const
collection_type::const_iterator const_iterator
Definition: DetSet.h:33
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
FEDBufferGenerator bufferGenerator_