-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding new GCP trends tool and commenting unnecessary print out in Trend #40336
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40336/33423
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40336/33424
|
A new Pull Request was created by @perezdanyer for master. It involves the following packages:
@malbouis, @yuanchao, @cmsbuild, @saumyaphor4252, @francescobrivio, @ChrisMisan, @tvami can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild , please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9180bd/29645/summary.html Comparison SummarySummary:
|
#include <boost/property_tree/ptree.hpp> | ||
#include <boost/property_tree/json_parser.hpp> | ||
|
||
#include "TROOT.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this #include
needed?
assert(lumifile.good()); | ||
const Run2Lumi lumi_per_run(lumibyrunfile, firstrun, lastrun, 1000); | ||
|
||
std::map<TString, Int_t> comparison_map; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think C++ native types are generally preferred to ROOT types, but perhaps it's not mandatory here, as this is essentially a plotting macro.
|
||
// wheels/layers per tracker phase: <pahse,<sublevel,number of layers/wheels>> | ||
const std::map<Int_t, std::map<Int_t, Int_t>> Phase_Subdetector_Layers_Map = { | ||
{0, {{1, 3}, {2, 2}}}, {1, {{1, 4}, {2, 3}}}, {2, {{1, 4}, {2, 10}}}}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took the numbers from this table on the relevant package on CMSSW, maybe that is outdated then?
Indeed, it looks like it was not updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway you don't have to trust me, construct a TrackerGeometry
object and see it for yourself ;)
For reference, here's the output of this test in the same package you pointed out:
cmssw/Geometry/TrackerGeometryBuilder/test/BuildFile.xml
Lines 37 to 41 in c628e55
<library file="PixelTopologyMapTest.cc" name="PixelTopologyMapTest"> | |
<use name="DataFormats/TrackerCommon"/> | |
<use name="Geometry/Records"/> | |
<flags EDM_PLUGIN="1"/> | |
</library> |
|
||
Int_t sublevel_idx = *sublevel.Get(); | ||
|
||
Histos[sublevel_idx][0]->Fill(*dx.Get() * 10000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could the 10000
repeated here and elsewhere be a named constants (I guess it's a cm -> µm conversion factor)
Double_t sigma = Histos[level.first][variable.first]->GetStdDev(); | ||
|
||
Graphs[level.first][variable.first][0]->AddPoint(run_number, mean); | ||
if (fabs(mean) > Graphs[level.first][variable.first][0]->GetMaximum() && fabs(mean) > 0.) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::abs
is preferred to fabs
@@ -22,10 +22,10 @@ namespace pt = boost::property_tree; | |||
|
|||
Run2Lumi::Run2Lumi(fs::path file, int first, int last, float convertUnit) | |||
: firstRun(first), lastRun(last), convertUnit(convertUnit) { | |||
cout << __func__ << endl; | |||
//cout << __func__ << endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leaving a lot of commented code is not a good option. Either remove or add a verbose
flag in order to activate the cout
s (by the way it's technically not thread-safe and in general MessageLogger
is adivsed).
@perezdanyer what is the status of this PR? |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40336/33751
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40336/33783
|
Pull request #40336 was updated. @malbouis, @yuanchao, @cmsbuild, @saumyaphor4252, @francescobrivio, @ChrisMisan, @tvami can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9180bd/30046/summary.html Comparison SummaryThere are some workflows for which there are errors in the baseline: Summary:
|
+alca |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
The aim of this PR is to add a new tool to be used by the Tracker Alignment (TrkAl) team when deriving performance trends over data-taking periods. The tool adds the capability of performing now trends of position estimators when doing tracker geometry comparisons, which integrates to the already existing trend tools for the other internal validation procedures performed in TrkAl.
The changes consist in the following:
PR validation:
Tests of the tool have been performed by both the author and another member of the TrkAl team.
@consuegs , @connorpa , @henriettepetersen, @antoniovagnerini, @mmusich