ATLAS Offline Software
Loading...
Searching...
No Matches
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 , DEADFEB = 0x4000
}

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 
DEADFEB 

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 SuperCells or neighbors
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 DEADFEB = 0x4000, //Front-End board broken or inactive
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 }