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
|
#ifndef TCCBLOCKFORMATTER_H
#define TCCBLOCKFORMATTER_H
#include <iostream>
#include <vector>
#include <map>
#include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
#include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
#include "DataFormats/FEDRawData/interface/FEDRawData.h"
#include "EventFilter/EcalDigiToRaw/interface/BlockFormatter.h"
#include "Geometry/EcalMapping/interface/EcalElectronicsMapping.h"
//
// The block containing the trigger towers for a given FED
//
class TCCBlockFormatter : public BlockFormatter {
public:
TCCBlockFormatter(BlockFormatter::Config const&, BlockFormatter::Params const&);
static const int kCardsPerTower = 5; // Number of VFE cards per trigger tower
void DigiToRaw(const EcalTriggerPrimitiveDigi& trigprim,
FEDRawData& rawdata,
const EcalElectronicsMapping* TheMapping);
private:
bool AllTPsamples_;
};
#endif
|