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
|
#ifndef DCCSCBLOCK_HH
#define DCCSCBLOCK_HH
#include <iostream>
#include <memory>
#include <cstdint>
#include <string>
#include <vector>
#include <map>
#include <utility>
#include <DataFormats/EcalDigi/interface/EcalDigiCollections.h>
#include <DataFormats/EcalRawData/interface/EcalRawDataCollections.h>
#include <DataFormats/EcalDetId/interface/EcalDetIdCollections.h>
#include <FWCore/MessageLogger/interface/MessageLogger.h>
#include "DCCFEBlock.h"
class DCCEventBlock;
class DCCDataUnpacker;
class DCCSCBlock : public DCCFEBlock {
//to implement
public:
DCCSCBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e, bool unpack, bool forceToKeepFRdata);
void updateCollectors() override;
protected:
int unpackXtalData(unsigned int stripID, unsigned int xtalID) override;
void fillEcalElectronicsError(std::unique_ptr<EcalElectronicsIdCollection> *) override;
EEDetId *pDetId_;
EEDataFrame *pDFId_;
std::unique_ptr<EEDigiCollection> *digis_;
// to restructure as common collections to DCCTowerBlock, to inherit from DCCFEBlock
std::unique_ptr<EEDetIdCollection> *invalidGains_;
std::unique_ptr<EEDetIdCollection> *invalidGainsSwitch_;
std::unique_ptr<EEDetIdCollection> *invalidChIds_;
};
#endif
|