28namespace skimmedExampleTrack
35 skimmedExampleTrack::Pt,
36 skimmedExampleTrack::Eta);
45 LOGP(info,
"Invoking the simple one");
46 for (
auto& track : tracks) {
47 etaClsH->Fill(track.eta(), track.pt());
48 skimEx(track.pt(), track.eta());
59 LOGP(info,
"Invoking the simple one");
60 for (
auto& track : tracks) {
61 etaClsH->Fill(track.eta(), track.pt());
62 skimEx(track.pt(), track.eta());
68 OutputObj<TH3F> etaClsH{TH3F(
"eta_vs_cls_vs_sigmapT",
"#eta vs N_{cls} vs sigma_{1/pT}", 102, -2.01, 2.01, 160, -0.5, 159.5, 100, 0, 10)};
72 LOGP(info,
"Invoking the run 3 one");
73 for (
auto& track : tracks) {
74 etaClsH->Fill(track.eta(), track.tpcNClsFindable(), track.sigma1Pt());
81 std::string runType =
"3";
82 std::vector<std::string> tables;
84 runType = cfgc.
options().
get<std::string>(
"aod-metadata-Run");
87 tables = cfgc.
options().
get<std::vector<std::string>>(
"aod-metadata-tables");
89 LOGP(info,
"Runtype is {}", runType);
90 bool hasTrackCov =
false;
91 bool hasTrackIU =
false;
92 for (
auto& table : tables) {
93 if (table ==
"O2trackcov") {
96 if (table.starts_with(
"O2track_iu")) {
99 LOGP(info,
"- {} present.", table);
102 if (runType ==
"2" || !hasTrackCov) {
103 LOGP(info,
"Using only tracks {}", runType);
106 adaptAnalysisTask<EtaAndClsHistogramsIUSimple>(cfgc,
TaskName{
"simple-histos"}),
110 adaptAnalysisTask<EtaAndClsHistogramsSimple>(cfgc,
TaskName{
"simple-histos"}),
113 LOGP(info,
"Using tracks extra {}", runType);
116 adaptAnalysisTask<EtaAndClsHistogramsIUSimple>(cfgc,
TaskName{
"simple-histos"}),
120 adaptAnalysisTask<EtaAndClsHistogramsFull>(cfgc,
TaskName{
"simple-histos"}),
#define DECLARE_SOA_TABLE(_Name_, _Origin_, _Desc_,...)
#define DECLARE_SOA_COLUMN(_Name_, _Getter_, _Type_)
ConfigParamRegistry & options() const
bool hasOption(const char *key) const
T get(const char *key) const
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
WorkflowSpec defineDataProcessing(ConfigContext const &cfgc)
This function hooks up the the workflow specifications into the DPL driver.
void process(soa::Join< aod::FullTracks, aod::TracksCov > const &tracks)
OutputObj< TH3F > etaClsH
OutputObj< TH2F > etaClsH
void process(aod::TracksIU const &tracks)
Produces< o2::aod::SkimmedExampleTrack > skimEx
OutputObj< TH2F > etaClsH
void process(aod::Tracks const &tracks)
Produces< o2::aod::SkimmedExampleTrack > skimEx
Struct to differentiate task names from possible task string arguments.