CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
GctDigiToRaw Class Reference

#include <EventFilter/GctRawToDigi/src/GctDigiToRaw.cc>

Inheritance diagram for GctDigiToRaw:
edm::global::EDProducer<> edm::global::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 GctDigiToRaw (const edm::ParameterSet &)
 
- Public Member Functions inherited from edm::global::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsStreamLuminosityBlocks () const final
 
bool wantsStreamRuns () const final
 
- Public Member Functions inherited from edm::global::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void print (FEDRawData &data) const
 
void produce (edm::StreamID, edm::Event &, const edm::EventSetup &) const final
 

Private Attributes

std::atomic< int > counter_
 
const int fedId_
 
const bool packRctCalo_
 
const bool packRctEm_
 
edm::EDGetTokenT< L1CaloEmCollectiontokenCaloEm_
 
edm::EDGetTokenT< L1CaloRegionCollectiontokenCaloRegion_
 
edm::EDGetTokenT< L1GctEtHadCollectiontokenGctEtHad_
 
edm::EDGetTokenT< L1GctEtMissCollectiontokenGctEtMiss_
 
edm::EDGetTokenT< L1GctEtTotalCollectiontokenGctEtTotal_
 
edm::EDGetTokenT< L1GctHFBitCountsCollectiontokenGctHFBitCounts_
 
edm::EDGetTokenT< L1GctHFRingEtSumsCollectiontokenGctHFRingEtSums_
 
edm::EDGetTokenT< L1GctHtMissCollectiontokenGctHtMiss_
 
edm::EDGetTokenT< L1GctJetCandCollectiontokenGctJetCand_cenJets_
 
edm::EDGetTokenT< L1GctJetCandCollectiontokenGctJetCand_forJets_
 
edm::EDGetTokenT< L1GctJetCandCollectiontokenGctJetCand_tauJets_
 
edm::EDGetTokenT< L1GctJetCountsCollectiontokenGctJetCounts_
 
edm::EDGetTokenT< L1GctEmCandCollectiontokenL1GctEmCand_isoEm_
 
edm::EDGetTokenT< L1GctEmCandCollectiontokenL1GctEmCand_nonIsoEm_
 
edm::EDPutTokenT< FEDRawDataCollectiontokenPut_
 
const bool verbose_
 

Additional Inherited Members

- Public Types inherited from edm::global::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::global::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Description: Produce fake GCT raw data from digis

Implementation: <Notes on="" implementation>="">

Definition at line 41 of file GctDigiToRaw.h.

Constructor & Destructor Documentation

GctDigiToRaw::GctDigiToRaw ( const edm::ParameterSet iConfig)
explicit

Definition at line 40 of file GctDigiToRaw.cc.

References fedId_, edm::ParameterSet::getParameter(), LogDebug, packRctCalo_, packRctEm_, AlCaHLTBitMon_QueryRunRegistry::string, tokenCaloEm_, tokenCaloRegion_, tokenGctEtHad_, tokenGctEtMiss_, tokenGctEtTotal_, tokenGctHFBitCounts_, tokenGctHFRingEtSums_, tokenGctHtMiss_, tokenGctJetCand_cenJets_, tokenGctJetCand_forJets_, tokenGctJetCand_tauJets_, tokenGctJetCounts_, tokenL1GctEmCand_isoEm_, tokenL1GctEmCand_nonIsoEm_, and tokenPut_.

