CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
HcalRawToDigiFake Class Reference
Inheritance diagram for HcalRawToDigiFake:
edm::global::EDProducer<> edm::global::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 HcalRawToDigiFake (const edm::ParameterSet &ps)
 
void produce (edm::StreamID id, edm::Event &e, const edm::EventSetup &c) const override
 
 ~HcalRawToDigiFake () override
 
- Public Member Functions inherited from edm::global::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept final
 
bool wantsStreamLuminosityBlocks () const noexcept final
 
bool wantsStreamRuns () const noexcept 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
 
std::vector< bool > const & recordProvenanceList () 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)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~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
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::global::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Attributes

edm::EDGetTokenT< HcalCalibDigiCollectiontok_CalibDigiCollection_
 
edm::EDGetTokenT< HBHEDigiCollectiontok_HBHEDigiCollection_
 
edm::EDGetTokenT< HFDigiCollectiontok_HFDigiCollection_
 
edm::EDGetTokenT< HODigiCollectiontok_HODigiCollection_
 
edm::EDGetTokenT< HOTrigPrimDigiCollectiontok_HOTPDigiCollection_
 
edm::EDGetTokenT< QIE10DigiCollectiontok_QIE10DigiCollection_
 
edm::EDGetTokenT< QIE11DigiCollectiontok_QIE11DigiCollection_
 
edm::EDGetTokenT< HcalTrigPrimDigiCollectiontok_TPDigiCollection_
 
edm::EDGetTokenT< HcalTTPDigiCollectiontok_TTPDigiCollection_
 
edm::EDGetTokenT< ZDCDigiCollectiontok_ZDCDigiCollection_
 
edm::EDGetTokenT< QIE10DigiCollectiontok_ZDCQIE10DigiCollection_
 
const bool unpackCalib_
 
const bool unpackTTP_
 
const bool unpackZDC_
 

Additional Inherited Members

- Public Types inherited from edm::global::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
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
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 34 of file HcalRawToDigiFake.cc.

Constructor & Destructor Documentation

◆ HcalRawToDigiFake()

HcalRawToDigiFake::HcalRawToDigiFake ( const edm::ParameterSet ps)
explicit

Definition at line 57 of file HcalRawToDigiFake.cc.

References unpackCalib_, unpackTTP_, and unpackZDC_.

58  : tok_QIE10DigiCollection_(consumes<QIE10DigiCollection>(conf.getParameter<edm::InputTag>("QIE10"))),
59  tok_QIE11DigiCollection_(consumes<QIE11DigiCollection>(conf.getParameter<edm::InputTag>("QIE11"))),
60  tok_HBHEDigiCollection_(consumes<HBHEDigiCollection>(conf.getParameter<edm::InputTag>("HBHE"))),
61  tok_HFDigiCollection_(consumes<HFDigiCollection>(conf.getParameter<edm::InputTag>("HF"))),
62  tok_HODigiCollection_(consumes<HODigiCollection>(conf.getParameter<edm::InputTag>("HO"))),
63  tok_TPDigiCollection_(consumes<HcalTrigPrimDigiCollection>(conf.getParameter<edm::InputTag>("TRIG"))),
64  tok_HOTPDigiCollection_(consumes<HOTrigPrimDigiCollection>(conf.getParameter<edm::InputTag>("HOTP"))),
65  tok_CalibDigiCollection_(consumes<HcalCalibDigiCollection>(conf.getParameter<edm::InputTag>("CALIB"))),
66  tok_ZDCDigiCollection_(consumes<ZDCDigiCollection>(conf.getParameter<edm::InputTag>("ZDC"))),
67  tok_ZDCQIE10DigiCollection_(consumes<QIE10DigiCollection>(conf.getParameter<edm::InputTag>("ZDCQIE10"))),
68  tok_TTPDigiCollection_(consumes<HcalTTPDigiCollection>(conf.getParameter<edm::InputTag>("TTP"))),
69  unpackCalib_(conf.getParameter<bool>("UnpackCalib")),
70  unpackZDC_(conf.getParameter<bool>("UnpackZDC")),
71  unpackTTP_(conf.getParameter<bool>("UnpackTTP")) {
72  // products produced...
73  produces<QIE10DigiCollection>();
74  produces<QIE11DigiCollection>();
75  produces<HBHEDigiCollection>();
76  produces<HFDigiCollection>();
77  produces<HODigiCollection>();
78  produces<HcalTrigPrimDigiCollection>();
79  produces<HOTrigPrimDigiCollection>();
80  if (unpackCalib_)
81  produces<HcalCalibDigiCollection>();
82  if (unpackZDC_)
83  produces<ZDCDigiCollection>();
84  if (unpackTTP_)
85  produces<HcalTTPDigiCollection>();
86  produces<QIE10DigiCollection>("ZDC");
87 }
edm::EDGetTokenT< HcalTTPDigiCollection > tok_TTPDigiCollection_
edm::EDGetTokenT< HcalTrigPrimDigiCollection > tok_TPDigiCollection_
edm::EDGetTokenT< QIE10DigiCollection > tok_QIE10DigiCollection_
edm::EDGetTokenT< HFDigiCollection > tok_HFDigiCollection_
edm::EDGetTokenT< QIE10DigiCollection > tok_ZDCQIE10DigiCollection_
edm::EDGetTokenT< QIE11DigiCollection > tok_QIE11DigiCollection_
edm::EDGetTokenT< HOTrigPrimDigiCollection > tok_HOTPDigiCollection_
edm::EDGetTokenT< HcalCalibDigiCollection > tok_CalibDigiCollection_
edm::EDGetTokenT< HODigiCollection > tok_HODigiCollection_
edm::EDGetTokenT< HBHEDigiCollection > tok_HBHEDigiCollection_
edm::EDGetTokenT< ZDCDigiCollection > tok_ZDCDigiCollection_

