#include <DataFormats/EgammaReco/interface/PreshowerCluster.h>
Public Types | |
typedef math::XYZPoint | Point |
Public Member Functions | |
BasicClusterRef | basicCluster () const |
Associated basic cluster;. | |
double | et () const |
std::vector< DetId > | getHitsByDetId () const |
DetIds of component RecHits. | |
int | nhits () const |
Number of RecHits the cluster. | |
bool | operator< (const PreshowerCluster &) const |
bool | operator== (const PreshowerCluster &) const |
Comparisons. | |
int | plane () const |
Preshower plane. | |
PreshowerCluster (const PreshowerCluster &) | |
Constructor from cluster. | |
PreshowerCluster (const double E, const Point &pos, const std::vector< DetId > usedHits, const int plane) | |
Constructor from EcalRecHits. | |
PreshowerCluster () | |
default constructor | |
void | setBCRef (const BasicClusterRef &r) |
virtual | ~PreshowerCluster () |
Private Attributes | |
BasicClusterRef | bc_ref_ |
Associated basic cluster;. | |
int | plane_ |
std::vector< DetId > | usedHits_ |
used hits by detId |
Definition at line 18 of file PreshowerCluster.h.
Definition at line 21 of file PreshowerCluster.h.
reco::PreshowerCluster::PreshowerCluster | ( | ) | [inline] |
default constructor
Definition at line 24 of file PreshowerCluster.h.
00024 : CaloCluster(0., Point(0.,0.,0.)) { };
PreshowerCluster::~PreshowerCluster | ( | ) | [virtual] |
PreshowerCluster::PreshowerCluster | ( | const double | E, | |
const Point & | pos, | |||
const std::vector< DetId > | usedHits, | |||
const int | plane | |||
) |
Constructor from EcalRecHits.
Definition at line 11 of file PreshowerCluster.cc.
References plane_, and usedHits_.
00013 : CaloCluster(E, pos) 00014 { 00015 usedHits_ = usedHits; 00016 plane_ = plane; 00017 00018 // std::cout << " PreshowerCluster::PreshowerCluster, E = " << energy() << std::endl; 00019 // std::cout << " PreshowerCluster::PreshowerCluster, POS = " << "(" << x() <<","<< y() <<","<< z() <<")"<< std::endl; 00020 // std::cout << " PreshowerCluster::PreshowerCluster, ETA = " << eta() << std::endl; 00021 00022 }
PreshowerCluster::PreshowerCluster | ( | const PreshowerCluster & | b | ) |
BasicClusterRef reco::PreshowerCluster::basicCluster | ( | ) | const [inline] |
Associated basic cluster;.
Definition at line 49 of file PreshowerCluster.h.
References bc_ref_.
00049 {return bc_ref_;}
double reco::PreshowerCluster::et | ( | ) | const [inline] |
Definition at line 42 of file PreshowerCluster.h.
References reco::CaloCluster::energy(), and reco::CaloCluster::eta().
std::vector<DetId> reco::PreshowerCluster::getHitsByDetId | ( | ) | const [inline] |
DetIds of component RecHits.
Definition at line 52 of file PreshowerCluster.h.
References usedHits_.
00052 { return usedHits_; }
int reco::PreshowerCluster::nhits | ( | ) | const [inline] |
Number of RecHits the cluster.
Definition at line 37 of file PreshowerCluster.h.
References usedHits_.
Referenced by PreshowerClusterAlgo::makeOneCluster().
00037 {return usedHits_.size();}
bool PreshowerCluster::operator< | ( | const PreshowerCluster & | b | ) | const |
Definition at line 43 of file PreshowerCluster.cc.
References reco::CaloCluster::energy(), reco::CaloCluster::position(), funct::sin(), and theta.
00043 { 00044 return energy()*sin(position().theta()) < b.energy()*sin(position().theta()) ? true : false; 00045 }
bool PreshowerCluster::operator== | ( | const PreshowerCluster & | b | ) | const |
Comparisons.
Definition at line 35 of file PreshowerCluster.cc.
References EPS, reco::CaloCluster::phi(), and reco::CaloCluster::position().
00035 { 00036 double EPS = 0.000001; 00037 float Tdiff = fabs(b.position().theta() - position().theta()); 00038 float Pdiff = fabs(b.phi() - phi()); 00039 if ( (Tdiff < EPS) && (Pdiff < EPS) ) return true; 00040 else return false; 00041 }
int reco::PreshowerCluster::plane | ( | ) | const [inline] |
Preshower plane.
Definition at line 40 of file PreshowerCluster.h.
References plane_.
00040 { return plane_; }
void reco::PreshowerCluster::setBCRef | ( | const BasicClusterRef & | r | ) | [inline] |
Definition at line 54 of file PreshowerCluster.h.
References bc_ref_.
Referenced by PreshowerClusterProducer::produce().
Associated basic cluster;.
Definition at line 61 of file PreshowerCluster.h.
Referenced by basicCluster(), PreshowerCluster(), and setBCRef().
int reco::PreshowerCluster::plane_ [private] |
std::vector<DetId> reco::PreshowerCluster::usedHits_ [private] |
used hits by detId
Definition at line 64 of file PreshowerCluster.h.
Referenced by getHitsByDetId(), nhits(), and PreshowerCluster().