93 double delta1 = 1000.;
94 double deltacur = 1000.;
96 bool MATCHEDSC =
false;
98 Direction candDir(position.eta(), position.phi());
106 if (supercluster->
seed()->algo() == 0) {
108 if (deltacur < delta1) {
110 matchedsupercluster = supercluster;
122 int ebc_bcalgo = cluster->
algo();
123 double ebc_bce = cluster->
energy();
124 double ebc_bceta = cluster->
eta();
125 double ebc_bcet = ebc_bce *
sin(2 * atan(
exp(ebc_bceta)));
126 double newDelta = 0.;
128 if (ebc_bcet >
etMin_ && ebc_bcalgo == 0) {
132 bool inSuperCluster =
false;
137 for (; theEclust != matchedsupercluster->
clustersEnd(); ++theEclust) {
138 if ((**theEclust) == (*cluster))
139 inSuperCluster =
true;
const math::XYZPoint & position() const
cluster centroid position
void setVeto(const Veto &aVeto)
Set veto.
Sin< T >::type sin(const T &t)
Exp< T >::type exp(const T &t)
void addDeposit(double dr, double deposit)
Add deposit (ie. transverse energy or pT)
double eta() const
pseudorapidity of cluster centroid
AlgoId algo() const
algorithm identifier
void addCandEnergy(double et)
Set energy or pT attached to cand trajectory.
bool get(ProductID const &oid, Handle< PROD > &result) const
double energy() const
cluster energy
T const * get() const
Returns C++ pointer to the item.
XYZPointD XYZPoint
point in space with cartesian internal representation
static int position[264][3]
CaloCluster_iterator clustersBegin() const
fist iterator over BasicCluster constituents
const CaloClusterPtr & seed() const
seed BasicCluster
double phi() const
azimuthal angle of cluster centroid
CaloCluster_iterator clustersEnd() const
last iterator over BasicCluster constituents