Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:14:34

0001 #ifndef EVENTFILTER_CASTORRAWTODIGI_CASTORCTDCPACKER_H
0002 #define EVENTFILTER_CASTORRAWTODIGI_CASTORCTDCPACKER_H 1
0003 
0004 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
0005 #include "DataFormats/FEDRawData/interface/FEDRawData.h"
0006 #include "CondFormats/CastorObjects/interface/CastorElectronicsMap.h"
0007 #include "EventFilter/CastorRawToDigi/interface/CastorCollections.h"
0008 
0009 /** \class CastorCtdcPacker
0010   *  
0011   * \author A. Campbell - DESY
0012   */
0013 class CastorCtdcPacker {
0014 public:
0015   static void pack(int fedid,
0016                    int dccnumber,
0017                    int nl1a,
0018                    int orbitn,
0019                    int bcn,
0020                    const CastorCollections& inputs,
0021                    const CastorElectronicsMap& emap,
0022                    FEDRawData& output);
0023 
0024 private:
0025   static int findSamples(const DetId& did, const CastorCollections& inputs, unsigned short* buffer, int& presamples);
0026 };
0027 
0028 #endif