CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  FEDRawDataCollection& fed_buffers,
39  const CSCChamberMap* theMapping,
40  edm::Event & e);
41 
42 private:
44 
45  // specialized because it reverses strip direction
46  void add(const CSCStripDigiCollection& stripDigis,
47  const CSCCLCTPreTriggerCollection& preTriggers);
48  void add(const CSCWireDigiCollection& wireDigis,
49  const CSCALCTDigiCollection & alctDigis);
50  // may require CLCTs to read out comparators. Doesn't add CLCTs.
51  void add(const CSCComparatorDigiCollection & comparatorDigis,
52  const CSCCLCTDigiCollection & clctDigis);
53  void add(const CSCALCTDigiCollection & alctDigis);
54  void add(const CSCCLCTDigiCollection & clctDigis);
55  void add(const CSCCorrelatedLCTDigiCollection & corrLCTDigis);
57  CSCEventData & findEventData(const CSCDetId & cscDetId);
58 
59  std::map<CSCDetId, CSCEventData> theChamberDataMap;
67 
68 };
69 
70 
71 
72 
73 #endif
void add(const CSCStripDigiCollection &stripDigis, const CSCCLCTPreTriggerCollection &preTriggers)
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)
Take a vector of digis and fill the FEDRawDataCollection.
const EcalElectronicsMapping * electronicsMap
int clctWindowMin_
Definition: CSCDigiToRaw.h:63
int alctWindowMax_
Definition: CSCDigiToRaw.h:62
const CSCChamberMap * theElectronicsMap
Definition: CSCDigiToRaw.h:60
int alctWindowMin_
Definition: CSCDigiToRaw.h:61
CSCDigiToRaw(const edm::ParameterSet &pset)
Constructor.
Definition: CSCDigiToRaw.cc:89
int clctWindowMax_
Definition: CSCDigiToRaw.h:64
void beginEvent(const CSCChamberMap *electronicsMap)
Definition: CSCDigiToRaw.cc:98
int preTriggerWindowMin_
Definition: CSCDigiToRaw.h:65
int preTriggerWindowMax_
Definition: CSCDigiToRaw.h:66
std::map< CSCDetId, CSCEventData > theChamberDataMap
Definition: CSCDigiToRaw.h:59
CSCEventData & findEventData(const CSCDetId &cscDetId)
pick out the correct data object for this chamber