ATLAS Offline Software
Enumerations | Functions
LArProv Namespace Reference

Enumerations

enum  LArProvenance : uint16_t {
  PEAKAVG = 0x1, PEAKPARABOLA = 0x3, PEAKCUBIC = 0x4, PEAKOFC = 0x5,
  PEAKTILEINFO = 0x6, PEAKNN = 0x7, PATCHED = 0x8, RAMPCONST = 0x10,
  RAMPDB = 0x20, PEDSAMPLEZERO = 0x40, SCPASSBCIDMAX = 0x40, PEDDB = 0x80,
  DEFAULTRECO = PEAKOFC | RAMPDB | PEDDB, ITERCONVERGED = 0x0100, SCTIMEPASS = 0x0200, SATURATED = 0x0400,
  MASKED = 0x0800, DSPCALC = 0x1000, QTPRESENT = 0x2000
}
 

Functions

bool test (const uint16_t prov, const LArProvenance check)
 

Enumeration Type Documentation

◆ LArProvenance

enum LArProv::LArProvenance : uint16_t
Enumerator
PEAKAVG 
PEAKPARABOLA 
PEAKCUBIC 
PEAKOFC 
PEAKTILEINFO 
PEAKNN 
PATCHED 
RAMPCONST 
RAMPDB 
PEDSAMPLEZERO 
SCPASSBCIDMAX 
PEDDB 
DEFAULTRECO 
ITERCONVERGED 
SCTIMEPASS 
SATURATED 
MASKED 
DSPCALC 
QTPRESENT 

Definition at line 13 of file LArProvenance.h.

13  : uint16_t {
14 
15  PEAKAVG = 0x1, // Only used in early commissioning
16  PEAKPARABOLA = 0x3, // Only used in early commissioning
17  PEAKCUBIC = 0x4, // Only used in early commissioning
18  PEAKOFC = 0x5, // Default Run 1 - Run 3
19  PEAKTILEINFO = 0x6, // Only used in early commissioning
20  PEAKNN = 0x7, // Neural-Network peak reco (run 4 plans)
21  PATCHED = 0x8, // patched from the SuperCell container
22  RAMPCONST = 0x10, //use hard-coded constant Ramp value (only early commissioning)
23  RAMPDB = 0x20, //Ramp from DB (default)
24  PEDSAMPLEZERO = 0x40, //use ADC[0] as pedestal value (only early commissioning)
25  SCPASSBCIDMAX = 0x40, //Supercell peak finder (overlap with PEDSAMPLEZERO should not matter)
26  PEDDB = 0x80, //Pedestal from DB (default)
27 
28  DEFAULTRECO = PEAKOFC | RAMPDB | PEDDB, //0x00A5;
29  ITERCONVERGED = 0x0100, //Iteration convered (in case of OF-Iteration)
30  SCTIMEPASS = 0x0200, //Supercell inside time-window
31  SATURATED = 0x0400, //ADC 0 or 4096
32  MASKED = 0x0800, //Known noisy cell, E set to zero
33  DSPCALC = 0x1000, //Energy from online calculation
34  QTPRESENT = 0x2000, //Quality and time values are valid
35 
36  };

Function Documentation

◆ test()

bool LArProv::test ( const uint16_t  prov,
const LArProvenance  check 
)
inline

Definition at line 38 of file LArProvenance.h.

38  {
39  if (check & 0xF) {
40  //The first four bits are a number, require exact match
41  if ((prov & 0xF) != (check &0xF)) return false;
42  }
43  //The remaining bits are independent, check only if 'check' bits are set
44  return (((prov >>4) & (check >>4)) == (check >>4));
45  }
LArProv::PEDSAMPLEZERO
@ PEDSAMPLEZERO
Definition: LArProvenance.h:24
LArProv::PEAKOFC
@ PEAKOFC
Definition: LArProvenance.h:18
LArProv::SCPASSBCIDMAX
@ SCPASSBCIDMAX
Definition: LArProvenance.h:25
LArProv::PEAKAVG
@ PEAKAVG
Definition: LArProvenance.h:15
LArProv::RAMPCONST
@ RAMPCONST
Definition: LArProvenance.h:22
LArProv::PATCHED
@ PATCHED
Definition: LArProvenance.h:21
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
LArProv::QTPRESENT
@ QTPRESENT
Definition: LArProvenance.h:34
LArProv::DEFAULTRECO
@ DEFAULTRECO
Definition: LArProvenance.h:28
LArProv::SCTIMEPASS
@ SCTIMEPASS
Definition: LArProvenance.h:30
LArProv::DSPCALC
@ DSPCALC
Definition: LArProvenance.h:33
LArProv::PEAKNN
@ PEAKNN
Definition: LArProvenance.h:20
LArProv::PEDDB
@ PEDDB
Definition: LArProvenance.h:26
LArProv::MASKED
@ MASKED
Definition: LArProvenance.h:32
LArProv::RAMPDB
@ RAMPDB
Definition: LArProvenance.h:23
LArNewCalib_Delay_OFC_Cali.check
check
Definition: LArNewCalib_Delay_OFC_Cali.py:258
LArProv::PEAKTILEINFO
@ PEAKTILEINFO
Definition: LArProvenance.h:19
LArProv::ITERCONVERGED
@ ITERCONVERGED
Definition: LArProvenance.h:29
LArProv::PEAKCUBIC
@ PEAKCUBIC
Definition: LArProvenance.h:17
LArProv::PEAKPARABOLA
@ PEAKPARABOLA
Definition: LArProvenance.h:16
LArProv::SATURATED
@ SATURATED
Definition: LArProvenance.h:31