|
| L1GenTreeProducer (const edm::ParameterSet &) |
|
| ~L1GenTreeProducer () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () override |
|
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 |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > 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 |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzer | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsInputProcessBlocks () |
|
static bool | wantsProcessBlocks () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (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 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<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) |
|
Description: Produce L1 Extra tree
Implementation:
Definition at line 54 of file L1GenTreeProducer.cc.
Implements edm::EDAnalyzer.
Definition at line 108 of file L1GenTreeProducer.cc.
References funct::abs(), GenEventInfoProduct::binningValues(), simKBmtfDigis_cfi::bx, Exception, genInfoToken_, L1CaloJetHTTProducer_cfi::genJets, genJetToken_, AJJGenJetFilter_cfi::genParticles, genParticleToken_, GenEventInfoProduct::hasBinningValues(), mps_fire::i, iEvent, edm::HandleBase::isValid(), l1GenData_, nPart(), AlCaHLTBitMon_ParallelJobs::p, EgammaValidation_cff::pdgId, pileupInfoToken_, tree_, and GenEventInfoProduct::weight().
123 reco::GenJetCollection::const_iterator jetItr =
genJets->begin();
124 reco::GenJetCollection::const_iterator jetEnd =
genJets->end();
125 for (; jetItr != jetEnd; ++jetItr) {
133 edm::LogWarning(
"MissingProduct") <<
"Gen jets not found. Branch will not be filled" << std::endl;
147 int parentID = -10000;
148 unsigned int nMo =
p.numberOfMothers();
149 for (
unsigned int i = 0;
i < nMo; ++
i) {
153 int hundredsIndex =
abs(thisParentID) / 100;
154 int thousandsIndex =
abs(thisParentID) / 1000;
155 if (((
abs(thisParentID) >= 23) && (
abs(thisParentID) <= 25)) || (
abs(thisParentID) == 6) ||
156 (hundredsIndex == 5) || (hundredsIndex == 4) || (thousandsIndex == 5) || (thousandsIndex == 4))
157 parentID = thisParentID;
159 if ((parentID == -10000) && (nMo > 0))
163 if ((parentID !=
p.pdgId()) &&
164 ((parentID > -9999) || (
abs(
id) == 11) || (
abs(
id) == 13) || (
abs(
id) == 23) || (
abs(
id) == 24) ||
165 (
abs(
id) == 25) || (
abs(
id) == 4) || (
abs(
id) == 5) || (
abs(
id) == 6))) {
183 if (!puInfoCollection.
isValid()) {
184 throw cms::Exception(
"ProductNotValid") <<
"pileupInfoSource not valid";
188 std::vector<PileupSummaryInfo>::const_iterator puItr = puInfoCollection->begin();
189 std::vector<PileupSummaryInfo>::const_iterator puEnd = puInfoCollection->end();
190 for (; puItr != puEnd; ++puItr) {
191 int bx = puItr->getBunchCrossing();
193 l1GenData_->nMeanPU = puItr->getTrueNumInteractions();
194 l1GenData_->nVtx = puItr->getPU_NumInteractions();
const std::vector< double > & binningValues() const
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupInfoToken_
edm::EDGetTokenT< GenEventInfoProduct > genInfoToken_
edm::EDGetTokenT< reco::GenJetCollection > genJetToken_
edm::EDGetTokenT< reco::GenParticleCollection > genParticleToken_
Abs< T >::type abs(const T &t)
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
std::unique_ptr< L1Analysis::L1AnalysisGeneratorDataFormat > l1GenData_
bool hasBinningValues() const
Log< level::Warning, false > LogWarning