Skip to content

Commit

Permalink
Merge pull request #18680 from Sam-Harper/EgPMSeedEta91X
Browse files Browse the repository at this point in the history
supercluster eta -> seed eta for e/g pixel matching: 91X
  • Loading branch information
cmsbuild committed May 16, 2017
2 parents a0ede53 + 4a4330b commit b2b0614
Showing 1 changed file with 10 additions and 2 deletions.
Expand Up @@ -7,7 +7,7 @@
//
//
// The module produces the ElectronSeeds, similarly to ElectronSeedProducer
// although
// although with a varible number of required hits
//
//
// Author : Sam Harper (RAL), 2017
Expand Down Expand Up @@ -146,8 +146,16 @@ void ElectronNHitSeedProducer::produce(edm::Event& iEvent, const edm::EventSetup
for(const auto& superClustersToken : superClustersTokens_){
auto superClustersHandle = getHandle(iEvent,superClustersToken);
for(auto& superClusRef : *superClustersHandle){

//the eta of the supercluster when mustache clustered is slightly biased due to bending in magnetic field
//the eta of its seed cluster is a better estimate of the orginal position
GlobalPoint caloPosition(GlobalPoint::Polar(superClusRef->seed()->position().theta(), //seed theta
superClusRef->position().phi(), //supercluster phi
superClusRef->position().r())); //supercluster r


const std::vector<TrajSeedMatcher::SeedWithInfo> matchedSeeds =
matcher_.compatibleSeeds(*initialSeedsHandle,convertToGP(superClusRef->position()),
matcher_.compatibleSeeds(*initialSeedsHandle,caloPosition,
primVtxPos,superClusRef->energy());

for(auto& matchedSeed : matchedSeeds){
Expand Down

0 comments on commit b2b0614

Please sign in to comment.