Belle II Software  release-08-01-10
svd data objects
Collaboration diagram for svd data objects:

Classes

class  SVDAPVHistograms< H >
 template class for the APV Histograms More...
 
class  SVDCluster
 The SVD Cluster class This class stores all information about reconstructed SVD clusters. More...
 
class  SVDDAQDiagnostic
 Class to store SVD DAQ diagnostic information. More...
 
class  SVDEnergyDepositionEvent
 Class SVDEnergyDepositionEvent: SVDSimHit data container for background studies. More...
 
class  SVDEventInfo
 Stores SVDModeByte object with Trigger time, DAQ mode, Run type & Event type! Also - the information of any inconsistencies of these variables within one event are stored. More...
 
class  SVDHistograms< H >
 template class for SVd histograms More...
 
class  SVDModeByte
 Class to store SVD mode information. More...
 
class  SVDNeutronFluxEvent
 Class SVDNeutronFluxEvent: SVDTrueHit data container for background studies. More...
 
class  SVDOccupancyEvent
 Class SVDOccupancyEvent: SVDCluster data container for background studies. More...
 
class  SVDRecoDigit
 The SVD RecoDigit class. More...
 
class  SVDRecoTimeBase
 The SVD RecoTimeBase class. More...
 
class  SVDShaperDigit
 The SVD ShaperDigit class. More...
 
class  SVDSimHit
 Class SVDSimHit - Geant4 simulated hit for the SVD. More...
 
class  SVDSummaryPlots
 class to summarize SVD quantities per sensor and side More...
 
class  SVDTransparentDigit
 The SVD digit class. More...
 
class  SVDTriggerType
 Class to store Trigger Type information. More...
 
class  SVDTrueHit
 Class SVDTrueHit - Records of tracks that either enter or leave the sensitive volume. More...
 

Functions

std::ostream & operator<< (std::ostream &out, const SVDModeByte &id)
 Print id to stream by converting it to string.
 
 SVDAPVHistograms (const H &templateAPV)
 Use. More...
 
void customize (H &histogram, VxdID vxdID, int view, int apv)
 customize the histogram with the sensor, view and APV numbers
 
 SVDHistograms (const H &templateU3, const H &templateV3, const H &templateU456, const H &templateV456)
 Use templates to initialize all the histograms. More...
 
void customize (H &histogram, VxdID vxdID, int view)
 customize the histogram with the sensor, view More...
 

Variables

static const baseType c_DefaultID = 151
 Default / non-informative id 10010111 = 151 Run type: zero-suppressed, 2 Event type: global run, 0 DAQ mode: 6-samples, 2 Trigger invalid 111 = 7.
 
static size_t s_APVSampleMode = 6
 APV acquisition mode (3 or 6)
 
static size_t s_APVSampleBegin = 0
 first sample number for 3 sample acquisition mode (0 - 3)
 

Detailed Description

Function Documentation

◆ customize()

void customize ( H &  histogram,
VxdID  vxdID,
int  view 
)
private

customize the histogram with the sensor, view

customize the histogram with the sensor and view

Definition at line 192 of file SVDHistograms.h.

193  {
194  bool isU = view == UIndex;
195  std::string name = histogram.GetName();
196  customizeString(name, vxdID, isU);
197  histogram.SetName(name.c_str());
198 
199  std::string title = histogram.GetTitle();
200  customizeString(title, vxdID, isU);
201  histogram.SetTitle(title.c_str());
202 
203  std::string xAxis = histogram.GetXaxis()->GetTitle();
204  customizeString(xAxis, vxdID, isU);
205  histogram.SetXTitle(xAxis.c_str());
206 
207  std::string yAxis = histogram.GetYaxis()->GetTitle();
208  customizeString(yAxis, vxdID, isU);
209  histogram.SetYTitle(yAxis.c_str());
210 
211  std::string zAxis = histogram.GetZaxis()->GetTitle();
212  customizeString(zAxis, vxdID, isU);
213  histogram.SetZTitle(zAxis.c_str());
214 
215  }
void customizeString(std::string &base, const VxdID &vxdID, bool isU)
replaces layer ladder sensor view and apv with the current numbers
Definition: SVDHistograms.h:92

◆ SVDAPVHistograms()

SVDAPVHistograms ( const H &  templateAPV)
explicit

Use.

constructor, builds all histograms and customize them

Parameters
templateAPVto initialize all the histograms

Definition at line 151 of file SVDAPVHistograms.h.

152  {
153  m_defaultHistogram = new H(templateAPV);
154 
155  VXD::GeoCache& geoCache = VXD::GeoCache::getInstance();
156  for (auto layer : geoCache.getLayers(VXD::SensorInfoBase::SVD)) {
157  unsigned int layerNumber = layer.getLayerNumber();
158  if (m_histograms.size() <= layerNumber)
159  m_histograms.resize(layerNumber + 1);
160 
161  for (auto ladder : geoCache.getLadders(layer)) {
162  unsigned int ladderNumber = ladder.getLadderNumber();
163  if (m_histograms[layerNumber].size() <= ladderNumber)
164  m_histograms[layerNumber].resize(ladderNumber + 1);
165 
166  for (Belle2::VxdID sensor : geoCache.getSensors(ladder)) {
167  unsigned int sensorNumber = sensor.getSensorNumber();
168  if (m_histograms[layerNumber][ladderNumber].size() <= sensorNumber)
169  m_histograms[layerNumber][ladderNumber].resize(sensorNumber + 1);
170  m_histograms[layerNumber][ladderNumber][sensorNumber].resize(2);
171 
172  for (int view = VIndex ; view < UIndex + 1; view++) {
173  int nAPV = 6;
174  unsigned int viewNumber = 3;
175 
176  if (m_histograms[layerNumber][ladderNumber][view].size() < viewNumber)
177  m_histograms[layerNumber][ladderNumber][sensorNumber].resize(viewNumber);
178  m_histograms[layerNumber][ladderNumber][sensorNumber][view].resize(nAPV);
179  for (int apv = 0; apv < nAPV; apv ++) {
180 
181  H h = templateAPV;
182  customize(h, sensor, view, apv);
183  m_histograms[layerNumber][ladderNumber][sensorNumber][view][apv] = new H(h);
184  }
185  }
186  }
187  }
188  }
189  }
t_SVD m_histograms
the vector of vector ...
H * m_defaultHistogram
the default histogram
static GeoCache & getInstance()
Return a reference to the singleton instance.
Definition: GeoCache.cc:214
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
void customize(H &histogram, VxdID vxdID, int view, int apv)
customize the histogram with the sensor, view and APV numbers

◆ SVDHistograms()

SVDHistograms ( const H &  templateU3,
const H &  templateV3,
const H &  templateU456,
const H &  templateV456 
)

Use templates to initialize all the histograms.

constructor, builds all histograms and customize them

Parameters
templateU3for the layer 3 U side
templateV3for the layer 3 V side
templateU456for the layer 4 5 6 U side
templateV456for the layer 4 5 6 V side

Definition at line 156 of file SVDHistograms.h.