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  uint16_t theFormatVersion = 2005,
40  bool usePreTriggers = true);
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  uint16_t theFormatVersion;
69 
70 };
71 
72 
73 
74 
75 #endif
void add(const CSCStripDigiCollection &stripDigis, const CSCCLCTPreTriggerCollection &preTriggers)
uint16_t theFormatVersion
Definition: CSCDigiToRaw.h:67
bool usePreTriggers
Definition: CSCDigiToRaw.h:68
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)
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
EcalElectronicsMapping const * electronicsMap(0)
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)
Take a vector of digis and fill the FEDRawDataCollection.