40  :
41  packRctEm_(iConfig.getUntrackedParameter<bool>("packRctEm", true)),
42  packRctCalo_(iConfig.getUntrackedParameter<bool>("packRctCalo", true)),
43  fedId_(iConfig.getParameter<int>("gctFedId")),
44  verbose_(iConfig.getUntrackedParameter<bool>("verbose",false)),
45  counter_(0)
46 {
47  LogDebug("GCT") << "GctDigiToRaw will pack FED Id " << fedId_;
48 
49  //register the products
50  tokenPut_ = produces<FEDRawDataCollection>();
51  const edm::InputTag rctInputTag = iConfig.getParameter<edm::InputTag>("rctInputLabel");
52  const edm::InputTag gctInputTag = iConfig.getParameter<edm::InputTag>("gctInputLabel");
53  const std::string& gctInputLabelStr = gctInputTag.label();
54  tokenL1GctEmCand_isoEm_ = consumes<L1GctEmCandCollection>(edm::InputTag(gctInputLabelStr, "isoEm"));
55  tokenL1GctEmCand_nonIsoEm_ = consumes<L1GctEmCandCollection>(edm::InputTag(gctInputLabelStr, "nonIsoEm"));
56  tokenGctJetCand_cenJets_ = consumes<L1GctJetCandCollection>(edm::InputTag(gctInputLabelStr, "cenJets"));
57  tokenGctJetCand_forJets_ = consumes<L1GctJetCandCollection>(edm::InputTag(gctInputLabelStr, "forJets"));
58  tokenGctJetCand_tauJets_ = consumes<L1GctJetCandCollection>(edm::InputTag(gctInputLabelStr, "tauJets"));
59  tokenGctEtTotal_ = consumes<L1GctEtTotalCollection>(gctInputTag);
60  tokenGctEtHad_ = consumes<L1GctEtHadCollection>(gctInputTag);
61  tokenGctEtMiss_ = consumes<L1GctEtMissCollection>(gctInputTag);
62  tokenGctHFRingEtSums_ = consumes<L1GctHFRingEtSumsCollection>(gctInputTag);
63  tokenGctHFBitCounts_ = consumes<L1GctHFBitCountsCollection>(gctInputTag);
64  tokenGctHtMiss_ = consumes<L1GctHtMissCollection>(gctInputTag);
65  tokenGctJetCounts_ = consumes<L1GctJetCountsCollection>(gctInputTag);
66  if(packRctEm_) {
67  tokenCaloEm_ = consumes<L1CaloEmCollection>(rctInputTag);
68  }
69  if(packRctCalo_) {
70  tokenCaloRegion_ = consumes<L1CaloRegionCollection>(rctInputTag);
71  }
72 }
#define LogDebug(id)
edm::EDGetTokenT< L1GctHFBitCountsCollection > tokenGctHFBitCounts_
Definition: GctDigiToRaw.h:62
std::atomic< int > counter_
Definition: GctDigiToRaw.h:79
T getParameter(std::string const &) const
edm::EDGetTokenT< L1GctJetCandCollection > tokenGctJetCand_forJets_
Definition: GctDigiToRaw.h:56
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< L1GctEmCandCollection > tokenL1GctEmCand_isoEm_
Definition: GctDigiToRaw.h:53
edm::EDGetTokenT< L1CaloEmCollection > tokenCaloEm_
Definition: GctDigiToRaw.h:65
edm::EDGetTokenT< L1GctJetCandCollection > tokenGctJetCand_tauJets_
Definition: GctDigiToRaw.h:57
edm::EDGetTokenT< L1GctHtMissCollection > tokenGctHtMiss_
Definition: GctDigiToRaw.h:63
edm::EDGetTokenT< L1GctEtTotalCollection > tokenGctEtTotal_
Definition: GctDigiToRaw.h:58
edm::EDGetTokenT< L1CaloRegionCollection > tokenCaloRegion_
Definition: GctDigiToRaw.h:66
edm::EDGetTokenT< L1GctJetCountsCollection > tokenGctJetCounts_
Definition: GctDigiToRaw.h:64
edm::EDGetTokenT< L1GctJetCandCollection > tokenGctJetCand_cenJets_
Definition: GctDigiToRaw.h:55
edm::EDGetTokenT< L1GctEtMissCollection > tokenGctEtMiss_
Definition: GctDigiToRaw.h:60
edm::EDGetTokenT< L1GctEtHadCollection > tokenGctEtHad_
Definition: GctDigiToRaw.h:59
edm::EDPutTokenT< FEDRawDataCollection > tokenPut_
Definition: GctDigiToRaw.h:67
const int fedId_
Definition: GctDigiToRaw.h:73
const bool packRctEm_
Definition: GctDigiToRaw.h:69
edm::EDGetTokenT< L1GctHFRingEtSumsCollection > tokenGctHFRingEtSums_
Definition: GctDigiToRaw.h:61
const bool verbose_
Definition: GctDigiToRaw.h:76
const bool packRctCalo_
Definition: GctDigiToRaw.h:70
edm::EDGetTokenT< L1GctEmCandCollection > tokenL1GctEmCand_nonIsoEm_
Definition: GctDigiToRaw.h:54

Member Function Documentation

void GctDigiToRaw::print ( FEDRawData data) const
private

Definition at line 212 of file GctDigiToRaw.cc.

References gather_cfg::cout, edmIntegrityCheck::d, FEDRawData::data(), DEFINE_FWK_MODULE, mps_fire::i, FEDRawData::size(), and w.

Referenced by produce().

