Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/include/DDMarlinCED.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class DDMarlinCED {

// FIXME: Not so elegant, refine! Use iterators, templates etc. See drawHitCollectionsByType(...).
// helper method to draw hit collections by MC Contribution
static void drawHitCollectionsByMCContribution(LCEvent* event, MCParticle* MCP, int marker, int size,
static void drawHitCollectionsByMCContribution(LCEvent* event, MCParticle* mcp, int marker, int size,
unsigned int color, unsigned int layer=0) {

std::vector< std::string >::const_iterator iter;
Expand All @@ -315,11 +315,11 @@ class DDMarlinCED {

SimTrackerHit* hit = dynamic_cast<SimTrackerHit*>(col->getElementAt(i));

if (hit->getMCParticle() == MCP) {
if (hit->getMCParticle() == mcp) {
double x = hit->getPosition()[0];
double y = hit->getPosition()[1];
double z = hit->getPosition()[2];
ced_hit_ID(x,y,z,marker, layer,size,color, MCP->id());
ced_hit_ID(x,y,z,marker, layer,size,color, mcp->id());


}
Expand All @@ -338,7 +338,7 @@ class DDMarlinCED {

bool found = false;
for (int j = 0; j < nMC; ++j) {
if (hit->getParticleCont(j) == MCP) {
if (hit->getParticleCont(j) == mcp) {
found = true;
break;
}
Expand All @@ -348,7 +348,7 @@ class DDMarlinCED {
double x = hit->getPosition()[0];
double y = hit->getPosition()[1];
double z = hit->getPosition()[2];
ced_hit_ID(x,y,z,marker,layer,size,color, MCP->id());
ced_hit_ID(x,y,z,marker,layer,size,color, mcp->id());
}
}
}
Expand Down
Loading