|
| CastorCellProducer (const edm::ParameterSet &) |
|
| ~CastorCellProducer () override |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducer () override |
|
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) |
|
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 |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducer | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
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 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) |
|
Description: CastorCell Reconstruction Producer. Produce CastorCells from CastorRecHits. Implementation:
Definition at line 44 of file CastorCellProducer.cc.
Definition at line 97 of file CastorCellProducer.cc.
References CaloRecHit::energy(), edm::Event::getByToken(), mps_fire::i, CastorRecHit::id(), LogDebug, HcalCastorDetId::module(), eostools::move(), MYR2D, edm::Event::put(), HcalCastorDetId::sector(), edm::SortedCollection< T, SORT >::size(), tok_input_, HcalDigiParam_cfi::zside, and HcalCastorDetId::zside().
100 using namespace reco;
101 using namespace TMath;
108 auto OutputCells = std::make_unique<CastorCellCollection>();
113 <<
"1. entering CastorCellProducer ";
115 for (
size_t i = 0;
i < InputRecHits->
size(); ++
i) {
119 double energy = rh.
energy();
130 if (module == 1) zCell = 14415;
131 if (module == 2) zCell = 14464;
134 zCell = 14534 + (module - 3)*92;
138 double castorphi[16];
139 for (
int j = 0; j < 16; j++) {
140 castorphi[j] = -2.94524 + j*0.3927;
143 phiCell = castorphi[sector - 9];
145 phiCell = castorphi[sector + 7];
149 if (zside <= 0) zCell = -1*zCell;
155 CellPoint tempcellposition(rhoCell,zCell,phiCell);
156 Point cellposition(tempcellposition);
159 <<
"cell number: "<<
i+1<<std::endl
160 <<
"rho: "<<cellposition.rho()<<
" phi: "<<cellposition.phi()*
MYR2D<<
" eta: "<<cellposition.eta()<<std::endl
161 <<
"x: "<<cellposition.x()<<
" y: "<<cellposition.y()<<
" z: "<<cellposition.z();
165 OutputCells->push_back(newCell);
171 <<
"total number of cells in the event: "<<InputRecHits->
size();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
int sector() const
get the sector (1-16)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
int module() const
get the module (1-2 for EM, 1-12 for HAD)
HcalCastorDetId id() const
get the id
edm::EDGetTokenT< CastorRecHitCollection > tok_input_
int zside() const
get the z-side of the cell (1/-1)
ROOT::Math::RhoZPhiPoint CellPoint