212  {
213 
214  const unsigned char * d = data.data();
215 
216  for (unsigned int i=0; i<data.size(); i=i+4) {
217  uint32_t w = (uint32_t)d[i] + (uint32_t)(d[i+1]<<8) + (uint32_t)(d[i+2]<<16) + (uint32_t)(d[i+3]<<24);
218  cout << std::hex << std::setw(4) << i/4 << " " << std::setw(8) << w << endl;
219  }
220 
221 }
const double w
Definition: UKUtility.cc:23
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:47
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:28
void GctDigiToRaw::produce ( edm::StreamID  ,
edm::Event iEvent,
const edm::EventSetup iSetup 
) const
finalprivate

Definition at line 81 of file GctDigiToRaw.cc.

References evf::compute_crc(), counter_, FEDRawData::data(), edm::Event::emplace(), edm::EventID::event(), edm::HandleBase::failedToGet(), FEDRawDataCollection::FEDData(), fedId_, edm::Event::getByToken(), edm::EventBase::id(), LogDebug, eostools::move(), packRctCalo_, packRctEm_, print(), edm::Handle< T >::product(), FEDRawData::resize(), FEDHeader::set(), FEDTrailer::set(), GctFormatTranslateBase::setPackingBxId(), GctFormatTranslateBase::setPackingEventId(), tokenCaloEm_, tokenCaloRegion_, tokenGctEtHad_, tokenGctEtMiss_, tokenGctEtTotal_, tokenGctHFBitCounts_, tokenGctHFRingEtSums_, tokenGctHtMiss_, tokenGctJetCand_cenJets_, tokenGctJetCand_forJets_, tokenGctJetCand_tauJets_, tokenGctJetCounts_, tokenL1GctEmCand_isoEm_, tokenL1GctEmCand_nonIsoEm_, tokenPut_, verbose_, GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock(), GctFormatTranslateMCLegacy::writeGctOutEmAndEnergyBlock(), GctFormatTranslateMCLegacy::writeGctOutJetBlock(), and GctFormatTranslateMCLegacy::writeRctEmCandBlocks().

Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().

