1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef DTRawToDigi_DTUnpackingModule_h
#define DTRawToDigi_DTUnpackingModule_h
/** \class DTUnpackingModule
* The unpacking module for DTs.
*
* \author N. Amapane - S. Argiro' - M. Zanetti
*/
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
#include "FWCore/Utilities/interface/ESGetToken.h"
#include "CondFormats/DataRecord/interface/DTReadOutMappingRcd.h"
#include "CondFormats/DTObjects/interface/DTReadOutMapping.h"
#include <iostream>
class DTUnpacker;
class DTUnpackingModule : public edm::stream::EDProducer<> {
public:
/// Constructor
DTUnpackingModule(const edm::ParameterSet& pset);
/// Destructor
~DTUnpackingModule() override;
/// Call the Unpackers and create the digis
void produce(edm::Event& e, const edm::EventSetup& c) override;
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
private:
DTUnpacker* unpacker;
/// if not you need the label
edm::EDGetTokenT<FEDRawDataCollection> inputLabel;
edm::ESGetToken<DTReadOutMapping, DTReadOutMappingRcd> mappingToken_;
/// do you want to use the standard DT FED ID's, i.e. [770-775]? (why the hell 6??)
bool useStandardFEDid_;
/// if not you need to set the range by hand
int minFEDid_;
int maxFEDid_;
bool dqmOnly;
bool performDataIntegrityMonitor;
std::string dataType;
};
#endif
|