◆ ~HcalRawToDigiFake()

HcalRawToDigiFake::~HcalRawToDigiFake ( )
override

Definition at line 90 of file HcalRawToDigiFake.cc.

90 {}

Member Function Documentation

◆ fillDescriptions()

void HcalRawToDigiFake::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 92 of file HcalRawToDigiFake.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and ProducerED_cfi::InputTag.

92  {
94  desc.add<bool>("UnpackZDC", true);
95  desc.add<bool>("UnpackCalib", true);
96  desc.add<bool>("UnpackTTP", true);
97  //empty tag = not usually produced by simulation
98  desc.add<edm::InputTag>("QIE10", edm::InputTag("simHcalDigis", "HFQIE10DigiCollection"));
99  desc.add<edm::InputTag>("QIE11", edm::InputTag("simHcalDigis", "HBHEQIE11DigiCollection"));
100  desc.add<edm::InputTag>("HBHE", edm::InputTag("simHcalDigis"));
101  desc.add<edm::InputTag>("HF", edm::InputTag("simHcalDigis"));
102  desc.add<edm::InputTag>("HO", edm::InputTag("simHcalDigis"));
103  desc.add<edm::InputTag>("TRIG", edm::InputTag("simHcalTriggerPrimitiveDigis"));
104  desc.add<edm::InputTag>("HOTP", edm::InputTag(""));
105  desc.add<edm::InputTag>("CALIB", edm::InputTag(""));
106  desc.add<edm::InputTag>("ZDC", edm::InputTag("simHcalUnsuppressedDigis"));
107  desc.add<edm::InputTag>("ZDCQIE10", edm::InputTag(""));
108  desc.add<edm::InputTag>("TTP", edm::InputTag(""));
109  //not used, just for compatibility
110  desc.add<edm::InputTag>("InputLabel", edm::InputTag("rawDataCollector"));
111  desc.add<int>("firstSample", 0);
112  desc.add<int>("lastSample", 0);
113  descriptions.add("HcalRawToDigiFake", desc);
114 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

void HcalRawToDigiFake::produce ( edm::StreamID  id,
edm::Event e,
const edm::EventSetup c 
) const
overridevirtual

Implements edm::global::EDProducerBase.

Definition at line 117 of file HcalRawToDigiFake.cc.

References MillePedeFileConverter_cfg::e, raw_impl::get(), tok_CalibDigiCollection_, tok_HBHEDigiCollection_, tok_HFDigiCollection_, tok_HODigiCollection_, tok_HOTPDigiCollection_, tok_QIE10DigiCollection_, tok_QIE11DigiCollection_, tok_TPDigiCollection_, tok_TTPDigiCollection_, tok_ZDCDigiCollection_, tok_ZDCQIE10DigiCollection_, unpackCalib_, unpackTTP_, and unpackZDC_.

117  {
118  //handle each collection
126  if (unpackCalib_)
128  if (unpackZDC_)
131  if (unpackTTP_)
133 }
edm::EDGetTokenT< HcalTTPDigiCollection > tok_TTPDigiCollection_
void get(edm::EDGetTokenT< T > tok, edm::Event &e, const std::string &productName="")
edm::EDGetTokenT< HcalTrigPrimDigiCollection > tok_TPDigiCollection_
edm::EDGetTokenT< QIE10DigiCollection > tok_QIE10DigiCollection_
edm::EDGetTokenT< HFDigiCollection > tok_HFDigiCollection_
edm::EDGetTokenT< QIE10DigiCollection > tok_ZDCQIE10DigiCollection_
edm::EDGetTokenT< QIE11DigiCollection > tok_QIE11DigiCollection_
edm::EDGetTokenT< HOTrigPrimDigiCollection > tok_HOTPDigiCollection_
edm::EDGetTokenT< HcalCalibDigiCollection > tok_CalibDigiCollection_
edm::EDGetTokenT< HODigiCollection > tok_HODigiCollection_
edm::EDGetTokenT< HBHEDigiCollection > tok_HBHEDigiCollection_
edm::EDGetTokenT< ZDCDigiCollection > tok_ZDCDigiCollection_

Member Data Documentation

◆ tok_CalibDigiCollection_

edm::EDGetTokenT<HcalCalibDigiCollection> HcalRawToDigiFake::tok_CalibDigiCollection_
private

Definition at line 50 of file HcalRawToDigiFake.cc.

Referenced by produce().

◆ tok_HBHEDigiCollection_

edm::EDGetTokenT<HBHEDigiCollection> HcalRawToDigiFake::tok_HBHEDigiCollection_
private

Definition at line 45 of file HcalRawToDigiFake.cc.

Referenced by produce().

◆ tok_HFDigiCollection_

edm::EDGetTokenT<HFDigiCollection> HcalRawToDigiFake::tok_HFDigiCollection_
private

Definition at line 46 of file HcalRawToDigiFake.cc.

Referenced by produce().

◆ tok_HODigiCollection_

edm::EDGetTokenT<HODigiCollection> HcalRawToDigiFake::tok_HODigiCollection_
private

Definition at line 47 of file HcalRawToDigiFake.cc.

Referenced by produce().

◆ tok_HOTPDigiCollection_

edm::EDGetTokenT<HOTrigPrimDigiCollection> HcalRawToDigiFake::tok_HOTPDigiCollection_
private

Definition at line 49 of file HcalRawToDigiFake.cc.

Referenced by produce().

◆ tok_QIE10DigiCollection_

edm::EDGetTokenT<QIE10DigiCollection> HcalRawToDigiFake::tok_QIE10DigiCollection_
private

Definition at line 43 of file HcalRawToDigiFake.cc.

Referenced by produce().

◆ tok_QIE11DigiCollection_

edm::EDGetTokenT<QIE11DigiCollection> HcalRawToDigiFake::tok_QIE11DigiCollection_
private

Definition at line 44 of file HcalRawToDigiFake.cc.

Referenced by produce().

◆ tok_TPDigiCollection_

edm::EDGetTokenT<HcalTrigPrimDigiCollection> HcalRawToDigiFake::tok_TPDigiCollection_
private

Definition at line 48 of file HcalRawToDigiFake.cc.

Referenced by produce().

◆ tok_TTPDigiCollection_

edm::EDGetTokenT<HcalTTPDigiCollection> HcalRawToDigiFake::tok_TTPDigiCollection_
private

Definition at line 53 of file HcalRawToDigiFake.cc.

Referenced by produce().

◆ tok_ZDCDigiCollection_

edm::EDGetTokenT<ZDCDigiCollection> HcalRawToDigiFake::tok_ZDCDigiCollection_
private

Definition at line 51 of file HcalRawToDigiFake.cc.

Referenced by produce().

◆ tok_ZDCQIE10DigiCollection_

edm::EDGetTokenT<QIE10DigiCollection> HcalRawToDigiFake::tok_ZDCQIE10DigiCollection_
private

Definition at line 52 of file HcalRawToDigiFake.cc.

Referenced by produce().

◆ unpackCalib_

const bool HcalRawToDigiFake::unpackCalib_
private

Definition at line 54 of file HcalRawToDigiFake.cc.

Referenced by HcalRawToDigiFake(), and produce().

◆ unpackTTP_

const bool HcalRawToDigiFake::unpackTTP_
private

Definition at line 54 of file HcalRawToDigiFake.cc.

Referenced by HcalRawToDigiFake(), and produce().

◆ unpackZDC_

const bool HcalRawToDigiFake::unpackZDC_
private

Definition at line 54 of file HcalRawToDigiFake.cc.

Referenced by HcalRawToDigiFake(), and produce().