CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CSCDigiToRaw.h
Go to the documentation of this file.
1 #ifndef EventFilter_CSCRawToDigi_CSCDigiToRaw_h
2 #define EventFilter_CSCRawToDigi_CSCDigiToRaw_h
3 
22 
24 class CSCChamberMap;
25 
26 class CSCDigiToRaw {
27 public:
29  explicit CSCDigiToRaw(const edm::ParameterSet& pset);
30 
32  void createFedBuffers(const CSCStripDigiCollection& stripDigis,
33  const CSCWireDigiCollection& wireDigis,
34  const CSCComparatorDigiCollection& comparatorDigis,
35  const CSCALCTDigiCollection& alctDigis,
36  const CSCCLCTDigiCollection& clctDigis,
37  const CSCCLCTPreTriggerCollection* preTriggers,
38  const CSCCLCTPreTriggerDigiCollection* preTriggerDigis,
39  const CSCCorrelatedLCTDigiCollection& correlatedLCTDigis,
40  const CSCShowerDigiCollection* showerDigis,
41  const GEMPadDigiClusterCollection* padDigiClusters,
42  FEDRawDataCollection& fed_buffers,
43  const CSCChamberMap* theMapping,
44  const edm::EventID& eid) const;
45 
46 private:
49 
50  using ChamberDataMap = std::map<CSCDetId, CSCEventData>;
53  const uint16_t formatVersion_;
54  };
55 
56  // specialized because it reverses strip direction
57  void add(const CSCStripDigiCollection& stripDigis,
58  const CSCCLCTPreTriggerCollection* preTriggers,
59  const CSCCLCTPreTriggerDigiCollection* preTriggerDigis,
60  FindEventDataInfo&) const;
61  void add(const CSCWireDigiCollection& wireDigis, const CSCALCTDigiCollection& alctDigis, FindEventDataInfo&) const;
62  // may require CLCTs to read out comparators. Doesn't add CLCTs.
63  void add(const CSCComparatorDigiCollection& comparatorDigis,
64  const CSCCLCTDigiCollection& clctDigis,
65  FindEventDataInfo&) const;
66  void add(const CSCALCTDigiCollection& alctDigis, FindEventDataInfo&) const;
67  void add(const CSCCLCTDigiCollection& clctDigis, FindEventDataInfo&) const;
68  void add(const CSCCorrelatedLCTDigiCollection& corrLCTDigis, FindEventDataInfo&) const;
69  void add(const CSCShowerDigiCollection& cscShowerDigis, FindEventDataInfo&) const;
70  void add(const GEMPadDigiClusterCollection& gemPadClusters, FindEventDataInfo&) const;
72  CSCEventData& findEventData(const CSCDetId& cscDetId, FindEventDataInfo&) const;
73 
74  const int alctWindowMin_;
75  const int alctWindowMax_;
76  const int clctWindowMin_;
77  const int clctWindowMax_;
80 
81  uint16_t formatVersion_;
85 };
86 
87 #endif
uint16_t formatVersion_
Definition: CSCDigiToRaw.h:81
bool usePreTriggers_
Definition: CSCDigiToRaw.h:83
const int clctWindowMin_
Definition: CSCDigiToRaw.h:76
void createFedBuffers(const CSCStripDigiCollection &stripDigis, const CSCWireDigiCollection &wireDigis, const CSCComparatorDigiCollection &comparatorDigis, const CSCALCTDigiCollection &alctDigis, const CSCCLCTDigiCollection &clctDigis, const CSCCLCTPreTriggerCollection *preTriggers, const CSCCLCTPreTriggerDigiCollection *preTriggerDigis, const CSCCorrelatedLCTDigiCollection &correlatedLCTDigis, const CSCShowerDigiCollection *showerDigis, const GEMPadDigiClusterCollection *padDigiClusters, FEDRawDataCollection &fed_buffers, const CSCChamberMap *theMapping, const edm::EventID &eid) const
Take a vector of digis and fill the FEDRawDataCollection.
bool packEverything_
Definition: CSCDigiToRaw.h:82
const int clctWindowMax_
Definition: CSCDigiToRaw.h:77
std::map< CSCDetId, CSCEventData > ChamberDataMap
Definition: CSCDigiToRaw.h:50
CSCEventData & findEventData(const CSCDetId &cscDetId, FindEventDataInfo &) const
pick out the correct data object for this chamber
Definition: CSCDigiToRaw.cc:44
const int preTriggerWindowMin_
Definition: CSCDigiToRaw.h:78
const int preTriggerWindowMax_
Definition: CSCDigiToRaw.h:79
CSCDigiToRaw(const edm::ParameterSet &pset)
Constructor.
Definition: CSCDigiToRaw.cc:29
const CSCChamberMap * theElectronicsMap
Definition: CSCDigiToRaw.h:52
const int alctWindowMin_
Definition: CSCDigiToRaw.h:74
FindEventDataInfo(const CSCChamberMap *map, uint16_t version)
Definition: CSCDigiToRaw.h:48
const int alctWindowMax_
Definition: CSCDigiToRaw.h:75
void add(const CSCStripDigiCollection &stripDigis, const CSCCLCTPreTriggerCollection *preTriggers, const CSCCLCTPreTriggerDigiCollection *preTriggerDigis, FindEventDataInfo &) const
Definition: CSCDigiToRaw.cc:71
bool packByCFEB_
Definition: CSCDigiToRaw.h:84
A container for a generic type of digis indexed by some index, implemented with a map&lt;IndexType...