CMS 3D CMS Logo

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 
29 
30  public: // ----- public interface -----
31 
32  DigiToRaw( FEDReadoutMode, bool use_fed_key );
33  ~DigiToRaw();
34 
35  //digi to raw with default headers
36  void createFedBuffers( edm::Event&,
39  std::unique_ptr<FEDRawDataCollection>& buffers );
40  void createFedBuffers( edm::Event&,
43  std::unique_ptr<FEDRawDataCollection>& buffers);
44 
45  //with input raw data for copying header
46  void createFedBuffers( edm::Event&,
50  std::unique_ptr<FEDRawDataCollection>& buffers );
51  void createFedBuffers( edm::Event&,
55  std::unique_ptr<FEDRawDataCollection>& buffers);
56 
57  inline void fedReadoutMode( FEDReadoutMode mode ) { mode_ = mode; }
58 
59  private: // ----- private data members -----
60 
61  template<class Digi_t>
62  void createFedBuffers_( edm::Event&,
65  std::unique_ptr<FEDRawDataCollection>& buffers,
66  bool zeroSuppressed);
67 
68  template<class Digi_t>
69  void createFedBuffers_( edm::Event&,
73  std::unique_ptr<FEDRawDataCollection>& buffers,
74  bool zeroSuppressed);
75 
76 
77 
80 
82  bool useFedKey_;
84 
85  };
86 
87 }
88 
89 
90 #endif // EventFilter_SiStripRawToDigi_SiStripDigiToRaw_H
91 
#define dso_hidden
void fedReadoutMode(FEDReadoutMode mode)
Input: edm::DetSetVector<SiStripDigi>. Output: FEDRawDataCollection.
sistrip classes
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
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_