1818
1919#include " ReconstructionDataFormats/GlobalTrackID.h"
2020#include " DataFormatsGlobalTracking/RecoContainer.h"
21+ #include " TPCCalibration/VDriftHelper.h"
2122#include " DetectorsBase/GRPGeomHelper.h"
2223#include " EMCALCalib/CellRecalibrator.h"
2324#include " EMCALWorkflow/CalibLoader.h"
@@ -58,14 +59,9 @@ class O2DPLDisplaySpec : public o2::framework::Task
5859 std::shared_ptr<o2::base::GRPGeomRequest> gr,
5960 std::shared_ptr<o2::emcal::CalibLoader> emcCalibLoader,
6061 const std::string& jsonPath, const std::string& ext,
61- std::chrono::milliseconds timeInterval, int numberOfFiles, int numberOfTracks, int numberOfBytes,
62- bool eveHostNameMatch, int minITSTracks, int minTracks, bool filterITSROF, bool filterTime,
63- const EveWorkflowHelper::Bracket& timeBracket, bool removeTPCEta,
64- const EveWorkflowHelper::Bracket& etaBracket, bool trackSorting, int onlyNthEvent,
65- bool primaryVertex, int maxPrimaryVertices, bool primaryVertexTriggers,
66- float primaryVertexMinZ, float primaryVertexMaxZ, float primaryVertexMinX, float primaryVertexMaxX, float primaryVertexMinY, float primaryVertexMaxY,
67- float maxEMCALCellTime, float minEMCALCellEnergy)
68- : mDisableWrite(disableWrite), mUseMC(useMC), mTrkMask(trkMask), mClMask(clMask), mDataRequest(dataRequest), mGGCCDBRequest(gr), mEMCALCalibLoader(emcCalibLoader), mJsonPath(jsonPath), mExt(ext), mTimeInterval(timeInterval), mNumberOfFiles(numberOfFiles), mNumberOfTracks(numberOfTracks), mNumberOfBytes(numberOfBytes), mEveHostNameMatch(eveHostNameMatch), mMinITSTracks(minITSTracks), mMinTracks(minTracks), mFilterITSROF(filterITSROF), mFilterTime(filterTime), mTimeBracket(timeBracket), mRemoveTPCEta(removeTPCEta), mEtaBracket(etaBracket), mTrackSorting(trackSorting), mOnlyNthEvent(onlyNthEvent), mPrimaryVertexMode(primaryVertex), mMaxPrimaryVertices(maxPrimaryVertices), mPrimaryVertexTriggers(primaryVertexTriggers), mPrimaryVertexMinZ(primaryVertexMinZ), mPrimaryVertexMaxZ(primaryVertexMaxZ), mPrimaryVertexMinX(primaryVertexMinX), mPrimaryVertexMaxX(primaryVertexMaxX), mPrimaryVertexMinY(primaryVertexMinY), mPrimaryVertexMaxY(primaryVertexMaxY), mEMCALMaxCellTime(maxEMCALCellTime), mEMCALMinCellEnergy(minEMCALCellEnergy), mRunType(o2::parameters::GRPECS::NONE)
62+ std::chrono::milliseconds timeInterval,
63+ bool eveHostNameMatch)
64+ : mDisableWrite (disableWrite), mUseMC (useMC), mTrkMask (trkMask), mClMask (clMask), mDataRequest (dataRequest), mGGCCDBRequest (gr), mEMCALCalibLoader (emcCalibLoader), mJsonPath (jsonPath), mExt (ext), mTimeInterval (timeInterval), mEveHostNameMatch (eveHostNameMatch), mRunType (o2::parameters::GRPECS::NONE)
6965
7066 {
7167 this ->mTimeStamp = std::chrono::high_resolution_clock::now () - timeInterval; // first run meets condition
@@ -82,32 +78,10 @@ class O2DPLDisplaySpec : public o2::framework::Task
8278 bool mDisableWrite = false ; // skip writing result (for testing performance)
8379 bool mUseMC = false ;
8480 bool mEveHostNameMatch ; // empty or correct hostname
85- int mMinITSTracks ; // minimum number of ITS tracks to produce a file
86- int mMinTracks ; // minimum number of all tracks to produce a file
87- bool mFilterITSROF ; // don't display tracks outside ITS readout frame
88- bool mFilterTime ; // don't display tracks outside [min, max] range in TF time
89- bool mRemoveTPCEta ; // don't display TPC tracks inside [min, max] eta range
90- bool mPrimaryVertexMode ; // produce files per primary vertex
91- EveWorkflowHelper::Bracket mTimeBracket ; // [min, max] range in TF time for the filter
92- EveWorkflowHelper::Bracket mEtaBracket ; // [min, max] eta range for the TPC tracks removal
9381 std::string mJsonPath ; // folder where files are stored
9482 std::string mExt ; // extension of created files (".json" or ".root")
9583 std::chrono::milliseconds mTimeInterval ; // minimal interval between files in milliseconds
96- int mNumberOfFiles ; // maximum number of files in folder - newer replaces older
97- int mNumberOfTracks ; // maximum number of track in single file (0 means no limit)
98- int mNumberOfBytes ; // number of bytes stored in period which causes stopping saving a new file
99- bool mTrackSorting ; // perform sorting tracks by track time before applying filters
100- int mOnlyNthEvent ; // process only every nth event.
101- int mMaxPrimaryVertices ; // max number of primary vertices to draw per time frame
10284 bool mPrimaryVertexTriggers ; // instead of drawing vertices with tracks (and maybe calorimeter triggers), draw vertices with calorimeter triggers (and maybe tracks)
103- float mPrimaryVertexMinZ ; // minimum z position of the primary vertex
104- float mPrimaryVertexMaxZ ; // maximum z position of the primary vertex
105- float mPrimaryVertexMinX ; // minimum x position of the primary vertex
106- float mPrimaryVertexMaxX ; // maximum x position of the primary vertex
107- float mPrimaryVertexMinY ; // minimum y position of the primary vertex
108- float mPrimaryVertexMaxY ; // maximum y position of the primary vertex
109- float mEMCALMaxCellTime ; // max abs EMCAL cell time (in ns)
110- float mEMCALMinCellEnergy ; // min EMCAL cell energy (in GeV)
11185 int mEventCounter = 0 ;
11286 std::chrono::time_point<std::chrono::high_resolution_clock> mTimeStamp ;
11387
@@ -119,6 +93,7 @@ class O2DPLDisplaySpec : public o2::framework::Task
11993 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest ;
12094 std::shared_ptr<o2::emcal::CalibLoader> mEMCALCalibLoader ;
12195 std::unique_ptr<o2::emcal::CellRecalibrator> mEMCALCalibrator ;
96+ o2::tpc::VDriftHelper mTPCVDriftHelper {};
12297};
12398
12499} // namespace o2::event_visualisation
0 commit comments