16 for (
int eastNr = -2; eastNr <= 2; ++eastNr ) {
17 for (
int northNr = -2; northNr <= 2; ++northNr ) {
21 if (recHits !=
nullptr) {
22 auto recHitIt = recHits->
find(
id);
23 if(recHitIt!=recHits->
end() &&
24 recHitIt->checkFlags(flags)){
35 if(!recHits || superClus.
seed()->seed().subdetId()!=
EcalBarrel)
return false;
36 for(
const auto & clus : superClus.
clusters()){
37 for(
const auto&
hit : clus->hitsAndFractions()){
38 auto recHitIt = recHits->
find(
hit.first);
39 if(recHitIt!=recHits->
end() &&
56 if(!recHits)
return false;
57 for(
auto hit : *recHits){
66 std::vector<DetId> gsDetIds;
69 for (
int eastNr = -2; eastNr <= 2; ++eastNr ) {
70 for (
int northNr = -2; northNr <= 2; ++northNr ) {
74 auto recHitIt = recHits->
find(
id);
75 if(recHitIt!=recHits->
end() &&
77 gsDetIds.push_back(
id);
90 for(
auto&
id : gainSwitchedHitIds){
91 auto oldRecHitIt = oldRecHits->
find(
id);
92 if(oldRecHitIt!=oldRecHits->
end()) oldEnergy+=oldRecHitIt->energy();
93 auto newRecHitIt = newRecHits->
find(
id);
94 if(newRecHitIt!=newRecHits->
end()) newEnergy+=newRecHitIt->energy();
97 float newRawEnergy = superClus.
rawEnergy() - oldEnergy + newEnergy;
124 int retVal = lhs - rhs;
126 if(retVal<0) retVal++;
134 int retVal = lhs-rhs;
135 while(retVal>180) retVal-=360;
136 while(retVal<-180) retVal+=360;
CaloTopology const * topology(0)
float hcalDepth2OverEcalBc
std::vector< Variable::Flags > flags
const CaloClusterPtrVector & clusters() const
const access to the cluster list itself
T offsetBy(int deltaX, int deltaY) const
Free movement of arbitray steps.
const_iterator end() const
void home() const
move the navigator back to the starting point
double rawEnergy() const
raw uncorrected energy (sum of energies of component BasicClusters)
float hcalDepth1OverEcalBc
const CaloSubdetectorTopology * getSubdetectorTopology(const DetId &id) const
access the subdetector Topology for the given subdetector directly
float hcalDepth2OverEcalBc
float hcalDepth1OverEcalBc
iterator find(key_type k)
const CaloClusterPtr & seed() const
seed BasicCluster