Skip to content
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

Please consider the following formatting changes to #8817 #13

Merged
merged 1 commit into from
Dec 4, 2024
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
26 changes: 13 additions & 13 deletions PWGLF/Tasks/Strangeness/cascadecorrelations.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ struct cascadeSelector {
{
ccdb->setURL(ccdburl);
ccdb->setCaching(true);

auto h = registry.add<TH1>("hSelectionStatus", "hSelectionStatus", HistType::kTH1I, {{10, 0, 10, "status"}});
h->GetXaxis()->SetBinLabel(1, "All");
h->GetXaxis()->SetBinLabel(2, "nTPC OK");
Expand All @@ -168,26 +168,26 @@ struct cascadeSelector {
h->GetXaxis()->SetBinLabel(7, "Bach PID OK");
}
void process(myCollisions::iterator const& collision, aod::CascDataExt const& Cascades, FullTracksExtIUWithPID const&, aod::BCsWithTimestamps const&)
{
{
bool evSel = true;
if(useTrigger){
if (useTrigger) {
auto bc = collision.bc_as<aod::BCsWithTimestamps>();
zorro.initCCDB(ccdb.service, bc.runNumber(), bc.timestamp(), triggerList);
bool eventTrigger = zorro.isSelected(bc.globalBC());
if(eventTrigger){
if (eventTrigger) {
registry.fill(HIST("hTriggerQA"), 1);
} else {
} else {
registry.fill(HIST("hTriggerQA"), 0);
evSel = false;
}
}

if ((doSel8 && !collision.sel8()) || (doTFBorderCut && !collision.selection_bit(aod::evsel::kNoTimeFrameBorder))) {
evSel = false; // do not skip the collision - this will lead to the cascadeFlag table having less entries than the Cascade table, and therefor not joinable.
}

for (auto& casc : Cascades) {
if(!evSel) {
if (!evSel) {
cascflags(0);
continue;
}
Expand Down Expand Up @@ -310,7 +310,7 @@ struct cascadeSelector {
// if we reach here, the bachelor was neither pion nor kaon
cascflags(0);
} // cascade loop
} // process
} // process
}; // struct

struct cascadeCorrelations {
Expand All @@ -330,8 +330,8 @@ struct cascadeCorrelations {
Configurable<bool> doSel8{"doSel8", true, "Switch to apply sel8 event selection"};

AxisSpec invMassAxis = {1000, 1.0f, 2.0f, "Inv. Mass (GeV/c^{2})"};
AxisSpec deltaPhiAxis = {180, -PI / 2, 1.5 * PI, "#Delta#varphi"}; // 180 is divisible by 18 (tpc sectors) and 20 (run 2 binning)
AxisSpec deltaYAxis = {40, -2*maxRapidity, 2*maxRapidity, "#Delta y"}; // TODO: narrower range?
AxisSpec deltaPhiAxis = {180, -PI / 2, 1.5 * PI, "#Delta#varphi"}; // 180 is divisible by 18 (tpc sectors) and 20 (run 2 binning)
AxisSpec deltaYAxis = {40, -2 * maxRapidity, 2 * maxRapidity, "#Delta y"}; // TODO: narrower range?
AxisSpec ptAxis = {150, 0, 15, "#it{p}_{T}"};
AxisSpec selectionFlagAxis = {4, -0.5f, 3.5f, "Selection flag of casc candidate"};
AxisSpec vertexAxis = {200, -10.0f, 10.0f, "cm"};
Expand Down Expand Up @@ -444,13 +444,13 @@ struct cascadeCorrelations {

void processSameEvent(myCollisionsMult::iterator const& collision, myCascades const& Cascades, aod::V0sLinked const&, aod::V0Datas const&, FullTracksExtIU const&, aod::BCsWithTimestamps const&)
{
if(useTrigger){
if (useTrigger) {
auto bc = collision.bc_as<aod::BCsWithTimestamps>();
zorro.initCCDB(ccdb.service, bc.runNumber(), bc.timestamp(), triggerList);
bool eventTrigger = zorro.isSelected(bc.globalBC());
if(eventTrigger){
if (eventTrigger) {
registry.fill(HIST("hTriggerQA"), 1);
} else {
} else {
registry.fill(HIST("hTriggerQA"), 0);
return;
}
Expand Down
Loading