Skip to content

Commit

Permalink
Fix: transparency wasnt propagating after config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mourtz committed Jan 30, 2019
1 parent d2f34e4 commit 9fdd5a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Fireworks/Calo/plugins/FWCaloClusterProxyBuilder.cc
Expand Up @@ -213,7 +213,6 @@ void FWCaloClusterProxyBuilder::build(const reco::CaloCluster &iData, unsigned i

if (!heatmap)
{
hex_boxset->SetPickable(true);
hex_boxset->CSCTakeAnyParentAsMaster();
hex_boxset->CSCApplyMainColorToMatchingChildren();
hex_boxset->CSCApplyMainTransparencyToMatchingChildren();
Expand All @@ -229,7 +228,6 @@ void FWCaloClusterProxyBuilder::build(const reco::CaloCluster &iData, unsigned i

if (!heatmap)
{
boxset->SetPickable(true);
boxset->CSCTakeAnyParentAsMaster();
boxset->CSCApplyMainColorToMatchingChildren();
boxset->CSCApplyMainTransparencyToMatchingChildren();
Expand Down
4 changes: 2 additions & 2 deletions Fireworks/Calo/plugins/FWHGCalMultiClusterProxyBuilder.cc
Expand Up @@ -153,11 +153,11 @@ FWHGCalMultiClusterProxyBuilder::build(const reco::HGCalMultiCluster &iData, uns

if (!heatmap)
{
hex_boxset->SetPickable(true);
hex_boxset->CSCTakeAnyParentAsMaster();
hex_boxset->CSCApplyMainColorToMatchingChildren();
hex_boxset->CSCApplyMainTransparencyToMatchingChildren();
hex_boxset->SetMainColor(item()->modelInfo(iIndex).displayProperties().color());
hex_boxset->SetMainTransparency(item()->defaultDisplayProperties().transparency());
}
oItemHolder.AddElement(hex_boxset);
}
Expand All @@ -168,11 +168,11 @@ FWHGCalMultiClusterProxyBuilder::build(const reco::HGCalMultiCluster &iData, uns

if (!heatmap)
{
boxset->SetPickable(true);
boxset->CSCTakeAnyParentAsMaster();
boxset->CSCApplyMainColorToMatchingChildren();
boxset->CSCApplyMainTransparencyToMatchingChildren();
boxset->SetMainColor(item()->modelInfo(iIndex).displayProperties().color());
boxset->SetMainTransparency(item()->defaultDisplayProperties().transparency());
}
oItemHolder.AddElement(boxset);
}
Expand Down
4 changes: 2 additions & 2 deletions Fireworks/SimData/plugins/FWCaloParticleProxyBuilder.cc
Expand Up @@ -166,11 +166,11 @@ void FWCaloParticleProxyBuilder::build(const CaloParticle &iData, unsigned int i

if (!heatmap)
{
hex_boxset->SetPickable(true);
hex_boxset->CSCTakeAnyParentAsMaster();
hex_boxset->CSCApplyMainColorToMatchingChildren();
hex_boxset->CSCApplyMainTransparencyToMatchingChildren();
hex_boxset->SetMainColor(item()->modelInfo(iIndex).displayProperties().color());
hex_boxset->SetMainTransparency(item()->defaultDisplayProperties().transparency());
}
oItemHolder.AddElement(hex_boxset);
}
Expand All @@ -181,11 +181,11 @@ void FWCaloParticleProxyBuilder::build(const CaloParticle &iData, unsigned int i

if (!heatmap)
{
boxset->SetPickable(true);
boxset->CSCTakeAnyParentAsMaster();
boxset->CSCApplyMainColorToMatchingChildren();
boxset->CSCApplyMainTransparencyToMatchingChildren();
boxset->SetMainColor(item()->modelInfo(iIndex).displayProperties().color());
boxset->SetMainTransparency(item()->defaultDisplayProperties().transparency());
}
oItemHolder.AddElement(boxset);
}
Expand Down

0 comments on commit 9fdd5a1

Please sign in to comment.