#include <RingerReFex.h>
|
| RingSet (unsigned int maxRings, double deta, double dphi, const std::vector< int > &detectors, const std::vector< int > &samplings, const std::vector< int > &samples, bool doQuarter, bool doEtaAxesDivision, bool doPhiAxesDivision) |
|
| ~RingSet ()=default |
|
void | buildRings (const double eta_hot, const double phi_hot, const CaloNoise *noiseCDO, const double m_noiseFactor, const bool m_doNoiseThrRings) |
| ================================================================================= More...
|
|
const std::vector< double > & | rings () const |
| ================================================================================= More...
|
|
const std::vector< std::pair< int, int > > | detectors () const |
| ================================================================================= More...
|
|
bool | isValid (const CaloCell *) const |
| ================================================================================= More...
|
|
void | push_back (const CaloCell *) |
| ================================================================================= More...
|
|
void | clear () |
| ================================================================================= More...
|
|
void | fill_cells_info (std::vector< float > &cells_eta, std::vector< float > &cells_phi, std::vector< float > &cells_et, std::vector< int > &cells_sampling, std::vector< int > &cells_size, std::vector< double > &rings_sum, std::vector< int > &cells_id, std::vector< float > &cells_gain) |
| ================================================================================= More...
|
|
Definition at line 28 of file RingerReFex.h.
◆ RingSet()
RingerReFex::RingSet::RingSet |
( |
unsigned int |
maxRings, |
|
|
double |
deta, |
|
|
double |
dphi, |
|
|
const std::vector< int > & |
detectors, |
|
|
const std::vector< int > & |
samplings, |
|
|
const std::vector< int > & |
samples, |
|
|
bool |
doQuarter, |
|
|
bool |
doEtaAxesDivision, |
|
|
bool |
doPhiAxesDivision |
|
) |
| |
=================================================================================
Definition at line 384 of file RingerReFex.cxx.
403 if(doEtaAxesDivision && doPhiAxesDivision){
404 m_rings.resize( (maxRings-1)*4 + 1 );
406 m_rings.resize( (maxRings-1)*2 + 2 );
◆ ~RingSet()
RingerReFex::RingSet::~RingSet |
( |
| ) |
|
|
default |
◆ buildRings()
void RingerReFex::RingSet::buildRings |
( |
const double |
eta_hot, |
|
|
const double |
phi_hot, |
|
|
const CaloNoise * |
noiseCDO, |
|
|
const double |
m_noiseFactor, |
|
|
const bool |
m_doNoiseThrRings |
|
) |
| |
=================================================================================
Definition at line 460 of file RingerReFex.cxx.
463 const double cosh_eta = std::cosh(std::abs(eta_center));
470 for (std::vector<const CaloCell*>::const_iterator
it=
m_cells.begin();
it!=
m_cells.end(); ++
it) {
475 double phi_use = (*it)->phi();
488 i =
static_cast<unsigned int>( std::floor (deltaGreater) );
490 if ( (deltaGreater - (
double)
i) > 0.5) ++
i;
493 bool etaPositive = (
deltaEta > 0 )?
true:
false;
494 bool phiPositive = (
deltaPhi > 0)?
true:
false;
506 else if (etaPositive){
514 i = (etaPositive)?(
i * 2):((
i * 2) - 1);
517 i = (phiPositive)?(
i * 2):((
i * 2) - 1);
524 if (doNoiseThrRings){
525 float noiseSigma = noiseCDO->
getNoise((*it)->ID(),(*it)->gain());
526 if ( (*it)->energy() > noiseSigma*noiseFactor){
527 m_rings[
i] += (*it)->energy() / cosh_eta;
530 m_rings[
i] += (*it)->energy() / cosh_eta;
◆ clear()
void RingerReFex::RingSet::clear |
( |
| ) |
|
=================================================================================
Definition at line 453 of file RingerReFex.cxx.
◆ detectors()
const std::vector< std::pair< int, int > > RingerReFex::RingSet::detectors |
( |
| ) |
const |
=================================================================================
Definition at line 417 of file RingerReFex.cxx.
419 std::vector< std::pair<int,int> >
vec;
◆ fill_cells_info()
void RingerReFex::RingSet::fill_cells_info |
( |
std::vector< float > & |
cells_eta, |
|
|
std::vector< float > & |
cells_phi, |
|
|
std::vector< float > & |
cells_et, |
|
|
std::vector< int > & |
cells_sampling, |
|
|
std::vector< int > & |
cells_size, |
|
|
std::vector< double > & |
rings_sum, |
|
|
std::vector< int > & |
cells_id, |
|
|
std::vector< float > & |
cells_gain |
|
) |
| |
=================================================================================
Definition at line 307 of file RingerReFex.cxx.
308 for (std::vector<const CaloCell*>::const_iterator
it=
m_cells.begin();
it!=
m_cells.end(); ++
it) {
309 cells_eta.push_back((*it)->eta());
310 cells_phi.push_back((*it)->phi());
311 cells_et.push_back((*it)->energy());
312 auto sampling = (*it)->caloDDE()->getSampling();
313 cells_sampling.push_back((
int) sampling);
314 cells_id.push_back((*it)->ID().get_identifier32().get_compact());
315 cells_gain.push_back((*it)->gain());
317 cells_size.push_back(
m_cells.size());
320 rings_sum.push_back(
sum);
◆ isValid()
bool RingerReFex::RingSet::isValid |
( |
const CaloCell * |
cell | ) |
const |
=================================================================================
Definition at line 427 of file RingerReFex.cxx.
◆ push_back()
=================================================================================
Definition at line 447 of file RingerReFex.cxx.
◆ rings()
const std::vector< double > & RingerReFex::RingSet::rings |
( |
| ) |
const |
=================================================================================
Definition at line 440 of file RingerReFex.cxx.
◆ m_cells
◆ m_deltaEta
double RingerReFex::RingSet::m_deltaEta |
|
private |
◆ m_deltaPhi
double RingerReFex::RingSet::m_deltaPhi |
|
private |
◆ m_detectors
std::vector<int> RingerReFex::RingSet::m_detectors |
|
private |
◆ m_doEtaAxesDivision
bool RingerReFex::RingSet::m_doEtaAxesDivision |
|
private |
◆ m_doPhiAxesDivision
bool RingerReFex::RingSet::m_doPhiAxesDivision |
|
private |
◆ m_doQuarter
bool RingerReFex::RingSet::m_doQuarter |
|
private |
◆ m_rings
std::vector<double> RingerReFex::RingSet::m_rings |
|
private |
◆ m_samples
std::vector<int> RingerReFex::RingSet::m_samples |
|
private |
◆ m_samplings
std::vector<int> RingerReFex::RingSet::m_samplings |
|
private |
The documentation for this class was generated from the following files: