Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
alja committed Jul 27, 2021
1 parent 261c15d commit 842f1fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 1 addition & 4 deletions Fireworks/Calo/plugins/FWJetProxyBuilder.cc
Expand Up @@ -134,7 +134,6 @@ void FWJetProxyBuilder::buildViewType(const reco::Jet& iData,
if (FWViewType::isProjected(type)) {
fireworks::jetScaleMarker markers(new TEveScalableStraightLineSet("jetline"), iData.et(), iData.energy(), vc);


float size = 1.f; // values are saved in scale
double theta = iData.theta();
double phi = iData.phi();
Expand Down Expand Up @@ -189,9 +188,7 @@ void FWJetProxyBuilder::localModelChanges(const FWModelId& iId,
increaseComponentTransparency(iId.index(), iCompound, "TEveJetCone", 80);
}

void FWJetProxyBuilder::cleanLocal() {
m_common->DestroyElements();
}
void FWJetProxyBuilder::cleanLocal() { m_common->DestroyElements(); }

void FWJetProxyBuilder::scaleProduct(TEveElementList* product, FWViewType::EType viewType, const FWViewContext* vc) {
// move jets to eventCenter
Expand Down
8 changes: 5 additions & 3 deletions Fireworks/Calo/src/FWTauProxyBuilderBase.cc
Expand Up @@ -151,11 +151,13 @@ void FWTauProxyBuilderBase::localModelChanges(const FWModelId& iId,
increaseComponentTransparency(iId.index(), iCompound, "TEveJetCone", 80);
}

void FWTauProxyBuilderBase::scaleProduct(TEveElementList* product, FWViewType::EType viewType, const FWViewContext* vc) {
void FWTauProxyBuilderBase::scaleProduct(TEveElementList* product,
FWViewType::EType viewType,
const FWViewContext* vc) {
int idx = 0;
for (auto& c : product->RefChildren()) {
// check the compound has more than one element (the first one is jet)
for (auto& compChld : c->RefChildren()){
for (auto& compChld : c->RefChildren()) {
TEveScalableStraightLineSet* lineSet = dynamic_cast<TEveScalableStraightLineSet*>(compChld);
if (lineSet) {
// compund index in the product is an index of model data in the collection
Expand All @@ -172,4 +174,4 @@ void FWTauProxyBuilderBase::scaleProduct(TEveElementList* product, FWViewType::E
}
}

void FWTauProxyBuilderBase::cleanLocal() { }
void FWTauProxyBuilderBase::cleanLocal() {}

0 comments on commit 842f1fa

Please sign in to comment.