Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:32

0001 #ifndef TCCBLOCKFORMATTER_H
0002 #define TCCBLOCKFORMATTER_H
0003 
0004 #include <iostream>
0005 #include <vector>
0006 #include <map>
0007 
0008 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0009 #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
0010 #include "DataFormats/FEDRawData/interface/FEDRawData.h"
0011 #include "EventFilter/EcalDigiToRaw/interface/BlockFormatter.h"
0012 
0013 #include "Geometry/EcalMapping/interface/EcalElectronicsMapping.h"
0014 
0015 //
0016 // The block containing the trigger towers for a given FED
0017 //
0018 
0019 class TCCBlockFormatter : public BlockFormatter {
0020 public:
0021   TCCBlockFormatter(BlockFormatter::Config const&, BlockFormatter::Params const&);
0022 
0023   static const int kCardsPerTower = 5;  // Number of VFE cards per trigger tower
0024   void DigiToRaw(const EcalTriggerPrimitiveDigi& trigprim,
0025                  FEDRawData& rawdata,
0026                  const EcalElectronicsMapping* TheMapping);
0027 
0028 private:
0029   bool AllTPsamples_;
0030 };
0031 
0032 #endif