Public Member Functions | |
MergeClusterProducer (const edm::ParameterSet &) | |
Constructor with parameter settings - which can be changed in ...todo. Constructor will set all variables by input param ps. More... | |
void | produce (edm::Event &, const edm::EventSetup &) override |
Method will merge the producers and put them back to event. More... | |
~MergeClusterProducer () override | |
Public Member Functions inherited from edm::stream::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 |
const EDProducer & | operator= (const EDProducer &)=delete |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Method fill description which will be used in pyhton file. More... | |
Private Member Functions | |
void | addTo (std::vector< std::pair< float, float >> &to, const edm::ValueMap< std::pair< float, float >> &vm) |
copy all values from vm to to More... | |
template<typename T > | |
void | createMerge (edm::Event &evt, const edm::EDGetTokenT< T > &EE_token, const edm::EDGetTokenT< T > &HSi_token, const edm::EDGetTokenT< T > &HSci_token, T &merge) |
get info form event and then call merge More... | |
void | mergeTime (edm::Event &evt, size_t size, std::vector< std::pair< float, float >> ×) |
Merge value map of time for all parts of detector together to vector times. More... | |
void | mergeTogether (std::vector< reco::CaloCluster > &merge, const std::vector< reco::CaloCluster > &EE, const std::vector< reco::CaloCluster > &HSi, const std::vector< reco::CaloCluster > &HSci) |
method merge three vectors of reco::CaloCluster to one More... | |
Private Attributes | |
const edm::EDGetTokenT< edm::ValueMap< std::pair< float, float > > > | clustersTimeEE_token_ |
const edm::EDGetTokenT< edm::ValueMap< std::pair< float, float > > > | clustersTimeHSci_token_ |
const edm::EDGetTokenT< edm::ValueMap< std::pair< float, float > > > | clustersTimeHSi_token_ |
edm::EDGetTokenT< std::vector< reco::CaloCluster > > | EEclusters_token_ |
edm::EDGetTokenT< std::vector< reco::CaloCluster > > | HSciclusters_token_ |
edm::EDGetTokenT< std::vector< reco::CaloCluster > > | HSiclusters_token_ |
std::string | timeClname_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Definition at line 15 of file MergeClusterProducer.cc.
MergeClusterProducer::MergeClusterProducer | ( | const edm::ParameterSet & | ps | ) |
Constructor with parameter settings - which can be changed in ...todo. Constructor will set all variables by input param ps.
[in] | ps | parametr set to set variables |
Definition at line 120 of file MergeClusterProducer.cc.
References EEclusters_token_, edm::ParameterSet::getParameter(), HSciclusters_token_, HSiclusters_token_, and timeClname_.
|
inlineoverride |
Definition at line 24 of file MergeClusterProducer.cc.
|
inlineprivate |
copy all values from vm to to
[in] | vm | Value map with values |
[out] | to | vector to will be copy value map |
Definition at line 69 of file MergeClusterProducer.cc.
References mps_fire::i, and findQualityFiles::size.
Referenced by mergeTime().
|
inlineprivate |
get info form event and then call merge
it is used for merge and clusters and time
[in] | evt | Event |
[in] | EE_token | token for Electromagnetic silicon |
[in] | HSi_token | token for Hardon silicon |
[in] | ESci_token | token for hadron scintillator |
Definition at line 106 of file MergeClusterProducer.cc.
References EE, edm::Event::getByToken(), and mergeTogether().
Referenced by produce().
|
static |
Method fill description which will be used in pyhton file.
[out] | description | to be fill |
Definition at line 139 of file MergeClusterProducer.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineprivate |
Merge value map of time for all parts of detector together to vector times.
[in] | evt | Event to get time value maps |
[in] | size | of all 3 value maps |
[out] | times | vector of merged time vectors |
Definition at line 82 of file MergeClusterProducer.cc.
References addTo(), clustersTimeEE_token_, clustersTimeHSci_token_, clustersTimeHSi_token_, EE, edm::Event::getByToken(), and findQualityFiles::size.
Referenced by produce().
|
private |
method merge three vectors of reco::CaloCluster to one
[out] | merge | the vector into which others vectors will be merge |
[in] | EE | vector for Electromagnetic silicon |
[in] | HSi | vector for Hardon silicon |
[in] | ESci | vector for hadron scintillator |
Definition at line 180 of file MergeClusterProducer.cc.
References nano_mu_local_reco_cff::clusterSize, and EE.
Referenced by createMerge().
|
override |
Method will merge the producers and put them back to event.
[in,out] | evt | from get info and put result |
[in] | es | to get event setup info |
Definition at line 156 of file MergeClusterProducer.cc.
References bsc_activity_cfg::clusters, createMerge(), EEclusters_token_, trigObjTnPSource_cfi::filler, HSciclusters_token_, HSiclusters_token_, mergeTime(), eostools::move(), edm::Event::put(), edm::Event::size(), and timeClname_.
|
private |
Definition at line 46 of file MergeClusterProducer.cc.
Referenced by mergeTime().
|
private |
Definition at line 48 of file MergeClusterProducer.cc.
Referenced by mergeTime().
|
private |
Definition at line 47 of file MergeClusterProducer.cc.
Referenced by mergeTime().
|
private |
Definition at line 41 of file MergeClusterProducer.cc.
Referenced by MergeClusterProducer(), and produce().
|
private |
Definition at line 43 of file MergeClusterProducer.cc.
Referenced by MergeClusterProducer(), and produce().
|
private |
Definition at line 42 of file MergeClusterProducer.cc.
Referenced by MergeClusterProducer(), and produce().
|
private |
Definition at line 45 of file MergeClusterProducer.cc.
Referenced by MergeClusterProducer(), and produce().