 |
Belle II Software
release-05-01-25
|
11 #include "cdc/modules/cdcCrudeT0Collector/CDCCrudeT0Collector.h"
12 #include <cdc/dataobjects/WireID.h>
13 #include <framework/pcore/ProcHandler.h>
31 std::string objectName =
"tree";
32 TTree* tree =
new TTree(objectName.c_str(),
"");
33 tree->Branch<
unsigned short>(
"lay", &
m_lay);
34 tree->Branch<
unsigned short>(
"wire", &
m_wire);
35 tree->Branch<
unsigned short>(
"tdc", &
m_tdc);
36 registerObject<TTree>(objectName, tree);
52 auto tree = getObjectPtr<TTree>(
"tree");
54 WireID wireid(hit.getID());
55 m_lay = wireid.getICLayer();
56 m_wire = wireid.getIWire();
57 m_tdc = hit.getTDCCount();
74 +
"\nThe gDirectory is " + gDirectory->GetPath());
Calibration collector module base class.
unsigned short m_lay
Layer ID.
void describeProcess(std::string functionName)
Describe the process.
Class to identify a wire inside the CDC.
void setDescription(const std::string &description)
Sets the description of the module.
void prepare() override
initialization
void closeRun() override
end of run action
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
unsigned short m_tdc
TDC count.
static std::string getProcessName()
Get a name for this process.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
unsigned short m_wire
Wire ID.
Abstract base class for different kinds of events.
static int EvtProcID()
Return ID of the current process.
unsigned short m_adcMin
ADC cut to reject noise.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
void startRun() override
start of run action
void finish() override
finalization
static bool parallelProcessingUsed()
Returns true if multiple processes have been spawned, false in single-core mode.
StoreArray< CDCHit > m_cdcHits
CDCHit array.
void collect() override
collection