ATLAS Offline Software
PadTrigger.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 #include <iostream>
10 namespace NSWL1 {
11 
13  return m_pads.size() ? this->firstPad()->BC_Tag() : 0x0;
14 }
15 
16 int PadTrigger::sideId() const {
17  return m_pads.size() ? this->firstPad()->sideId() : -1;
18 }
19 
20 int PadTrigger::sectorId() const {
21  return m_pads.size() ? this->firstPad()->sectorId() : -1;
22 }
23 
25  return m_pads.size() ? this->firstPad()->triggerSectorNumber() : -1;
26 }
27 
28 
29 std::shared_ptr<PadData> PadTrigger::firstPad() const{ //returns the first non-null pad from inner wedge
30  if(this->m_pads.at(0)->padNumber()!=nullPadNumber) return this->m_pads.at(0);
31  return this->m_pads.at(1);
32 }
33 
34 std::shared_ptr<PadData> PadTrigger::firstPadInner() const{//returns the first non-null pad from inner wedge
35  return this->firstPad();
36 }
37 
38 std::shared_ptr<PadData> PadTrigger::firstPadOuter() const{//returns the first non-null pad from outer wedge
39  if(this->m_pads.at(4)->padNumber()!=nullPadNumber) return this->m_pads.at(4);
40  return this->m_pads.at(5);
41 }
42 
43 
44 
45 } // NSWL1
46 
47 
tdr_compat_enum.h
PadData.h
NSWL1::PadTrigger::firstPadInner
std::shared_ptr< PadData > firstPadInner() const
Definition: PadTrigger.cxx:34
NSWL1::PadTrigger::bctag
uint16_t bctag() const
Definition: PadTrigger.cxx:12
NSWL1::PadTrigger::triggerSectorNumber
int triggerSectorNumber() const
! sectorId of the first pad in the trigger
Definition: PadTrigger.cxx:24
NSWL1::PadTrigger::m_pads
std::vector< std::shared_ptr< PadData > > m_pads
Definition: PadTrigger.h:54
NSWL1::PadTrigger::sectorId
int sectorId() const
! sideId of the first pad in the trigger
Definition: PadTrigger.cxx:20
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
NSWL1::PadTrigger::firstPadOuter
std::shared_ptr< PadData > firstPadOuter() const
Definition: PadTrigger.cxx:38
NSWL1::nullPadNumber
const int nullPadNumber
Definition: tdr_compat_enum.h:21
NSWL1::PadTrigger::firstPad
std::shared_ptr< PadData > firstPad() const
Definition: PadTrigger.cxx:29
PadTrigger.h
NSWL1::PadTrigger::sideId
int sideId() const
Definition: PadTrigger.cxx:16
NSWL1
A trigger trigger candidate for a stgc sector.
Definition: NSWL1Simulation.cxx:9