|
| JetCrystalsAssociator (const edm::ParameterSet &) |
|
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
|
| ~JetCrystalsAssociator () |
|
| 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 |
|
| 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 & | itemsToGetFromEvent () 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) |
|
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 67 of file JetCrystalsAssociator.cc.
Implements edm::EDProducer.
Definition at line 116 of file JetCrystalsAssociator.cc.
References DetId::det(), EB, egHLT::errCodes::EBRecHits, DetId::Ecal, EcalBarrel, EcalEndcap, EE, egHLT::errCodes::EERecHits, relval_parameters_module::energy, eta, PV3DBase< T, PVType, FrameType >::eta(), geometry, edm::EventSetup::get(), edm::Event::getByLabel(), CaloCellGeometry::getPosition(), j, fwrapper::jets, M_PI, eostools::move(), AlCaHLTBitMon_ParallelJobs::p, PV3DBase< T, PVType, FrameType >::phi(), phi(), edm::Event::put(), dt_dqm_sourceclient_common_cff::reco, funct::sin(), DetId::subdetId(), t, PV3DBase< T, PVType, FrameType >::theta(), and theta().
119 using namespace reco;
143 auto jetRecHits = std::make_unique<EMLorentzVectorCollection>();
145 for (
size_t t = 0;
t <
jets->size();
t++)
147 const std::vector<CaloTowerPtr> myTowers=(*jets)[
t].getCaloConstituents();
150 for (
unsigned int iTower = 0; iTower < myTowers.size(); iTower++)
153 size_t numRecHits = theTower->constituentsSize();
155 for (
size_t j = 0;
j < numRecHits;
j++) {
156 DetId RecHitDetID=theTower->constituent(
j);
159 int EcalNum = RecHitDetID.
subdetId();
164 DetId id = theRecHit->detid();
168 double energy = theRecHit->energy();
173 double et = energy *
sin(theta);
176 jetRecHits->push_back(
p);
179 }
else if ( EcalNum == 2 ) {
183 DetId id = theRecHit->detid();
187 double energy = theRecHit->energy();
188 double eta = posi.
eta();
189 double phi = posi.
phi();
190 double theta = posi.
theta();
192 double et = energy *
sin(theta);
195 jetRecHits->push_back(
p);
edm::InputTag m_EBRecHits
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::unique_ptr< JetCrystalsAssociationCollection > associate(const edm::Handle< CaloJetCollection > &jets, const edm::OrphanHandle< EMLorentzVectorCollection > &myLorentzRecHits) const
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
std::vector< EcalRecHit >::const_iterator const_iterator
Geom::Theta< T > theta() const
Geom::Theta< T > theta() const
edm::InputTag m_EERecHits
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
math::PtEtaPhiELorentzVector EMLorentzVector
ESHandle< TrackerGeometry > geometry
Detector det() const
get the detector field from this detid
const GlobalPoint & getPosition() const
Returns the position of reference for this cell.