|
| HcalTBObjectUnpacker (const edm::ParameterSet &ps) |
|
virtual void | produce (edm::Event &e, const edm::EventSetup &c) |
|
virtual | ~HcalTBObjectUnpacker () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
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, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
|
virtual | ~ProducerBase () noexcept(false) |
|
std::vector< ConsumesInfo > | consumesInfo () 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 |
|
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 |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
HcalTBObjectUnpacker is the EDProducer subclass which runs the Hcal Test Beam Object Unpack algorithm.
- Author
- Phil Dudero
- Version
- 1st Version June 10, 2005
Definition at line 33 of file HcalTBObjectUnpacker.h.
Definition at line 15 of file HcalTBObjectUnpacker.cc.
References calibFile_, calibLines_, gather_cfg::cout, doBeamADC_, doEventPosition_, doRunData_, doSourcePos_, doTiming_, doTriggerData_, Exception, edm::ParameterSet::getParameter(), parseCalib(), qadcFed_, qadcUnpacker_, sdFed_, hcaltb::HcalTBQADCUnpacker::setCalib(), hcaltb::HcalTBTDCUnpacker::setCalib(), spdFed_, tdcFed_, tdcUnpacker_, tok_raw_, and triggerFed_.
16 triggerFed_(conf.getUntrackedParameter<
int>(
"HcalTriggerFED",-1)),
17 sdFed_(conf.getUntrackedParameter<
int>(
"HcalSlowDataFED",-1)),
18 spdFed_(conf.getUntrackedParameter<
int>(
"HcalSourcePositionFED",-1)),
19 tdcFed_(conf.getUntrackedParameter<
int>(
"HcalTDCFED",-1)),
20 qadcFed_(conf.getUntrackedParameter<
int>(
"HcalQADCFED",-1)),
21 calibFile_(conf.getUntrackedParameter<
string>(
"ConfigurationFile",
"")),
22 tdcUnpacker_(conf.getUntrackedParameter<
bool>(
"IncludeUnmatchedHits",
false)),
26 tok_raw_ = consumes<FEDRawDataCollection>(conf.getParameter<
edm::InputTag>(
"fedRawDataCollectionTag"));
29 std::cout <<
"HcalTBObjectUnpacker will unpack Trigger FED ";
35 std::cout <<
"HcalTBObjectUnpacker will unpack SlowData FED ";
42 std::cout <<
"HcalTBObjectUnpacker will unpack TDC FED ";
49 std::cout <<
"HcalTBObjectUnpacker will unpack QADC FED ";
55 std::cout <<
"HcalTBObjectUnpacker will unpack Source Position Data FED ";
69 "HcalTBObjectUnpacker: TDC/QADC/WC configuration file not found or is empty: "<<
calibFile_<<endl;
73 "HcalTBObjectUnpacker: TDC/QADC/WC configuration file not found: "<<
calibFile_<<endl;
std::vector< std::vector< std::string > > calibLines_
void setCalib(const std::vector< std::vector< std::string > > &calibLines_)
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
hcaltb::HcalTBTDCUnpacker tdcUnpacker_
void setCalib(const std::vector< std::vector< std::string > > &calibLines_)
hcaltb::HcalTBQADCUnpacker qadcUnpacker_
Definition at line 92 of file HcalTBObjectUnpacker.cc.
References doBeamADC_, doEventPosition_, doRunData_, doSourcePos_, doTiming_, doTriggerData_, FEDRawDataCollection::FEDData(), edm::Event::getByToken(), eostools::move(), edm::Event::put(), qadcFed_, qadcUnpacker_, sdFed_, sdUnpacker_, spdFed_, spdUnpacker_, tdcFed_, tdcUnpacker_, tdUnpacker_, tok_raw_, triggerFed_, hcaltb::HcalTBQADCUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), hcaltb::HcalTBTDCUnpacker::unpack(), and hcaltb::HcalTBSlowDataUnpacker::unpack().
99 auto trigd = std::make_unique<HcalTBTriggerData>();
101 auto rund = std::make_unique<HcalTBRunData>();
103 auto epd = std::make_unique<HcalTBEventPosition>();
105 auto tmgd = std::make_unique<HcalTBTiming>();
107 auto bcntd = std::make_unique<HcalTBBeamCounters>();
109 auto spd = std::make_unique<HcalSourcePositionData>();
hcaltb::HcalTBTriggerDataUnpacker tdUnpacker_
void unpack(const FEDRawData &raw, HcalTBTriggerData &htbtd) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void unpack(const FEDRawData &raw, HcalTBBeamCounters &beamadc, bool is04_=true) const
void unpack(const FEDRawData &raw, HcalSourcePositionData &hspd) const
hcaltb::HcalTBSlowDataUnpacker sdUnpacker_
hcaltb::HcalTBSourcePositionDataUnpacker spdUnpacker_
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
void unpack(const FEDRawData &raw, HcalTBRunData &htbrd, HcalTBEventPosition &htbep) const
void unpack(const FEDRawData &raw, HcalTBEventPosition &pos, HcalTBTiming &timing) const
hcaltb::HcalTBTDCUnpacker tdcUnpacker_
hcaltb::HcalTBQADCUnpacker qadcUnpacker_