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
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () 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
 
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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
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)
 

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
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<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
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)
 
template<Transition B>
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 (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (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)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

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.

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 }

References unpackCalib_, unpackTTP_, and unpackZDC_.

◆ ~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.

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 }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and HLT_2018_cff::InputTag.

◆ produce()

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

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().

edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
HcalRawToDigiFake::tok_QIE10DigiCollection_
edm::EDGetTokenT< QIE10DigiCollection > tok_QIE10DigiCollection_
Definition: HcalRawToDigiFake.cc:43
HcalRawToDigiFake::tok_TTPDigiCollection_
edm::EDGetTokenT< HcalTTPDigiCollection > tok_TTPDigiCollection_
Definition: HcalRawToDigiFake.cc:53
HcalRawToDigiFake::tok_ZDCDigiCollection_
edm::EDGetTokenT< ZDCDigiCollection > tok_ZDCDigiCollection_
Definition: HcalRawToDigiFake.cc:51
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
HcalRawToDigiFake::tok_HFDigiCollection_
edm::EDGetTokenT< HFDigiCollection > tok_HFDigiCollection_
Definition: HcalRawToDigiFake.cc:46
HcalRawToDigiFake::tok_TPDigiCollection_
edm::EDGetTokenT< HcalTrigPrimDigiCollection > tok_TPDigiCollection_
Definition: HcalRawToDigiFake.cc:48
HcalRawToDigiFake::tok_QIE11DigiCollection_
edm::EDGetTokenT< QIE11DigiCollection > tok_QIE11DigiCollection_
Definition: HcalRawToDigiFake.cc:44
raw_impl::get
void get(edm::EDGetTokenT< T > tok, edm::Event &e, const std::string &productName="")
Definition: HcalRawToDigiFake.cc:19
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
HcalRawToDigiFake::unpackTTP_
const bool unpackTTP_
Definition: HcalRawToDigiFake.cc:54
HcalRawToDigiFake::tok_ZDCQIE10DigiCollection_
edm::EDGetTokenT< QIE10DigiCollection > tok_ZDCQIE10DigiCollection_
Definition: HcalRawToDigiFake.cc:52
HcalRawToDigiFake::unpackZDC_
const bool unpackZDC_
Definition: HcalRawToDigiFake.cc:54
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
HcalRawToDigiFake::tok_HOTPDigiCollection_
edm::EDGetTokenT< HOTrigPrimDigiCollection > tok_HOTPDigiCollection_
Definition: HcalRawToDigiFake.cc:49
HcalRawToDigiFake::tok_HODigiCollection_
edm::EDGetTokenT< HODigiCollection > tok_HODigiCollection_
Definition: HcalRawToDigiFake.cc:47
HcalRawToDigiFake::tok_CalibDigiCollection_
edm::EDGetTokenT< HcalCalibDigiCollection > tok_CalibDigiCollection_
Definition: HcalRawToDigiFake.cc:50
HcalRawToDigiFake::unpackCalib_
const bool unpackCalib_
Definition: HcalRawToDigiFake.cc:54
HcalRawToDigiFake::tok_HBHEDigiCollection_
edm::EDGetTokenT< HBHEDigiCollection > tok_HBHEDigiCollection_
Definition: HcalRawToDigiFake.cc:45
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37