12#include <framework/core/HistoModule.h>
13#include <framework/datastore/StoreArray.h>
14#include <framework/dataobjects/EventMetaData.h>
15#include <framework/database/DBObjPtr.h>
17#include <mdst/dataobjects/TrackFitResult.h>
19#include <reconstruction/dataobjects/CDCDedxTrack.h>
20#include <reconstruction/dbobjects/CDCDedxRunGain.h>
73 virtual void event()
override;
79 virtual void endRun()
override;
Debug output for CDCDedxPID module.
First version committed on Feb 21 2019 Extracts dE/dx information for validation and writes a ROOT fi...
std::vector< Double_t > TotMean
Mean of dedx by Fit.
Double_t fnBinsdedxUE
up edge of dedx
void FillHistograms(CDCDedxTrack *dedxTrack, const TrackFitResult *mTrack)
Filling histograms This will fill histogram defined histograms in above function.
TFile * fFileOutput
Write final objects to file for RG.
std::string fOutFileName
name of output ROOT file
Double_t fcRunGain
existing run gain
Int_t fCurrentRunNum
current run number
DBObjPtr< CDCDedxRunGain > m_DBRunGain
Run gain DB object.
Int_t fnRunCounter
Total runs used counter.
void setD0Cut(Double_t value)
d0 Selection set/change d0 while executing this module from external script
TList * fBasic
List of basic histos.
virtual void initialize() override
Initialize This is inherited from base class.
std::vector< TH1D * > hdEdx_PR
histogram array per run
virtual void event() override
function to execute event (event by event) This is inherited from base class
std::vector< Double_t > TotSigma
Sigma of dedx by Fit.
CDCDedxValidationModule()
Default constructor contain list of members with initial values.
TList * fPRdEdxinP
list per run dedx in P histos
Double_t fTrkEoverP
E/p ratio for cut.
virtual void endRun() override
function is called after each event This is inherited from base class
std::vector< Int_t > TotRunN
veector array of runs processed
virtual void terminate() override
Terminate after all data processed This is inherited from base class.
std::vector< Double_t > TotSigmaE
Sigma Error of dedx by Fit.
Double_t fZ0Window
z0 window cut
std::vector< Double_t > TotMeanE
Mean Error of dedx by Fit.
void setZ0Cut(Double_t value)
z0 Selection set/change z0 while executing this module from external script
virtual ~CDCDedxValidationModule()
Default destructor.
virtual void beginRun() override
Function to execute each run This is inherited from base class.
StoreArray< CDCDedxTrack > m_cdcDedxTracks
Data members for objects, cuts and others.
Double_t fnBinsdedxLE
low edge of dedx
TList * fPRdEdx
List of per run dedx histos.
void ExtractHistograms(TString level)
Extracting histogram and some calculation Higher level histograms are filled after each run or full p...
void DefineHistograms(TString level, Int_t iR)
Definition of histograms This contain a list of histogram for validation.
Int_t fnRuns
Number of runs ref.
Int_t fiRun
Current run number.
Int_t fnBinsdedx
nbin of dedx range
Double_t fD0Window
d0 window cut
std::string fCollType
collision type
Bool_t IsSelectedTrack(const TrackFitResult *mTrack)
Track selection A clean way to implement selections on tracks (so far few only)
Class for accessing objects in the database.
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Accessor to arrays stored in the data store.
Values of the result of a track fit with a given particle hypothesis.
Abstract base class for different kinds of events.