CMS 3D CMS Logo

CSCDigiToRaw.h
Go to the documentation of this file.
1 #ifndef EventFilter_CSCDigiToRaw_h
2 #define EventFilter_CSCDigiToRaw_h
3 
18 
21 class CSCChamberMap;
22 
23 class CSCDigiToRaw {
24 public:
26  explicit CSCDigiToRaw(const edm::ParameterSet& pset);
27 
29  void createFedBuffers(const CSCStripDigiCollection& stripDigis,
30  const CSCWireDigiCollection& wireDigis,
31  const CSCComparatorDigiCollection& comparatorDigis,
32  const CSCALCTDigiCollection& alctDigis,
33  const CSCCLCTDigiCollection& clctDigis,
34  const CSCCLCTPreTriggerCollection& preTriggers,
35  const CSCCorrelatedLCTDigiCollection& correlatedLCTDigis,
36  FEDRawDataCollection& fed_buffers,
37  const CSCChamberMap* theMapping,
38  edm::Event& e,
39  uint16_t theFormatVersion = 2005,
40  bool usePreTriggers = true,
41  bool packEverything = false) const;
42 
43 private:
46 
47  using ChamberDataMap = std::map<CSCDetId, CSCEventData>;
50  const uint16_t formatVersion_;
51  };
52 
53  // specialized because it reverses strip direction
54  void add(const CSCStripDigiCollection& stripDigis,
55  const CSCCLCTPreTriggerCollection& preTriggers,
57  bool usePreTriggers,
58  bool packEverything) const;
59  void add(const CSCWireDigiCollection& wireDigis,
60  const CSCALCTDigiCollection& alctDigis,
62  bool packEverything) const;
63  // may require CLCTs to read out comparators. Doesn't add CLCTs.
64  void add(const CSCComparatorDigiCollection& comparatorDigis,
65  const CSCCLCTDigiCollection& clctDigis,
67  bool packEverything) const;
68  void add(const CSCALCTDigiCollection& alctDigis, FindEventDataInfo&) const;
69  void add(const CSCCLCTDigiCollection& clctDigis, FindEventDataInfo&) const;
70  void add(const CSCCorrelatedLCTDigiCollection& corrLCTDigis, 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 
82 #endif
CSCDigiToRaw::preTriggerWindowMax_
const int preTriggerWindowMax_
Definition: CSCDigiToRaw.h:79
CSCCLCTPreTriggerCollection
CSCCorrelatedLCTDigiCollection.h
CSCEventData
Definition: CSCEventData.h:28
CSCEventData.h
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
CSCStripDigiCollection
CSCCLCTPreTriggerCollection.h
CSCDigiToRaw::preTriggerWindowMin_
const int preTriggerWindowMin_
Definition: CSCDigiToRaw.h:78
CSCDigiToRaw
Definition: CSCDigiToRaw.h:23
CSCDigiToRaw::FindEventDataInfo::theChamberDataMap
ChamberDataMap theChamberDataMap
Definition: CSCDigiToRaw.h:48
CSCDigiToRaw::FindEventDataInfo::theElectronicsMap
const CSCChamberMap * theElectronicsMap
Definition: CSCDigiToRaw.h:49
CSCDigiToRaw::CSCDigiToRaw
CSCDigiToRaw(const edm::ParameterSet &pset)
Constructor.
Definition: CSCDigiToRaw.cc:104
cscPacker_cfi.usePreTriggers
usePreTriggers
Definition: cscPacker_cfi.py:27
CSCDigiToRaw::alctWindowMax_
const int alctWindowMax_
Definition: CSCDigiToRaw.h:75
cscPacker_cfi.packEverything
packEverything
Definition: cscPacker_cfi.py:28
edm::ParameterSet
Definition: ParameterSet.h:36
CSCDetId
Definition: CSCDetId.h:26
CSCChamberMap
Definition: CSCChamberMap.h:11
CSCALCTDigiCollection
CSCStripDigiCollection.h
CSCComparatorDigiCollection
CSCCorrelatedLCTDigiCollection
CSCDigiToRaw::FindEventDataInfo
Definition: CSCDigiToRaw.h:44
CSCDigiToRaw::findEventData
CSCEventData & findEventData(const CSCDetId &cscDetId, FindEventDataInfo &) const
pick out the correct data object for this chamber
Definition: CSCDigiToRaw.cc:112
CSCDigiToRaw::add
void add(const CSCStripDigiCollection &stripDigis, const CSCCLCTPreTriggerCollection &preTriggers, FindEventDataInfo &, bool usePreTriggers, bool packEverything) const
Definition: CSCDigiToRaw.cc:139
CSCDigiToRaw::FindEventDataInfo::formatVersion_
const uint16_t formatVersion_
Definition: CSCDigiToRaw.h:50
CSCWireDigiCollection
CSCDigiToRaw::alctWindowMin_
const int alctWindowMin_
Definition: CSCDigiToRaw.h:74
Frameworkfwd.h
CSCCLCTDigiCollection
CSCComparatorDigiCollection.h
CSCWireDigiCollection.h
CSCDigiToRaw::FindEventDataInfo::ChamberDataMap
std::map< CSCDetId, CSCEventData > ChamberDataMap
Definition: CSCDigiToRaw.h:47
CSCReadoutMappingFromFile
Definition: CSCReadoutMappingFromFile.h:15
CSCALCTDigiCollection.h
genParticles_cff.map
map
Definition: genParticles_cff.py:11
CSCCLCTDigiCollection.h
edm::Event
Definition: Event.h:73
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
CSCDigiToRaw::clctWindowMin_
const int clctWindowMin_
Definition: CSCDigiToRaw.h:76
CSCDigiToRaw::createFedBuffers
void createFedBuffers(const CSCStripDigiCollection &stripDigis, const CSCWireDigiCollection &wireDigis, const CSCComparatorDigiCollection &comparatorDigis, const CSCALCTDigiCollection &alctDigis, const CSCCLCTDigiCollection &clctDigis, const CSCCLCTPreTriggerCollection &preTriggers, const CSCCorrelatedLCTDigiCollection &correlatedLCTDigis, FEDRawDataCollection &fed_buffers, const CSCChamberMap *theMapping, edm::Event &e, uint16_t theFormatVersion=2005, bool usePreTriggers=true, bool packEverything=false) const
Take a vector of digis and fill the FEDRawDataCollection.
Definition: CSCDigiToRaw.cc:327
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
CSCDigiToRaw::FindEventDataInfo::FindEventDataInfo
FindEventDataInfo(const CSCChamberMap *map, uint16_t version)
Definition: CSCDigiToRaw.h:45
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
CSCDigiToRaw::clctWindowMax_
const int clctWindowMax_
Definition: CSCDigiToRaw.h:77