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 // Last commit: $Id: SiStripDigiToRaw.h,v 1.23 2009/09/14 14:01:03 nc302 Exp $
2 
3 #ifndef EventFilter_SiStripRawToDigi_SiStripDigiToRaw_H
4 #define EventFilter_SiStripRawToDigi_SiStripDigiToRaw_H
5 
10 #include "boost/cstdint.hpp"
11 #include <string>
12 
14 
15 class SiStripFedCabling;
17 class SiStripDigi;
18 class SiStripRawDigi;
19 
20 namespace sistrip {
21 
29  class DigiToRaw {
30 
31  public: // ----- public interface -----
32 
33  DigiToRaw( FEDReadoutMode, bool use_fed_key );
34  ~DigiToRaw();
35 
39  std::auto_ptr<FEDRawDataCollection>& buffers );
43  std::auto_ptr<FEDRawDataCollection>& buffers);
44 
46 
47  private: // ----- private data members -----
48 
49  template<class Digi_t>
53  std::auto_ptr<FEDRawDataCollection>& buffers,
54  bool zeroSuppressed);
57 
59  bool useFedKey_;
61 
62  };
63 
64 }
65 
66 
67 #endif // EventFilter_SiStripRawToDigi_SiStripDigiToRaw_H
68 
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:31
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:34
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
FEDBufferGenerator bufferGenerator_