82 {
83  using namespace edm;
84 
85  auto counter = counter_++; // To "simulate" bunch crossings for now...
86  unsigned int bx = counter % 3564; // What's the proper way of doing this?
87  EventNumber_t eventNumber = iEvent.id().event();
88 
89  // digi to block converter
90  // Supply bx and EvID to the packer so it can make internal capture block headers.
91  GctFormatTranslateMCLegacy formatTranslator;
92  formatTranslator.setPackingBxId(bx);
93  formatTranslator.setPackingEventId(eventNumber);
94 
95  // get GCT digis
97  iEvent.getByToken(tokenL1GctEmCand_isoEm_, isoEm);
99  iEvent.getByToken(tokenL1GctEmCand_nonIsoEm_, nonIsoEm);
101  iEvent.getByToken(tokenGctJetCand_cenJets_, cenJets);
103  iEvent.getByToken(tokenGctJetCand_forJets_, forJets);
105  iEvent.getByToken(tokenGctJetCand_tauJets_, tauJets);
107  iEvent.getByToken(tokenGctEtTotal_, etTotal);
109  iEvent.getByToken(tokenGctEtHad_, etHad);
111  iEvent.getByToken(tokenGctEtMiss_, etMiss);
113  iEvent.getByToken(tokenGctHFRingEtSums_, hfRingSums);
115  iEvent.getByToken(tokenGctHFBitCounts_, hfBitCounts);
117  iEvent.getByToken(tokenGctHtMiss_, htMiss);
119  iEvent.getByToken(tokenGctJetCounts_, jetCounts);
120 
121  // get RCT EM Cand digi
122  bool packRctEmThisEvent = packRctEm_;
124  if(packRctEmThisEvent)
125  {
126  iEvent.getByToken(tokenCaloEm_, rctEm);
127  if(rctEm.failedToGet())
128  {
129  packRctEmThisEvent = false;
130  LogDebug("GCT") << "RCT EM Candidate packing requested, but failed to get them from event!";
131  }
132  }
133 
134  // get RCT Calo region digi
135  bool packRctCaloThisEvent = packRctCalo_;
137  if(packRctCaloThisEvent)
138  {
139  iEvent.getByToken(tokenCaloRegion_, rctCalo);
140  if(rctCalo.failedToGet())
141  {
142  packRctCaloThisEvent = false;
143  LogDebug("GCT") << "RCT Calo Region packing requested, but failed to get them from event!";
144  }
145  }
146 
147  // create the raw data collection
148  FEDRawDataCollection rawColl;
149 
150  // get the GCT buffer
151  FEDRawData& fedRawData=rawColl.FEDData(fedId_);
152 
153  // set the size & make pointers to the header, beginning of payload, and footer.
154  unsigned int rawSize = 88; // MUST BE MULTIPLE OF 8! (slink packets are 64 bit, but using 8-bit data struct).
155  if(packRctEmThisEvent) { rawSize += 232; } // Space for RCT EM Cands.
156  if(packRctCaloThisEvent) { rawSize += 800; } // Space for RCT Calo Regions (plus a 32-bit word of padding to make divisible by 8)
157  fedRawData.resize(rawSize);
158  unsigned char * pHeader = fedRawData.data();
159  unsigned char * pPayload = pHeader + 16; // 16 = 8 for slink header + 8 for Greg's versioning header.
160  unsigned char * pFooter = pHeader + rawSize - 8;
161 
162  // Write CDF header (exactly as told by Marco Zanetti)
163  FEDHeader fedHeader(pHeader);
164  fedHeader.set(pHeader, 1, eventNumber, bx, fedId_); // what should the bx_ID be?
165 
166  // Pack GCT jet output digis
167  formatTranslator.writeGctOutJetBlock(pPayload,
168  cenJets.product(),
169  forJets.product(),
170  tauJets.product(),
171  hfRingSums.product(),
172  hfBitCounts.product(),
173  htMiss.product());
174 
175  pPayload += 36; //advance payload pointer
176 
177  // Pack GCT EM and energy sums digis.
178  formatTranslator.writeGctOutEmAndEnergyBlock(pPayload,
179  isoEm.product(),
180  nonIsoEm.product(),
181  etTotal.product(),
182  etHad.product(),
183  etMiss.product());
184 
185  pPayload += 28; //advance payload pointer
186 
187  // Pack RCT EM Cands
188  if(packRctEmThisEvent)
189  {
190  formatTranslator.writeRctEmCandBlocks(pPayload, rctEm.product());
191  pPayload+=232; //advance payload pointer
192  }
193 
194  // Pack RCT Calo Regions
195  if(packRctCaloThisEvent)
196  {
197  formatTranslator.writeAllRctCaloRegionBlock(pPayload, rctCalo.product());
198  }
199 
200  // Write CDF footer (exactly as told by Marco Zanetti)
201  FEDTrailer fedTrailer(pFooter);
202  fedTrailer.set(pFooter, rawSize/8, evf::compute_crc(pHeader, rawSize), 0, 0);
203 
204  // Debug output.
205  if (verbose_) { print(fedRawData); }
206 
207  // Put the collection in the event.
208  iEvent.emplace(tokenPut_,std::move(rawColl));
209 }
#define LogDebug(id)
edm::EDGetTokenT< L1GctHFBitCountsCollection > tokenGctHFBitCounts_
Definition: GctDigiToRaw.h:62
void setPackingEventId(uint32_t eventId)
std::atomic< int > counter_
Definition: GctDigiToRaw.h:79
void writeGctOutEmAndEnergyBlock(unsigned char *d, const L1GctEmCandCollection *iso, const L1GctEmCandCollection *nonIso, const L1GctEtTotalCollection *etTotal, const L1GctEtHadCollection *etHad, const L1GctEtMissCollection *etMiss)
Writes GCT output EM and energy sums block into an unsigned char array, starting at the position poin...
edm::EDGetTokenT< L1GctJetCandCollection > tokenGctJetCand_forJets_
Definition: GctDigiToRaw.h:56
EventNumber_t event() const
Definition: EventID.h:41
void writeAllRctCaloRegionBlock(unsigned char *d, const L1CaloRegionCollection *rctCalo)
Writes the giant hack that is the RCT Calo Regions block.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:517
edm::EDGetTokenT< L1GctEmCandCollection > tokenL1GctEmCand_isoEm_
Definition: GctDigiToRaw.h:53
edm::EDGetTokenT< L1CaloEmCollection > tokenCaloEm_
Definition: GctDigiToRaw.h:65
edm::EDGetTokenT< L1GctJetCandCollection > tokenGctJetCand_tauJets_
Definition: GctDigiToRaw.h:57
edm::EDGetTokenT< L1GctHtMissCollection > tokenGctHtMiss_
Definition: GctDigiToRaw.h:63
void writeRctEmCandBlocks(unsigned char *d, const L1CaloEmCollection *rctEm)
Writes the 4 RCT EM Candidate blocks.
unsigned long long EventNumber_t
edm::EDGetTokenT< L1GctEtTotalCollection > tokenGctEtTotal_
Definition: GctDigiToRaw.h:58
edm::EDGetTokenT< L1CaloRegionCollection > tokenCaloRegion_
Definition: GctDigiToRaw.h:66
edm::EDGetTokenT< L1GctJetCountsCollection > tokenGctJetCounts_
Definition: GctDigiToRaw.h:64
void writeGctOutJetBlock(unsigned char *d, const L1GctJetCandCollection *cenJets, const L1GctJetCandCollection *forJets, const L1GctJetCandCollection *tauJets, const L1GctHFRingEtSumsCollection *hfRingSums, const L1GctHFBitCountsCollection *hfBitCounts, const L1GctHtMissCollection *htMiss)
Writes GCT output jet cands and counts into an unsigned char array, starting at the position pointed ...
edm::EDGetTokenT< L1GctJetCandCollection > tokenGctJetCand_cenJets_
Definition: GctDigiToRaw.h:55
edm::EDGetTokenT< L1GctEtMissCollection > tokenGctEtMiss_
Definition: GctDigiToRaw.h:60
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
edm::EDGetTokenT< L1GctEtHadCollection > tokenGctEtHad_
Definition: GctDigiToRaw.h:59
void resize(size_t newsize)
Definition: FEDRawData.cc:32
unsigned short compute_crc(unsigned char *buffer, unsigned int bufSize)
Definition: CRC16.h:46
edm::EDPutTokenT< FEDRawDataCollection > tokenPut_
Definition: GctDigiToRaw.h:67
const int fedId_
Definition: GctDigiToRaw.h:73
const bool packRctEm_
Definition: GctDigiToRaw.h:69
bool failedToGet() const
Definition: HandleBase.h:78
edm::EDGetTokenT< L1GctHFRingEtSumsCollection > tokenGctHFRingEtSums_
Definition: GctDigiToRaw.h:61
const bool verbose_
Definition: GctDigiToRaw.h:76
T const * product() const
Definition: Handle.h:74
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
Definition: Event.h:413
const bool packRctCalo_
Definition: GctDigiToRaw.h:70
Unpacks/packs the MC Legacy data originally produced by the GctBlockPacker class. ...
edm::EDGetTokenT< L1GctEmCandCollection > tokenL1GctEmCand_nonIsoEm_
Definition: GctDigiToRaw.h:54
void setPackingBxId(uint32_t bxId)
edm::EventID id() const
Definition: EventBase.h:59
HLT enums.
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:28
void print(FEDRawData &data) const
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

