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