 |
Belle II Software
release-05-01-25
|
13 #include <framework/core/Module.h>
14 #include <framework/gearbox/Unit.h>
15 #include <vxd/dataobjects/VxdID.h>
16 #include <vxd/geometry/SensorInfoBase.h>
17 #include <pxd/geometry/SensorInfo.h>
18 #include <vxd/geometry/GeoCache.h>
42 class PXDMCBgTupleProducerModule:
public Module {
81 void event() override final;
137 return info.getWidth() * info.getLength();
143 int vi = vBin * info.getVCells() /
m_nBinsV;
144 double length = info.getVPitch(info.getVCellPosition(vi)) * info.getVCells() /
m_nBinsV;
145 return length * info.getWidth() /
m_nBinsU;
Class to uniquely identify a any structure of the PXD and SVD.
void terminate() override final
This method is called at the end of the event processing.
bool m_maskDeadPixels
Correct bg rates by taking into account masked pixels.
double m_softPhotonFlux
Soft photon flux (selected clusters per cm and second)
std::string m_outputFileName
output tuple file name
static const SensorInfoBase & get(Belle2::VxdID id)
Return a reference to the SensorInfo of a given SensorID.
double m_overrideComponentTime
Time of current component given by user.
int getRegionID(int uBin, int vBin) const
Get region id from region uBin and vBin.
void event() override final
This method is the core of the module.
const double c_densitySi
Density of crystalline Silicon.
std::vector< double > m_regionSoftPhotonFluxMap
Soft photon flux (selected clusters per cm and second) for sensor regions.
PXD MC Background Tuple Producer.
std::string m_storeClustersName
PXDClusters StoreArray name.
std::vector< double > m_regionDoseMap
Dose (Gy per second) for sensor regions.
std::string m_storeBgMetaDataName
Name of the persistent BackgroundMetaDta object.
double m_chargedParticleFlux
Charged particle flux (selected clusters per cm and second)
void initialize() override final
Initialize the Module.
const PXD::SensorInfo & getInfo(VxdID sensorID) const
This is a shortcut to getting PXD::SensorInfo from the GeoCache.
std::map< VxdID, SensorData > m_sensorData
Struct to hold sensor-wise background data.
double m_hardPhotonFlux
Hard photon flux (selected clusters per cm and second)
double m_meanOccupancy
Average occupancy of all events inside one second block.
std::string m_storeDigitsName
PXDDigits StoreArray name.
std::map< VxdID, int > m_sensitivePixelMap
Struct to hold sensor-wise number of sensitive pixels.
Specific implementation of SensorInfo for PXD Sensors which provides additional pixel specific inform...
std::vector< double > m_regionExpoMap
Expositions (energy deposited per cm2 and second) for sensor regions.
bool m_hasPXDData
Flag to indicate there was at least one PXDDigit in the run.
Abstract base class for different kinds of events.
int m_nBinsU
Number of regions per sensor along u side.
double getRegionArea(VxdID sensorID, int vBin) const
Return area of the region with the given sensor ID and region vBin.
std::map< std::pair< VxdID, int >, int > m_regionSensitivePixelMap
Struct to hold region-wise number of sensitive pixels.
std::map< std::pair< VxdID, int >, double > m_regionSensitiveAreaMap
Struct to hold region-wise sensitive area.
double getSensorArea(VxdID sensorID) const
Return area of the sensor with the given sensor ID.
double m_integrationTime
Integration time of PXD.
std::vector< double > m_regionChargedParticleFluxMap
Charged particle flux (selected clusters per cm and second) for sensor regions.
int m_nBinsV
Number of regions per sensor along v side.
double m_expo
Exposition (energy deposited per cm2 and second)
double m_componentTime
Time of current component.
std::map< VxdID, double > m_sensitiveAreaMap
Struct to hold sensor-wise sensitive area.
std::vector< double > m_regionHardPhotonFluxMap
Hard photon flux (selected clusters per cm and second) for sensor regions.
double m_dose
Dose (Gy per second)
PXDMCBgTupleProducerModule()
Constructor.
void beginRun() override final
Called when entering a new run.
Struct to hold data of an PXD sensor.