 |
Belle II Software
release-05-01-25
|
82 template<
class DBObjType>
86 theLabel.construct(DBObjType::getGlobalUniqueID(), element, param);
101 construct(100000 * dbObjId + element, param);
110 static void setComponents(
const std::set<unsigned short>& components)
149 operator int() {
return (
int)
label();}
154 operator unsigned int() {
return (
unsigned int)
label();}
179 void dump(
int level = 0)
const;
189 for (
unsigned int i =
tid; i <
maxTID; i++) {
190 if (it->second.get(i) !=
tid)
204 static unsigned int subrun = 0;
253 if (i >= start && i <= end)
270 if (i >= start && i <= end)
280 static std::map<gidTYPE, TimeInterval > intervals;
288 static std::map<gidTYPE, gidTYPE> dictionary;
gidTYPE arr_[maxTID+1]
Array of time ids.
static void setCurrentTimeInterval(gidTYPE time)
Sets current time id.
TimeInterval(gidTYPE TEIDPID, gidTYPE start, gidTYPE end)
Constructor for given validity interval.
bool isValid()
Is label valid? (non-zero)
int getEndOfValidity()
Get the last time id, where this label is valid.
bool getTimeFlag() const
Is label time-dependent?
Struct to hold intervals of validity.
gidTYPE getElementId() const
Returns the element id (like VxdID for silicon sensors) to identify sets of parameters in DB objects.
GlobalLabel()
Default constuctor. Members initialized in declaration.
static const gidTYPE maxGID
max internal id = 1.999.999.999
static gidTYPE getCurrentTimeInterval()
Get current time id.
static const gidTYPE eidOffest
Offset of detector element id = 100.
void set(gidTYPE start, gidTYPE end)
Set new parameter validity interval from start to end.
static const gidTYPE teidOffset
Offset of time dependent element(detector+parameter) = 100.
gidTYPE getTimeId() const
Get time id.
static const gidTYPE maxTIF
time-dep.
static unsigned int & getCurrentTimeIntervalRef()
Returns reference to current time id.
gidTYPE teidpid_
Time element id & parameter id.
static const gidTYPE tidOffset
Offset of time slice id = 1.000.000.
gidTYPE getUniqueId() const
Returns the global id identifing DB object for constantwith this label.
Class to convert to/from global labels for Millepede II to/from detector & parameter identificators.
gidTYPE makeEIDPID(gidTYPE eid_, gidTYPE pid_)
Helper to compose elemnt id & param id.
static std::set< unsigned short > m_components
Set of global ids of components for which to return non-zero labels.
void registerTimeDependent(gidTYPE start, gidTYPE end=maxTID)
Register this Detector element and parameter as time dependent with instance starting at "start" time...
gidTYPE get(gidTYPE timeid)
Get the start time id for validity interval valid at given timeid.
static const gidTYPE maxTID
max time slices for a parameter 1..999
static const gidTYPE tifOffset
Offset of time flag = 1.000.000.000.
static const gidTYPE maxLabel
Label and internal id ("gid") are the same numbers (label is signed but 0 and <0 values are invalid t...
static void clearTimeDependentParamaters()
Forget all previously registered time dependent parameters.
Abstract base class for different kinds of events.
static void setComponents(const std::set< unsigned short > &components)
Set which DB objects have non-zero labels (by their id)
unsigned int gidTYPE
shortcut for main data type (unsigned int)
static const gidTYPE maxEID
max 9.999.999 detector elements 1..9999999 (NOT time-dep-)
static const gidTYPE maxTEID
max time-dep.
static std::map< gidTYPE, gidTYPE > & getDictionary()
Reference to dictionary/map TEIDPID -> EIDPID.
static const gidTYPE pidOffset
parameter number are the last 2 decimal digits
gidTYPE tif
time identification flag
static GlobalLabel construct(gidTYPE element, gidTYPE param)
Construct label for given DB object (template argument) and its element and parameter.
int label()
Returns encoded Pede label.
gidTYPE getParameterId() const
Get id of alignment/calibration parameter.
void dump(int level=0) const
Dumps the label to std::cout.
gidTYPE makeTEIDPID(gidTYPE teid_, gidTYPE pid_)
Helper to compose time elemnt id & param id.
static std::map< gidTYPE, TimeInterval > & getTimeIntervals()
Reference to map EIDPID -> (TEIDPID, time intervals)
static const gidTYPE maxPID
max 99 parameter types 1..99
gidTYPE teidpid()
Get composed time element id & param id.
gidTYPE setParameterId(gidTYPE paramId)
Usefull setter to quickly change only the parameter id and return back the encoded label (for use in ...