forked from AliceO2Group/O2Physics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PWGLF: add found tag in findable exercise (AliceO2Group#5991)
* PWGLF: add found tag in findable exercise * Fix default * Many bugfixes * Please consider the following formatting changes (#288) * Changes in QA counting * Please consider the following formatting changes (#289) * Megalinter fix * Please consider the following formatting changes (#290) * Asymmetric V0MCCore build mode for duplicate handling * Extra bookkeeping * Please consider the following formatting changes (#291) * Fix bugs * Please consider the following formatting changes (#292) * V0Cores vs V0MCCores: always interlink * Please consider the following formatting changes (#293) --------- Co-authored-by: ALICE Builder <[email protected]>
- Loading branch information
Showing
8 changed files
with
531 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,11 @@ | |
// [email protected] | ||
// | ||
|
||
#include <Math/Vector4D.h> | ||
#include <cmath> | ||
#include <array> | ||
#include <cstdlib> | ||
|
||
#include "Framework/runDataProcessing.h" | ||
#include "Framework/AnalysisTask.h" | ||
#include "Framework/AnalysisDataModel.h" | ||
|
@@ -40,7 +45,6 @@ | |
#include "Common/DataModel/EventSelection.h" | ||
#include "Common/DataModel/Centrality.h" | ||
#include "DataFormatsParameters/GRPObject.h" | ||
#include "DataFormatsParameters/GRPObject.h" | ||
#include "DataFormatsParameters/GRPMagField.h" | ||
#include "CCDB/BasicCCDBManager.h" | ||
|
||
|
@@ -49,24 +53,21 @@ | |
#include <TH1F.h> | ||
#include <TH2F.h> | ||
#include <TProfile.h> | ||
#include <Math/Vector4D.h> | ||
#include <TPDGCode.h> | ||
#include <TDatabasePDG.h> | ||
#include <cmath> | ||
#include <array> | ||
#include <cstdlib> | ||
|
||
using namespace o2; | ||
using namespace o2::framework; | ||
using namespace o2::framework::expressions; | ||
using std::array; | ||
using namespace ROOT::Math; | ||
|
||
// WARNING: the cascade findable uses findable V0s as well | ||
using LabeledTracks = soa::Join<aod::TracksIU, aod::TracksExtra, aod::McTrackLabels>; | ||
using LabeledFullV0s = soa::Join<aod::V0s, aod::McFullV0Labels>; | ||
using LabeledFullV0s = soa::Join<aod::FindableV0s, aod::McFullV0Labels>; | ||
|
||
struct cascademcfinder { | ||
Produces<aod::Cascades> cascades; | ||
Produces<aod::FindableCascades> cascades; | ||
|
||
HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject}; | ||
|
||
|
@@ -89,8 +90,8 @@ struct cascademcfinder { | |
void init(InitContext&) | ||
{ | ||
// initialize histograms | ||
const AxisSpec axisNTimesCollRecoed{(int)10, -0.5f, +9.5f, ""}; | ||
const AxisSpec axisPt{(int)100, +0.0f, +10.0f, "p_{T} (GeV/c)"}; | ||
const AxisSpec axisNTimesCollRecoed{static_cast<int>(10), -0.5f, +9.5f, ""}; | ||
const AxisSpec axisPt{static_cast<int>(100), +0.0f, +10.0f, "p_{T} (GeV/c)"}; | ||
|
||
histos.add("hNTimesCollRecoed", "hNTimesCollRecoed", kTH1F, {axisNTimesCollRecoed}); | ||
|
||
|
Oops, something went wrong.