ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
LArSamples::ChannelSpec Struct Reference

#include <FilterParams.h>

Collaboration diagram for LArSamples::ChannelSpec:

Public Member Functions

 ChannelSpec (CaloId cal, unsigned int ft, unsigned int s, unsigned int c)
 
bool match (const CellInfo &info) const
 

Public Attributes

CaloId calo
 
int feedThrough
 
int slot
 
int channel
 

Detailed Description

Definition at line 28 of file FilterParams.h.

Constructor & Destructor Documentation

◆ ChannelSpec()

LArSamples::ChannelSpec::ChannelSpec ( CaloId  cal,
unsigned int  ft,
unsigned int  s,
unsigned int  c 
)
inline

Definition at line 29 of file FilterParams.h.

29  :
30  calo(cal), feedThrough(ft), slot(s), channel(c) { }

Member Function Documentation

◆ match()

bool ChannelSpec::match ( const CellInfo info) const

Definition at line 24 of file FilterParams.cxx.

25 {
26  if (channel >= 0 && info.channel() != channel) return false;
27  if (feedThrough >= 0 && info.feedThrough() != feedThrough) return false;
28  if (slot >= 0 && info.slot() != slot) return false;
29  if (calo != UNKNOWN_CALO && !Id::matchCalo(info.calo(), calo)) return false;
30  return true;
31 }

Member Data Documentation

◆ calo

CaloId LArSamples::ChannelSpec::calo

Definition at line 32 of file FilterParams.h.

◆ channel

int LArSamples::ChannelSpec::channel

Definition at line 33 of file FilterParams.h.

◆ feedThrough

int LArSamples::ChannelSpec::feedThrough

Definition at line 33 of file FilterParams.h.

◆ slot

int LArSamples::ChannelSpec::slot

Definition at line 33 of file FilterParams.h.


The documentation for this struct was generated from the following files:
grepfile.info
info
Definition: grepfile.py:38
LArSamples::ChannelSpec::feedThrough
int feedThrough
Definition: FilterParams.h:33
PlotCalibFromCool.ft
ft
Definition: PlotCalibFromCool.py:329
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
LArSamples::Id::matchCalo
static bool matchCalo(CaloId id, CaloId idSpec)
Definition: CaloId.cxx:188
LArSamples::ChannelSpec::calo
CaloId calo
Definition: FilterParams.h:32
LArSamples::ChannelSpec::channel
int channel
Definition: FilterParams.h:33
LArSamples::UNKNOWN_CALO
@ UNKNOWN_CALO
Definition: CaloId.h:23
LArSamples::ChannelSpec::slot
int slot
Definition: FilterParams.h:33
python.compressB64.c
def c
Definition: compressB64.py:93