 |
Belle II Software
release-05-01-25
|
11 #include <reconstruction/modules/CDCDedxDQM/CDCDedxDQM.h>
12 #include <framework/core/HistoModule.h>
14 #include <TDirectory.h>
23 setPropertyFlags(c_ParallelProcessingCertified);
24 setDescription(
"Make data quality monitoring plots for dE/dx: means and resolutions for bhabha skim, dedx band plots for bhabha/hadron skim.");
35 TDirectory* oldDir = gDirectory;
36 oldDir->mkdir(
"CDCDedx")->cd();
42 temp1D->GetXaxis()->SetTitle(
"dEdx trucMean of bhabha tracks");
43 temp1D->GetYaxis()->SetTitle(
"Entries");
45 temp2D =
new TH2D(
"hdEdxVsP_PerRun", Form(
"hdEdxVsP_PerRun%d",
fCurrentEventNum), 400, 0.02, 8.0, 500, 0.10, 15.0);
46 temp2D->GetXaxis()->SetTitle(
"p (GeV) of hadron tracks");
47 temp2D->GetYaxis()->SetTitle(
"dEdx");
59 B2WARNING(
"Missing CDCDedxTracks array, CDCDedxDQM is skipped.");
74 B2WARNING(
"Missing CDCDedxTracks array, CDCDedxDQM is skipped.");
89 B2WARNING(
"SoftwareTriggerResult object not available but require to select skim events for this module: going back");
93 const std::map<std::string, int>& fresults =
m_TrgResult->getResults();
94 if (fresults.find(
"software_trigger_cut&skim&accept_bhabha") == fresults.end()
95 and fresults.find(
"software_trigger_cut&skim&accept_hadron") == fresults.end()) {
100 const bool IsBhabhaEvtAccepted = (
m_TrgResult->getResult(
"software_trigger_cut&skim&accept_bhabha") ==
102 const bool IsHadronEvtAccepted = (
m_TrgResult->getResult(
"software_trigger_cut&skim&accept_hadron") ==
104 if (!IsBhabhaEvtAccepted and !IsHadronEvtAccepted) {
110 B2WARNING(
"Missing CDCDedxTracks array, CDCDedxDQM is skipped.");
Int_t fCurrentEventNum
variable to get run number
double getDedxNoSat() const
Get dE/dx truncated mean without the saturation correction for this track.
virtual void endRun() override
This method is called at the end of each run.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
double getMomentum() const
Return the track momentum valid in the CDC.
@ c_accept
Accept this event.
virtual void initialize() override
Initialize the module.
TH2D * temp2D
Dedx vs P histogram per run.
virtual void terminate() override
End of the event processing.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
virtual void event() override
This method is called for each event.
StoreArray< CDCDedxTrack > m_cdcDedxTracks
Store array for CDCDedxTrack.
virtual ~CDCDedxDQMModule()
Destructor.
virtual void beginRun() override
This method is called for each run.
virtual void defineHisto() override
Defination of histograms.
This module to design collect CDC dEdx monitoring for DQM and only minimal information are stored.
TH1D * temp1D
Dedx histogram per run.
StoreObjPtr< SoftwareTriggerResult > m_TrgResult
Store array for Trigger selection.
Debug output for CDCDedxPID module.
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...