ATLAS Offline Software
Loading...
Searching...
No Matches
LArRawDetSelector Class Reference

This class provide access to LArRawChannels in each sub detector Input: LAr Detector Identifier Allowed are lar_em lar_hec lar_fcal. More...

#include <LArRawDetSelector.h>

Collaboration diagram for LArRawDetSelector:

Public Member Functions

 LArRawDetSelector (const LArRawChannelContainer *c=NULL)
virtual ~LArRawDetSelector ()
void setDet (const Identifier &id)
void setDet (const HWIdentifier &chid)
virtual bool select (const LArRawChannel *rawchan)

Private Attributes

const LArOnlineIDm_onlineID
const CaloCell_IDm_caloCellID
bool m_em
bool m_hec
bool m_fcal

Detailed Description

This class provide access to LArRawChannels in each sub detector Input: LAr Detector Identifier Allowed are lar_em lar_hec lar_fcal.

Definition at line 22 of file LArRawDetSelector.h.

Constructor & Destructor Documentation

◆ LArRawDetSelector()

LArRawDetSelector::LArRawDetSelector ( const LArRawChannelContainer * c = NULL)

Definition at line 16 of file LArRawDetSelector.cxx.

17 : m_onlineID(nullptr),
18 m_caloCellID(nullptr),
19 m_em(false),
20 m_hec(false),
21 m_fcal(false)
22{
23 SmartIF<StoreGateSvc> detStore{Gaudi::svcLocator()->service("DetectorStore")};
24
25 detStore->retrieve(m_onlineID).orThrow(
26 "Faild to get LArOnlineID helper");
27
28 detStore->retrieve(m_caloCellID).orThrow(
29 "Faild to get LArOnlineID helper");
30}
const CaloCell_ID * m_caloCellID
const LArOnlineID * m_onlineID

◆ ~LArRawDetSelector()

virtual LArRawDetSelector::~LArRawDetSelector ( )
inlinevirtual

Definition at line 27 of file LArRawDetSelector.h.

27{}

Member Function Documentation

◆ select()

bool LArRawDetSelector::select ( const LArRawChannel * rawchan)
virtual

Definition at line 50 of file LArRawDetSelector.cxx.

50 {
51
52 const HWIdentifier chid=rc->identify();
53
54 if(m_em && (m_onlineID->isEMBchannel(chid) || m_onlineID->isEMECchannel(chid))) return true;
55
56 if(m_hec && m_onlineID->isHECchannel(chid)) return true;
57
58 if(m_fcal && m_onlineID->isFCALchannel(chid)) return true;
59
60 return false;
61}
static Double_t rc

◆ setDet() [1/2]

void LArRawDetSelector::setDet ( const HWIdentifier & chid)

Definition at line 40 of file LArRawDetSelector.cxx.

40 {
41
42 m_em = m_onlineID->isEMBchannel(chid) || m_onlineID->isEMECchannel(chid);
43 m_hec = m_onlineID->isHECchannel(chid);
44 m_fcal = m_onlineID->isFCALchannel(chid);
45
46}

◆ setDet() [2/2]

void LArRawDetSelector::setDet ( const Identifier & id)

Definition at line 32 of file LArRawDetSelector.cxx.

32 {
33
34 m_em = m_caloCellID->is_lar_em(id) ;
35 m_hec = m_caloCellID->is_lar_hec(id) ;
36 m_fcal = m_caloCellID->is_lar_fcal(id) ;
37
38}

Member Data Documentation

◆ m_caloCellID

const CaloCell_ID* LArRawDetSelector::m_caloCellID
private

Definition at line 36 of file LArRawDetSelector.h.

◆ m_em

bool LArRawDetSelector::m_em
private

Definition at line 37 of file LArRawDetSelector.h.

◆ m_fcal

bool LArRawDetSelector::m_fcal
private

Definition at line 39 of file LArRawDetSelector.h.

◆ m_hec

bool LArRawDetSelector::m_hec
private

Definition at line 38 of file LArRawDetSelector.h.

◆ m_onlineID

const LArOnlineID* LArRawDetSelector::m_onlineID
private

Definition at line 35 of file LArRawDetSelector.h.


The documentation for this class was generated from the following files: