#include <CosmicClusterAlgo.h>
Public Types | |
enum | EcalPart { barrel = 0, endcap = 1 } |
typedef math::XYZPoint | Point |
point in the space More... | |
enum | VerbosityLevel { pDEBUG = 0, pWARNING = 1, pINFO = 2, pERROR = 3 } |
Public Member Functions | |
CosmicClusterAlgo () | |
CosmicClusterAlgo (double ebst, double ebSt, double ebDt, double ebSp, double ecst, double ecSt, double ecDt, double ecSp, const PositionCalc &posCalc, VerbosityLevel the_verbosity=pERROR) | |
std::vector< reco::BasicCluster > | makeClusters (const EcalRecHitCollection *hits, const EcalUncalibratedRecHitCollection *uncalibhits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology_p, const CaloSubdetectorGeometry *geometryES_p, EcalPart ecalPart, bool regional=false, const std::vector< RectangularEtaPhiRegion > ®ions=std::vector< RectangularEtaPhiRegion >()) |
void | setVerbosity (VerbosityLevel the_verbosity) |
virtual | ~CosmicClusterAlgo () |
Private Member Functions | |
void | addCrystal (const DetId &det, const bool in9) |
bool | checkMaxima (CaloNavigator< DetId > &navigator) |
void | mainSearch (const CaloSubdetectorGeometry *geometry_p, const CaloSubdetectorTopology *topology_p, const CaloSubdetectorGeometry *geometryES_p, EcalPart ecalPart) |
void | makeCluster (const CaloSubdetectorGeometry *geometry_p, const CaloSubdetectorGeometry *geometryES_p, DetId seedId) |
void | prepareCluster (CaloNavigator< DetId > &navigator, const CaloSubdetectorGeometry *geometry) |
Private Attributes | |
std::set< DetId > | canSeed_s |
std::vector< reco::BasicCluster > | clusters_v |
std::vector< DetId > | current_v25 |
std::vector< std::pair< DetId, float > > | current_v25Sup |
std::vector< DetId > | current_v9 |
double | ecalBarrelSecondThreshold |
double | ecalBarrelSeedThreshold |
double | ecalBarrelSingleThreshold |
double | ecalBarrelSupThreshold |
double | ecalEndcapSecondThreshold |
double | ecalEndcapSeedThreshold |
double | ecalEndcapSingleThreshold |
double | ecalEndcapSupThreshold |
bool | inEB |
PositionCalc | posCalculator_ |
const EcalRecHitCollection * | recHits_ |
std::vector< EcalRecHit > | seeds |
const EcalUncalibratedRecHitCollection * | uncalibRecHits_ |
std::set< DetId > | used_s |
VerbosityLevel | verbosity |
Definition at line 27 of file CosmicClusterAlgo.h.
point in the space
Definition at line 62 of file CosmicClusterAlgo.h.
Enumerator | |
---|---|
barrel | |
endcap |
Definition at line 31 of file CosmicClusterAlgo.h.
Enumerator | |
---|---|
pDEBUG | |
pWARNING | |
pINFO | |
pERROR |
Definition at line 32 of file CosmicClusterAlgo.h.
|
inline |
Definition at line 34 of file CosmicClusterAlgo.h.
|
inline |
Definition at line 37 of file CosmicClusterAlgo.h.
References posCalculator_.
|
inlinevirtual |
Definition at line 42 of file CosmicClusterAlgo.h.
|
private |
Definition at line 400 of file CosmicClusterAlgo.cc.
References current_v25, current_v9, edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), recHits_, uncalibRecHits_, and used_s.
Referenced by prepareCluster().
|
private |
Definition at line 302 of file CosmicClusterAlgo.cc.
References CaloNavigator< T, TOPO >::east(), edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), CaloNavigator< T, TOPO >::home(), mps_fire::i, CaloNavigator< T, TOPO >::north(), CaloNavigator< T, TOPO >::pos(), recHits_, CaloNavigator< T, TOPO >::south(), and CaloNavigator< T, TOPO >::west().
Referenced by mainSearch().
|
private |
Definition at line 150 of file CosmicClusterAlgo.cc.
References canSeed_s, checkMaxima(), gather_cfg::cout, current_v25, current_v25Sup, current_v9, makeCluster(), particleFlowRecHitECAL_cfi::navigator, pINFO, prepareCluster(), seeds, used_s, and verbosity.
Referenced by makeClusters().
|
private |
Definition at line 220 of file CosmicClusterAlgo.cc.
References EcalUncalibratedRecHit::amplitude(), PositionCalc::Calculate_Location(), clusters_v, gather_cfg::cout, current_v25, current_v25Sup, current_v9, ecalBarrelSecondThreshold, ecalBarrelSingleThreshold, ecalBarrelSupThreshold, ecalEndcapSecondThreshold, ecalEndcapSingleThreshold, ecalEndcapSupThreshold, edm::SortedCollection< T, SORT >::end(), randomXiThetaGunProducer_cfi::energy, EcalRecHit::energy(), edm::SortedCollection< T, SORT >::find(), EcalUncalibratedRecHit::id(), EcalRecHit::id(), inEB, EcalRecHit::kGood, EcalRecHit::kOutOfTime, EcalRecHit::kPoorCalib, reco::CaloCluster::multi5x5, pINFO, posCalculator_, position, recHits_, std::swap(), uncalibRecHits_, and verbosity.
Referenced by mainSearch().
std::vector< reco::BasicCluster > CosmicClusterAlgo::makeClusters | ( | const EcalRecHitCollection * | hits, |
const EcalUncalibratedRecHitCollection * | uncalibhits, | ||
const CaloSubdetectorGeometry * | geometry, | ||
const CaloSubdetectorTopology * | topology_p, | ||
const CaloSubdetectorGeometry * | geometryES_p, | ||
EcalPart | ecalPart, | ||
bool | regional = false , |
||
const std::vector< RectangularEtaPhiRegion > & | regions = std::vector<RectangularEtaPhiRegion>() |
||
) |
Definition at line 17 of file CosmicClusterAlgo.cc.
References EcalUncalibratedRecHit::amplitude(), barrel, edm::SortedCollection< T, SORT >::begin(), canSeed_s, clusters_v, gather_cfg::cout, ecalBarrelSeedThreshold, ecalEndcapSeedThreshold, edm::SortedCollection< T, SORT >::end(), endcap, edm::SortedCollection< T, SORT >::find(), CaloSubdetectorGeometry::getGeometry(), hfClusterShapes_cfi::hits, inEB, isClusterEtLess(), EcalRecHit::kGood, EcalRecHit::kOutOfTime, EcalRecHit::kPoorCalib, mainSearch(), pINFO, recHits_, seeds, AlCaHLTBitMon_QueryRunRegistry::string, electronIdCutBased_cfi::threshold, uncalibRecHits_, used_s, verbosity, x, and y.
Referenced by CosmicClusterProducer::clusterizeECALPart(), and setVerbosity().
|
private |
Definition at line 339 of file CosmicClusterAlgo.cc.
References funct::abs(), addCrystal(), canSeed_s, PVValHelper::dx, PVValHelper::dy, CaloNavigator< T, TOPO >::home(), and CaloNavigator< T, TOPO >::offsetBy().
Referenced by mainSearch().
|
inline |
Definition at line 46 of file CosmicClusterAlgo.h.
References hfClusterShapes_cfi::hits, makeClusters(), and verbosity.
|
private |
Definition at line 91 of file CosmicClusterAlgo.h.
Referenced by mainSearch(), makeClusters(), and prepareCluster().
|
private |
Definition at line 103 of file CosmicClusterAlgo.h.
Referenced by makeCluster(), and makeClusters().
|
private |
Definition at line 99 of file CosmicClusterAlgo.h.
Referenced by addCrystal(), mainSearch(), and makeCluster().
|
private |
Definition at line 100 of file CosmicClusterAlgo.h.
Referenced by mainSearch(), and makeCluster().
|
private |
Definition at line 98 of file CosmicClusterAlgo.h.
Referenced by addCrystal(), mainSearch(), and makeCluster().
|
private |
Definition at line 73 of file CosmicClusterAlgo.h.
Referenced by makeCluster().
|
private |
Definition at line 71 of file CosmicClusterAlgo.h.
Referenced by makeClusters().
|
private |
Definition at line 72 of file CosmicClusterAlgo.h.
Referenced by makeCluster().
|
private |
Definition at line 74 of file CosmicClusterAlgo.h.
Referenced by makeCluster().
|
private |
Definition at line 78 of file CosmicClusterAlgo.h.
Referenced by makeCluster().
|
private |
Definition at line 76 of file CosmicClusterAlgo.h.
Referenced by makeClusters().
|
private |
Definition at line 77 of file CosmicClusterAlgo.h.
Referenced by makeCluster().
|
private |
Definition at line 79 of file CosmicClusterAlgo.h.
Referenced by makeCluster().
|
private |
Definition at line 95 of file CosmicClusterAlgo.h.
Referenced by makeCluster(), and makeClusters().
|
private |
Definition at line 67 of file CosmicClusterAlgo.h.
Referenced by CosmicClusterAlgo(), and makeCluster().
|
private |
Definition at line 82 of file CosmicClusterAlgo.h.
Referenced by addCrystal(), checkMaxima(), makeCluster(), and makeClusters().
|
private |
Definition at line 87 of file CosmicClusterAlgo.h.
Referenced by mainSearch(), and makeClusters().
|
private |
Definition at line 84 of file CosmicClusterAlgo.h.
Referenced by addCrystal(), makeCluster(), and makeClusters().
|
private |
Definition at line 90 of file CosmicClusterAlgo.h.
Referenced by addCrystal(), mainSearch(), and makeClusters().
|
private |
Definition at line 106 of file CosmicClusterAlgo.h.
Referenced by mainSearch(), makeCluster(), makeClusters(), and setVerbosity().