88// In applying this license CERN does not waive the privileges and immunities
99// granted to it by virtue of its status as an Intergovernmental Organization
1010// or submit itself to any jurisdiction.
11- //
12- // Minimal example to run this task:
13- // o2-analysis-centrality-table -b --configuration json://configuration.json | o2-analysis-timestamp -b --configuration json://configuration.json | o2-analysis-event-selection -b --configuration json://configuration.json | o2-analysis-multiplicity-table -b --configuration json://configuration.json | o2-analysis-lf-zdcsp -b --configuration json://configuration.json --aod-file @input_data.txt --aod-writer-json OutputDirector.json
11+
12+ // / \file dptDptPerRunExtraQc.cxx
13+ // / \brief basic per run check of the per analyzed species p vs TPC IW momentum
14+ // / \author victor.gonzalez.sebastian@gmail.com
1415
1516#include < array>
1617#include < cmath>
18+ #include < unordered_map>
1719
1820#include " Framework/AnalysisDataModel.h"
1921#include " Framework/AnalysisTask.h"
@@ -31,21 +33,21 @@ using namespace o2::constants::physics;
3133
3234using BCsWithTimestamps = soa::Join<aod::BCs, aod::Timestamps>;
3335
34- namespace perrunextraqa
36+ namespace perrunextraqc
3537{
3638std::unordered_map<int , TProfile3D*> gRunMapPvsTpcIwP ;
3739TProfile3D* gCurrentRunPvsPtcIwP ;
38- } // namespace perrunextraqa
40+ } // namespace perrunextraqc
3941
40- struct DptDptPerRunExtraQa {
42+ struct DptDptPerRunExtraQc {
4143 int mRunNumber {-1 };
4244 AxisSpec qaPAxis{150 , 0.1 , 5.0 };
4345
44- HistogramRegistry mHistos {" PerRunExtraQaHistograms " , {}, OutputObjHandlingPolicy::AnalysisObject};
46+ HistogramRegistry mHistos {" PerRunExtraQcHistograms " , {}, OutputObjHandlingPolicy::AnalysisObject};
4547
4648 void initRunNumber (aod::BCsWithTimestamps::iterator const & bc)
4749 {
48- using namespace perrunextraqa ;
50+ using namespace perrunextraqc ;
4951
5052 if (mRunNumber == bc.runNumber ()) {
5153 return ;
@@ -60,17 +62,17 @@ struct DptDptPerRunExtraQa {
6062
6163 void init (InitContext&)
6264 {
63- using namespace perrunextraqa ;
65+ using namespace perrunextraqc ;
6466
6567 qaPAxis.makeLogarithmic ();
6668 }
6769
6870 template <typename PassedTracks>
6971 void processTracks (PassedTracks const & tracks)
7072 {
71- using namespace perrunextraqa ;
73+ using namespace perrunextraqc ;
7274
73- for (auto & track : tracks) {
75+ for (const auto & track : tracks) {
7476 gCurrentRunPvsPtcIwP ->Fill (track.trackacceptedid (), track.p (), track.tpcInnerParam (), track.pt ());
7577 }
7678 }
@@ -95,5 +97,5 @@ struct DptDptPerRunExtraQa {
9597WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
9698{
9799 return WorkflowSpec{
98- adaptAnalysisTask<DptDptPerRunExtraQa >(cfgc)};
100+ adaptAnalysisTask<DptDptPerRunExtraQc >(cfgc)};
99101}
0 commit comments