std::atomic<int> GctDigiToRaw::counter_
mutableprivate

Definition at line 79 of file GctDigiToRaw.h.

Referenced by produce().

const int GctDigiToRaw::fedId_
private

Definition at line 73 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

const bool GctDigiToRaw::packRctCalo_
private

Definition at line 70 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

const bool GctDigiToRaw::packRctEm_
private

Definition at line 69 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1CaloEmCollection> GctDigiToRaw::tokenCaloEm_
private

Definition at line 65 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1CaloRegionCollection> GctDigiToRaw::tokenCaloRegion_
private

Definition at line 66 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctEtHadCollection> GctDigiToRaw::tokenGctEtHad_
private

Definition at line 59 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctEtMissCollection> GctDigiToRaw::tokenGctEtMiss_
private

Definition at line 60 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctEtTotalCollection> GctDigiToRaw::tokenGctEtTotal_
private

Definition at line 58 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctHFBitCountsCollection> GctDigiToRaw::tokenGctHFBitCounts_
private

Definition at line 62 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctHFRingEtSumsCollection> GctDigiToRaw::tokenGctHFRingEtSums_
private

Definition at line 61 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctHtMissCollection> GctDigiToRaw::tokenGctHtMiss_
private

Definition at line 63 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctJetCandCollection> GctDigiToRaw::tokenGctJetCand_cenJets_
private

Definition at line 55 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctJetCandCollection> GctDigiToRaw::tokenGctJetCand_forJets_
private

Definition at line 56 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctJetCandCollection> GctDigiToRaw::tokenGctJetCand_tauJets_
private

Definition at line 57 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctJetCountsCollection> GctDigiToRaw::tokenGctJetCounts_
private

Definition at line 64 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctEmCandCollection> GctDigiToRaw::tokenL1GctEmCand_isoEm_
private

Definition at line 53 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDGetTokenT<L1GctEmCandCollection> GctDigiToRaw::tokenL1GctEmCand_nonIsoEm_
private

Definition at line 54 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

edm::EDPutTokenT<FEDRawDataCollection> GctDigiToRaw::tokenPut_
private

Definition at line 67 of file GctDigiToRaw.h.

Referenced by GctDigiToRaw(), and produce().

const bool GctDigiToRaw::verbose_
private

Definition at line 76 of file GctDigiToRaw.h.

Referenced by produce().