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