CMS 3D CMS Logo

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_;
84 };
85 
86 #endif
CSCDigiToRaw::preTriggerWindowMax_
const int preTriggerWindowMax_
Definition: CSCDigiToRaw.h:79
CSCCLCTPreTriggerCollection
CSCCorrelatedLCTDigiCollection.h
CSCEventData
Definition: CSCEventData.h:26
CSCEventData.h
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
CSCStripDigiCollection
MuonDigiCollection
A container for a generic type of digis indexed by some index, implemented with a map<IndexType,...
Definition: MuonDigiCollection.h:87
CSCCLCTPreTriggerCollection.h
CSCDigiToRaw::preTriggerWindowMin_
const int preTriggerWindowMin_
Definition: CSCDigiToRaw.h:78
CSCDigiToRaw
Definition: CSCDigiToRaw.h:26
CSCCLCTPreTriggerDigiCollection.h
GEMPadDigiClusterCollection.h
CSCDigiToRaw::usePreTriggers_
bool usePreTriggers_
Definition: CSCDigiToRaw.h:83
CSCDigiToRaw::FindEventDataInfo::theChamberDataMap
ChamberDataMap theChamberDataMap
Definition: CSCDigiToRaw.h:51
CSCDigiToRaw::FindEventDataInfo::theElectronicsMap
const CSCChamberMap * theElectronicsMap
Definition: CSCDigiToRaw.h:52
CSCDigiToRaw::CSCDigiToRaw
CSCDigiToRaw(const edm::ParameterSet &pset)
Constructor.
Definition: CSCDigiToRaw.cc:109
EventID.h
CSCDigiToRaw::alctWindowMax_
const int alctWindowMax_
Definition: CSCDigiToRaw.h:75
GEMPadDigiClusterCollection
edm::ParameterSet
Definition: ParameterSet.h:47
CSCDetId
Definition: CSCDetId.h:26
CSCChamberMap
Definition: CSCChamberMap.h:11
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
CSCALCTDigiCollection
CSCDigiToRaw::formatVersion_
uint16_t formatVersion_
Definition: CSCDigiToRaw.h:81
CSCStripDigiCollection.h
CSCComparatorDigiCollection
CSCCorrelatedLCTDigiCollection
CSCDigiToRaw::add
void add(const CSCStripDigiCollection &stripDigis, const CSCCLCTPreTriggerCollection *preTriggers, const CSCCLCTPreTriggerDigiCollection *preTriggerDigis, FindEventDataInfo &) const
Definition: CSCDigiToRaw.cc:150
CSCDigiToRaw::FindEventDataInfo
Definition: CSCDigiToRaw.h:47
CSCDigiToRaw::findEventData
CSCEventData & findEventData(const CSCDetId &cscDetId, FindEventDataInfo &) const
pick out the correct data object for this chamber
Definition: CSCDigiToRaw.cc:123
CSCDigiToRaw::FindEventDataInfo::formatVersion_
const uint16_t formatVersion_
Definition: CSCDigiToRaw.h:53
CSCWireDigiCollection
CSCDigiToRaw::alctWindowMin_
const int alctWindowMin_
Definition: CSCDigiToRaw.h:74
CSCCLCTDigiCollection
CSCDigiToRaw::createFedBuffers
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.
Definition: CSCDigiToRaw.cc:373
CSCComparatorDigiCollection.h
CSCWireDigiCollection.h
CSCDigiToRaw::FindEventDataInfo::ChamberDataMap
std::map< CSCDetId, CSCEventData > ChamberDataMap
Definition: CSCDigiToRaw.h:50
CSCALCTDigiCollection.h
genParticles_cff.map
map
Definition: genParticles_cff.py:11
ParameterSet.h
CSCCLCTDigiCollection.h
edm::EventID
Definition: EventID.h:31
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
CSCDigiToRaw::clctWindowMin_
const int clctWindowMin_
Definition: CSCDigiToRaw.h:76
CSCDigiToRaw::packEverything_
bool packEverything_
Definition: CSCDigiToRaw.h:82
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
CSCDigiToRaw::FindEventDataInfo::FindEventDataInfo
FindEventDataInfo(const CSCChamberMap *map, uint16_t version)
Definition: CSCDigiToRaw.h:48
CSCShowerDigiCollection.h
CSCDigiToRaw::clctWindowMax_
const int clctWindowMax_
Definition: CSCDigiToRaw.h:77