|
| CastorCellProducer (const edm::ParameterSet &) |
|
| ~CastorCellProducer () |
|
| 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) |
|
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