ATLAS Offline Software
Loading...
Searching...
No Matches
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.

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}
static bool matchCalo(CaloId id, CaloId idSpec)
Definition CaloId.cxx:188
@ UNKNOWN_CALO
Definition CaloId.h:23

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: