9#include <pxd/modules/pxdSpacePointCreator/PXDSpacePointCreatorModule.h>
11#include <framework/logging/Logger.h>
27 setDescription(
"Imports Clusters of the PXD detector and converts them to spacePoints.");
32 "PXDCluster collection name",
string(
""));
34 "SpacePoints collection name",
string(
"PXDSpacePoints"));
38 "allows the user to set an identifier for this module. Usefull if one wants to use several instances of that module",
39 string(
"PXDSpacePoints"));
56 B2DEBUG(10,
"SpacePointCreatorModule(" <<
m_nameOfInstance <<
")::initialize: names set for containers:\n" <<
83 B2DEBUG(1,
"PXDSpacePointCreatorModule(" <<
m_nameOfInstance <<
")::event: spacePoints created! Size of arrays:\n" <<
94 B2DEBUG(10,
"SpacePointCreatorModule(" <<
m_nameOfInstance <<
")::event: spacePoint " << index <<
95 " with type " << sp->
getType() <<
98 " and the related PXDCluster is in " << relatedCluster->
getArrayName() <<
111 B2DEBUG(10,
"PXDSpacePointCreatorModule(" <<
m_nameOfInstance <<
")::terminate: total number of occured instances:\n" <<
@ c_DontWriteOut
Object/array should be NOT saved by output modules.
@ c_ErrorIfAlreadyRegistered
If the object/array was already registered, produce an error (aborting initialisation).
@ c_Event
Different object in each event, all objects/arrays are invalidated after event() function has been ca...
@ c_Debug
Debug: for code development.
static LogSystem & Instance()
Static method to get a reference to the LogSystem instance.
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...
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
unsigned int m_TESTERPXDClusterCtr
counts total number of PXDClusters occured
std::string m_nameOfInstance
allows the user to set an identifier for this module.
virtual void initialize() override
Init the module.
PXDSpacePointCreatorModule()
Constructor.
StoreObjPtr< EventLevelTrackingInfo > m_eventLevelTrackingInfo
StoreObject to access the event level tracking information.
virtual void event() override
eventWise jobs (e.g.
void InitializeCounters()
initialize variables in constructor to avoid nondeterministic behavior
unsigned int m_TESTERSpacePointCtr
counts total number of SpacePoints occured
virtual void terminate() override
final output with mini-feedback
StoreArray< SpacePoint > m_spacePoints
the storeArray for spacePoints as member, is faster than recreating link for each event
std::string m_pxdClustersName
PXDCluster collection name.
StoreArray< PXDCluster > m_pxdClusters
the storeArray for pxdClusters as member, is faster than recreating link for each event
std::string m_spacePointsName
SpacePoints collection name.
void addRelationTo(const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
Add a relation from this object to another object (with caching).
std::string getArrayName() const
Get name of array this object is stored in, or "" if not found.
int getArrayIndex() const
Returns this object's array index (in StoreArray), or -1 if not found.
TO * getRelatedTo(const std::string &name="", const std::string &namedRelation="") const
Get the object to which this object has a relation.
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
VxdID getVxdID() const
Return the VxdID of the sensor on which the the cluster of the SpacePoint lives.
Belle2::VXD::SensorInfoBase::SensorType getType() const
Return SensorType (PXD, SVD, ...) on which the SpacePoint lives.
const std::string & getName() const
Return name under which the object is saved in the DataStore.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
bool registerInDataStore(DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut)
Register the object/array in the DataStore.
T * appendNew()
Construct a new T object at the end of the array.
int getEntries() const
Get the number of objects in the array.
bool registerRelationTo(const StoreArray< TO > &toArray, DataStore::EDurability durability=DataStore::c_Event, DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut, const std::string &namedRelation="") const
Register a relation to the given StoreArray.
Class to uniquely identify a any structure of the PXD and SVD.
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.