#include <PreshowerCluster.h>
Public Types | |
typedef math::XYZPoint | Point |
Public Types inherited from reco::CaloCluster | |
enum | AlgoId { island = 0, hybrid = 1, fixedMatrix = 2, dynamicHybrid = 3, multi5x5 = 4, particleFlow = 5, hgcal_em = 6, hgcal_had = 7, hgcal_mixed = 8, undefined = 1000 } |
typedef AlgoId | AlgoID |
enum | SCFlags { cleanOnly = 0, common = 100, uncleanOnly = 200 } |
Public Member Functions | |
CaloClusterPtr | basicCluster () const |
Associated basic cluster;. More... | |
double | et () const |
int | nhits () const |
Number of RecHits the cluster. More... | |
bool | operator< (const PreshowerCluster &) const |
bool | operator== (const PreshowerCluster &) const |
Comparisons. More... | |
int | plane () const |
Preshower plane. More... | |
PreshowerCluster () | |
default constructor More... | |
PreshowerCluster (const double E, const Point &pos, const std::vector< std::pair< DetId, float > > &usedHits, const int plane) | |
Constructor from EcalRecHits. More... | |
PreshowerCluster (const PreshowerCluster &) | |
Constructor from cluster. More... | |
void | setBCRef (const CaloClusterPtr &r) |
DetIds of component RecHits – now inherited from CaloCluster. More... | |
~PreshowerCluster () override | |
Public Member Functions inherited from reco::CaloCluster | |
void | addHitAndFraction (DetId id, float fraction) |
AlgoId | algo () const |
algorithm identifier More... | |
AlgoID | algoID () const |
CaloCluster () | |
default constructor. Sets energy and position to zero More... | |
CaloCluster (AlgoID algoID) | |
constructor with algoId, to be used in all child classes More... | |
CaloCluster (double energy, const math::XYZPoint &position, const CaloID &caloID) | |
CaloCluster (double energy, const math::XYZPoint &position) | |
constructor from values More... | |
CaloCluster (double energy, const math::XYZPoint &position, const CaloID &caloID, const AlgoID &algoID, uint32_t flags=0) | |
CaloCluster (double energy, const math::XYZPoint &position, const CaloID &caloID, const std::vector< std::pair< DetId, float > > &usedHitsAndFractions, const AlgoId algoId, const DetId seedId=DetId(0), uint32_t flags=0) | |
CaloCluster (double energy, const math::XYZPoint &position, float chi2, const std::vector< DetId > &usedHits, const AlgoId algoId, uint32_t flags=0) | |
temporary compatibility constructor More... | |
const CaloID & | caloID () const |
double | correctedEnergy () const |
float | correctedEnergyUncertainty () const |
double | energy () const |
cluster energy More... | |
double | eta () const |
pseudorapidity of cluster centroid More... | |
uint32_t | flags () const |
const std::vector< std::pair< DetId, float > > & | hitsAndFractions () const |
bool | isInClean () const |
bool | isInUnclean () const |
bool | operator< (const CaloCluster &rhs) const |
comparison < operator More... | |
bool | operator<= (const CaloCluster &rhs) const |
comparison <= operator More... | |
bool | operator== (const CaloCluster &rhs) const |
comparison == operator More... | |
bool | operator> (const CaloCluster &rhs) const |
comparison > operator More... | |
bool | operator>= (const CaloCluster &rhs) const |
comparison >= operator More... | |
double | phi () const |
azimuthal angle of cluster centroid More... | |
const math::XYZPoint & | position () const |
cluster centroid position More... | |
std::string | printHitAndFraction (unsigned i) const |
print hitAndFraction More... | |
void | reset () |
resets the CaloCluster (position, energy, hitsAndFractions) More... | |
DetId | seed () const |
return DetId of seed More... | |
void | setAlgoId (const AlgoId &id) |
void | setCaloId (const CaloID &id) |
void | setCorrectedEnergy (double cenergy) |
void | setCorrectedEnergyUncertainty (float energyerr) |
void | setEnergy (double energy) |
void | setFlags (uint32_t flags) |
void | setPosition (const math::XYZPoint &p) |
void | setSeed (const DetId &id) |
size_t | size () const |
size in number of hits (e.g. in crystals for ECAL) More... | |
double | x () const |
x coordinate of cluster centroid More... | |
double | y () const |
y coordinate of cluster centroid More... | |
double | z () const |
z coordinate of cluster centroid More... | |
virtual | ~CaloCluster () |
destructor More... | |
Private Attributes | |
CaloClusterPtr | bc_ref_ |
Associated basic cluster;. More... | |
int | plane_ |
Additional Inherited Members | |
Protected Attributes inherited from reco::CaloCluster | |
AlgoID | algoID_ |
CaloID | caloID_ |
bitmask for detector information More... | |
double | correctedEnergy_ |
float | correctedEnergyUncertainty_ |
double | energy_ |
cluster energy More... | |
uint32_t | flags_ |
std::vector< std::pair< DetId, float > > | hitsAndFractions_ |
math::XYZPoint | position_ |
cluster centroid position More... | |
DetId | seedId_ |
DetId of seed. More... | |
Static Protected Attributes inherited from reco::CaloCluster | |
static const uint32_t | flagsMask_ =0x0FFFFFFF |
static const uint32_t | flagsOffset_ =28 |
Definition at line 16 of file PreshowerCluster.h.
Definition at line 19 of file PreshowerCluster.h.
|
inline |
default constructor
Definition at line 22 of file PreshowerCluster.h.
References plane(), and ~PreshowerCluster().
|
override |
PreshowerCluster::PreshowerCluster | ( | const double | E, |
const Point & | pos, | ||
const std::vector< std::pair< DetId, float > > & | usedHits, | ||
const int | plane | ||
) |
Constructor from EcalRecHits.
Definition at line 10 of file PreshowerCluster.cc.
References reco::CaloCluster::hitsAndFractions(), reco::CaloCluster::hitsAndFractions_, plane(), and plane_.
PreshowerCluster::PreshowerCluster | ( | const PreshowerCluster & | b | ) |
Constructor from cluster.
Definition at line 24 of file PreshowerCluster.cc.
References bc_ref_, reco::CaloCluster::hitsAndFractions_, and plane_.
|
inline |
Associated basic cluster;.
Definition at line 47 of file PreshowerCluster.h.
References bc_ref_.
|
inline |
Definition at line 40 of file PreshowerCluster.h.
References reco::CaloCluster::energy(), reco::CaloCluster::eta(), operator<(), and operator==().
|
inline |
Number of RecHits the cluster.
Definition at line 35 of file PreshowerCluster.h.
References reco::CaloCluster::hitsAndFractions_.
Referenced by PreshowerClusterAlgo::makeOneCluster().
bool PreshowerCluster::operator< | ( | const PreshowerCluster & | b | ) | const |
Definition at line 42 of file PreshowerCluster.cc.
References reco::CaloCluster::energy(), reco::CaloCluster::position(), funct::sin(), and theta().
Referenced by et().
bool PreshowerCluster::operator== | ( | const PreshowerCluster & | b | ) | const |
Comparisons.
Definition at line 34 of file PreshowerCluster.cc.
References EPS, reco::CaloCluster::phi(), and reco::CaloCluster::position().
Referenced by et().
|
inline |
Preshower plane.
Definition at line 38 of file PreshowerCluster.h.
References plane_.
Referenced by PreshowerCluster().
|
inline |
DetIds of component RecHits – now inherited from CaloCluster.
Definition at line 52 of file PreshowerCluster.h.
References bc_ref_, and alignCSCRings::r.
Referenced by PreshowerPhiClusterProducer::produce(), and PreshowerClusterProducer::produce().
|
private |
Associated basic cluster;.
Definition at line 59 of file PreshowerCluster.h.
Referenced by basicCluster(), PreshowerCluster(), and setBCRef().
|
private |
Definition at line 56 of file PreshowerCluster.h.
Referenced by plane(), and PreshowerCluster().