-
Notifications
You must be signed in to change notification settings - Fork 628
adding new task to CF/EbyE #4959
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
Conversation
Please consider the following formatting changes to AliceO2Group#4959
Please consider the following formatting changes to AliceO2Group#4959
| OutputObj<TH1D> h2D_Orbit_vs_CollIndex_0{TH1D("h2D_Orbit_vs_CollIndex_DF0", "h2D_Orbit_vs_CollIndex_DF0;collision index;orbit", 10001, -0.5, 10000.5)}; | ||
| OutputObj<TH1D> h2D_Orbit_vs_CollIndex_1{TH1D("h2D_Orbit_vs_CollIndex_DF1", "h2D_Orbit_vs_CollIndex_DF1;collision index;orbit", 10001, -0.5, 10000.5)}; | ||
| OutputObj<TH1D> h2D_Orbit_vs_CollIndex_2{TH1D("h2D_Orbit_vs_CollIndex_DF2", "h2D_Orbit_vs_CollIndex_DF2;collision index;orbit", 10001, -0.5, 10000.5)}; | ||
| OutputObj<TH1D> h2D_Orbit_vs_CollIndex_3{TH1D("h2D_Orbit_vs_CollIndex_DF3", "h2D_Orbit_vs_CollIndex_DF3;collision index;orbit", 10001, -0.5, 10000.5)}; | ||
| OutputObj<TH1D> h2D_Orbit_vs_CollIndex_4{TH1D("h2D_Orbit_vs_CollIndex_DF4", "h2D_Orbit_vs_CollIndex_DF4;collision index;orbit", 10001, -0.5, 10000.5)}; | ||
|
|
||
| OutputObj<TH1D> h2D_BC_vs_CollIndex_0{TH1D("h2D_BC_vs_CollIndex_DF0", "h2D_BC_vs_CollIndex_DF0;collision index;orbit", 10001, -0.5, 10000.5)}; | ||
| OutputObj<TH1D> h2D_BC_vs_CollIndex_1{TH1D("h2D_BC_vs_CollIndex_DF1", "h2D_BC_vs_CollIndex_DF1;collision index;orbit", 10001, -0.5, 10000.5)}; | ||
| OutputObj<TH1D> h2D_BC_vs_CollIndex_2{TH1D("h2D_BC_vs_CollIndex_DF2", "h2D_BC_vs_CollIndex_DF2;collision index;orbit", 10001, -0.5, 10000.5)}; | ||
| OutputObj<TH1D> h2D_BC_vs_CollIndex_3{TH1D("h2D_BC_vs_CollIndex_DF3", "h2D_BC_vs_CollIndex_DF3;collision index;orbit", 10001, -0.5, 10000.5)}; | ||
| OutputObj<TH1D> h2D_BC_vs_CollIndex_4{TH1D("h2D_BC_vs_CollIndex_DF4", "h2D_BC_vs_CollIndex_DF4;collision index;orbit", 10001, -0.5, 10000.5)}; |
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.
Any reason for not having them in one HistogramRegistry?
| // AxisSpec axisNcontrib{flagPbPb ? 8001 : 501, -0.5, flagPbPb ? 8000.5 : 500.5, "n vertex contributors"}; | ||
| // AxisSpec axisNtracks{flagPbPb ? 8001 : 501, -0.5, flagPbPb ? 8000.5 : 500.5, "n tracks"}; |
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.
Please, as an overall rule in O2, don't leave code commented
It is confusing if someone wants to learn on what you have done
I saw in some cases you comment a section of code apparently for preserving it either for your knowledge or to latter use. In gitHub, you know, there is a right place for doing that: gitHub gists, https://gist.github.com/altsybee
| // Defining filters for events (event selection) | ||
| // Processed events will be already fulfilling the event selection requirements | ||
| // Filter eventFilter = (o2::aod::evsel::sel8 == true); | ||
| // Filter posZFilter = (nabs(o2::aod::collision::posZ) < cutzvertex); | ||
|
|
||
| // Filter<aod::Tracks> ptFilter = aod::track::pt > 1; | ||
|
|
||
| // void process(aod::TracksIU const& tracks) | ||
| // void process(aod::Collision const& collision, aod::Tracks &tracks) { | ||
| // void process(aod::Collision const& collision, soa::Filtered<aod::Tracks> &tracks) { | ||
| // void process(aod::Collision const& collision, soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA> const& tracks) | ||
| // void process(aod::Collision const& collision, aod::fullTrack const& fullTrack) // one can use the abbreviation FullTrack, which is a predefined join of all three track tables | ||
| // A list of predefined joins is available in The Data Model section of these documentation pages). | ||
|
|
||
| // The grouping works with any number of children. In the below example the process function is given three arguments. In this case process is run for each collision with the tracks and V0s belonging to the actual collision. | ||
| // void process(aod::Collision const& collision, aod::Tracks const& tracks, aod::V0s const& v0s) |
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.
Commenting code (what the code does) is correct but leaving code commented is against our rules
victor-gonzalez
left a comment
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 approve it for the time being but for the next iteration please consider my comments, specially the one referring to remove all commented code
A new task to CF/EbyE - "RobustFluctuationObservables" (so far, with QA plots)