CMS 3D CMS Logo

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