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

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
ProducesCollector producesCollector ()
 
- 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

Definition at line 34 of file HcalRawToDigiFake.cc.

Constructor & Destructor Documentation

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

Definition at line 90 of file HcalRawToDigiFake.cc.

90 {}

Member Function Documentation

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

Definition at line 92 of file HcalRawToDigiFake.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and HLT_2018_cff::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 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void HcalRawToDigiFake::produce ( edm::StreamID  id,
edm::Event e,
const edm::EventSetup c 
) const
override

Definition at line 117 of file HcalRawToDigiFake.cc.

References DEFINE_FWK_MODULE, 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_.

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

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

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

Definition at line 50 of file HcalRawToDigiFake.cc.

Referenced by produce().

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

Definition at line 45 of file HcalRawToDigiFake.cc.

Referenced by produce().

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

Definition at line 46 of file HcalRawToDigiFake.cc.

Referenced by produce().

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

Definition at line 47 of file HcalRawToDigiFake.cc.

Referenced by produce().

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

Definition at line 49 of file HcalRawToDigiFake.cc.

Referenced by produce().

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

Definition at line 43 of file HcalRawToDigiFake.cc.

Referenced by produce().

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

Definition at line 44 of file HcalRawToDigiFake.cc.

Referenced by produce().

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

Definition at line 48 of file HcalRawToDigiFake.cc.

Referenced by produce().

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

Definition at line 53 of file HcalRawToDigiFake.cc.

Referenced by produce().

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

Definition at line 51 of file HcalRawToDigiFake.cc.

Referenced by produce().

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

Definition at line 52 of file HcalRawToDigiFake.cc.

Referenced by produce().

const bool HcalRawToDigiFake::unpackCalib_
private

Definition at line 54 of file HcalRawToDigiFake.cc.

Referenced by HcalRawToDigiFake(), and produce().

const bool HcalRawToDigiFake::unpackTTP_
private

Definition at line 54 of file HcalRawToDigiFake.cc.

Referenced by HcalRawToDigiFake(), and produce().

const bool HcalRawToDigiFake::unpackZDC_
private

Definition at line 54 of file HcalRawToDigiFake.cc.

Referenced by HcalRawToDigiFake(), and produce().