 |
Belle II Software
release-05-02-19
|
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 PXDBgTupleProducerModule:
public Module {
89 void event() override final;
147 return info.getWidth() * info.getLength();
153 int vi = vBin * info.getVCells() /
m_nBinsV;
154 double length = info.getVPitch(info.getVCellPosition(vi)) * info.getVCells() /
m_nBinsV;
155 return length * info.getWidth() /
m_nBinsU;
double m_maxOccupancy
Maximum occupancy of all events inside one second block.
Class to uniquely identify a any structure of the PXD and SVD.
int m_nEvents
Number of Belle 2 events per second.
const double c_densitySi
Density of crystalline Silicon.
double m_dose
Dose (Gy per second)
double getRegionArea(VxdID sensorID, int vBin) const
Return area of the region with the given sensor ID and region vBin.
int m_nPXDSensors
Total number of PXD sensors.
void terminate() override final
This method is called at the end of the event processing.
std::vector< double > m_regionDoseMap
Dose (Gy per second) for sensor regions.
int m_run
Belle 2 run number.
static const SensorInfoBase & get(Belle2::VxdID id)
Return a reference to the SensorInfo of a given SensorID.
std::map< VxdID, double > m_sensitiveAreaMap
Struct to hold sensor-wise sensitive area.
double m_meanOccupancy
Average occupancy of all events inside one second block.
std::vector< double > m_regionExpoMap
Expositions (energy deposited per cm2 and second) for sensor regions.
PXDBgTupleProducerModule()
Constructor.
std::string m_outputFileName
output tuple file name
std::map< VxdID, SensorData > m_sensorData
Struct to hold sensor-wise background data.
std::map< unsigned long long int, std::map< VxdID, SensorData > > m_buffer
Struct to hold sensor-wise background data.
double m_timePeriod
Period for background time series.
double m_expo
Exposition (energy deposited per cm2 and second)
Specific implementation of SensorInfo for PXD Sensors which provides additional pixel specific inform...
std::vector< double > m_regionChargedParticleFluxMap
Charged particle flux (selected clusters per cm and second) for sensor regions.
PXD Background Tuple Producer.
double m_softPhotonFlux
Soft photon flux (selected clusters per cm and second)
std::map< std::pair< VxdID, int >, int > m_regionSensitivePixelMap
Struct to hold region-wise number of sensitive pixels.
Abstract base class for different kinds of events.
std::map< std::pair< VxdID, int >, double > m_regionSensitiveAreaMap
Struct to hold region-wise sensitive area.
std::map< VxdID, int > m_sensitivePixelMap
Struct to hold sensor-wise number of sensitive pixels.
const PXD::SensorInfo & getInfo(VxdID sensorID) const
This is a shortcut to getting PXD::SensorInfo from the GeoCache.
Struct to hold data of an PXD sensor.
double m_chargedParticleFlux
Charged particle flux (selected clusters per cm and second)
int m_nBinsV
Number of regions per sensor along v side.
bool m_maskDeadPixels
Correct bg rates by taking into account masked pixels.
std::string m_storeDigitsName
PXDDigits StoreArray name.
void event() override final
This method is the core of the module.
int getRegionID(int uBin, int vBin) const
Get region id from region uBin and vBin.
int m_nBinsU
Number of regions per sensor along u side.
double getSensorArea(VxdID sensorID) const
Return area of the sensor with the given sensor ID.
double m_integrationTime
Integration time of PXD.
double m_hardPhotonFlux
Hard photon flux (selected clusters per cm and second)
double m_minOccupancy
Minimum occupancy of all events inside one second block.
bool m_hasPXDData
Flag to indicate there was at least one PXDDigit in the run.
void initialize() override final
Initialize the Module.
std::vector< double > m_regionSoftPhotonFluxMap
Soft photon flux (selected clusters per cm and second) for sensor regions.
std::vector< double > m_regionHardPhotonFluxMap
Hard photon flux (selected clusters per cm and second) for sensor regions.
std::string m_storeClustersName
PXDClusters StoreArray name.
void beginRun() override final
Called when entering a new run.