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 
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 
40 private:
42 
43  // specialized because it reverses strip direction
44  void add(const CSCStripDigiCollection& stripDigis,
45  const CSCCLCTPreTriggerCollection& preTriggers);
46  void add(const CSCWireDigiCollection& wireDigis,
47  const CSCALCTDigiCollection & alctDigis);
48  // may require CLCTs to read out comparators. Doesn't add CLCTs.
49  void add(const CSCComparatorDigiCollection & comparatorDigis,
50  const CSCCLCTDigiCollection & clctDigis);
51  void add(const CSCALCTDigiCollection & alctDigis);
52  void add(const CSCCLCTDigiCollection & clctDigis);
53  void add(const CSCCorrelatedLCTDigiCollection & corrLCTDigis);
55  CSCEventData & findEventData(const CSCDetId & cscDetId);
56 
57  std::map<CSCDetId, CSCEventData> theChamberDataMap;
65 
66 };
67 
68 
69 
70 
71 #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:61
int alctWindowMax_
Definition: CSCDigiToRaw.h:60
const CSCChamberMap * theElectronicsMap
Definition: CSCDigiToRaw.h:58
int alctWindowMin_
Definition: CSCDigiToRaw.h:59
CSCDigiToRaw(const edm::ParameterSet &pset)
Constructor.
Definition: CSCDigiToRaw.cc:87
int clctWindowMax_
Definition: CSCDigiToRaw.h:62
void beginEvent(const CSCChamberMap *electronicsMap)
Definition: CSCDigiToRaw.cc:96
int preTriggerWindowMin_
Definition: CSCDigiToRaw.h:63
int preTriggerWindowMax_
Definition: CSCDigiToRaw.h:64
std::map< CSCDetId, CSCEventData > theChamberDataMap
Definition: CSCDigiToRaw.h:57
CSCEventData & findEventData(const CSCDetId &cscDetId)
pick out the correct data object for this chamber