Skip to content
Snippets Groups Projects
Commit 03b677ec authored by Volker Friese's avatar Volker Friese Committed by Florian Uhlig
Browse files

Set dE/dx for StsTracks. Refs #2241.

parent b1e4db7e
No related branches found
No related tags found
1 merge request!692Set dE/dx for StsTracks. Refs #2241.
Pipeline #15735 passed
...@@ -56,6 +56,9 @@ public: ...@@ -56,6 +56,9 @@ public:
**/ **/
virtual Int_t DoFind() = 0; virtual Int_t DoFind() = 0;
/** @brief Calculate the median energy loss for the tracks and fill the respective data members **/
void FillEloss();
/** Virtual method Finish. If needed, to be implemented in the concrete /** Virtual method Finish. If needed, to be implemented in the concrete
** class. Executed at the end of the run. ** class. Executed at the end of the run.
...@@ -95,7 +98,6 @@ protected: ...@@ -95,7 +98,6 @@ protected:
** https://indico.gsi.de/event/4760/session/4/contribution/80/material/slides/0.pdf ** https://indico.gsi.de/event/4760/session/4/contribution/80/material/slides/0.pdf
**/ **/
double CalculateEloss(CbmStsTrack* cbmStsTrack); double CalculateEloss(CbmStsTrack* cbmStsTrack);
void FillEloss();
private: private:
constexpr static int MaxAdcVal() { return 31; } constexpr static int MaxAdcVal() { return 31; }
......
...@@ -102,6 +102,7 @@ void CbmStsFindTracks::Exec(Option_t* /*opt*/) ...@@ -102,6 +102,7 @@ void CbmStsFindTracks::Exec(Option_t* /*opt*/)
fTracks->Delete(); fTracks->Delete();
Int_t nTracks = fFinder->DoFind(); Int_t nTracks = fFinder->DoFind();
fFinder->FillEloss();
// for (Int_t iTrack=0; iTrack<fTracks->GetEntriesFast(); iTrack++) { // for (Int_t iTrack=0; iTrack<fTracks->GetEntriesFast(); iTrack++) {
// CbmStsTrack* track = (CbmStsTrack*) fTracks->At(iTrack); // CbmStsTrack* track = (CbmStsTrack*) fTracks->At(iTrack);
// track->SortHits(); // track->SortHits();
......
...@@ -207,6 +207,7 @@ pair<UInt_t, UInt_t> CbmStsFindTracksEvents::ProcessEvent(CbmEvent* event) ...@@ -207,6 +207,7 @@ pair<UInt_t, UInt_t> CbmStsFindTracksEvents::ProcessEvent(CbmEvent* event)
// --- Call track finder // --- Call track finder
fTimer.Start(); fTimer.Start();
Int_t nTracks = fFinder->FindTracks(event); Int_t nTracks = fFinder->FindTracks(event);
fFinder->FillEloss();
fTimer.Stop(); fTimer.Stop();
// --- Event log // --- Event log
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment