Belle II Software  release-05-02-19
SVDCrossTalkFinderHelperFunctions.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: James Webb *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/datastore/StoreArray.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 
16 #include <vxd/dataobjects/VxdID.h>
17 
18 namespace Belle2 {
29  inline void occupancyPDFName(const VxdID& sensor, int side, std::string& PDFName)
30  {
31 
32  int layer = sensor.getLayerNumber();
33  int ladder = sensor.getLadderNumber();
34  int sens = sensor.getSensorNumber();
35 
36 
37  PDFName = std::to_string(layer) + "." + std::to_string(ladder) + "." + std::to_string(sens) + "." + std::to_string(side);
38 
39 
40  }
42 } //Belle2 namespace
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::occupancyPDFName
void occupancyPDFName(const VxdID &sensor, int side, std::string &PDFName)
Function to maintain common naming convention between calibration occupancy file generation and occup...
Definition: SVDCrossTalkFinderHelperFunctions.h:37