ATLAS Offline Software
Classes | Public Member Functions | Public Attributes | List of all members
TrigFTF_GNN_EtaBin Class Reference

#include <GNN_DataStorage.h>

Collaboration diagram for TrigFTF_GNN_EtaBin:

Classes

struct  CompareByPhi
 

Public Member Functions

 TrigFTF_GNN_EtaBin ()
 
 ~TrigFTF_GNN_EtaBin ()
 
void sortByPhi ()
 
void initializeNodes ()
 
bool empty () const
 
void generatePhiIndexing (float)
 

Public Attributes

std::vector< const TrigSiSpacePointBase * > m_vn
 
std::vector< std::pair< float, unsigned int > > m_vPhiNodes
 
std::vector< std::vector< unsigned int > > m_in
 
std::vector< std::array< float, 5 > > m_params
 

Detailed Description

Definition at line 21 of file GNN_DataStorage.h.

Constructor & Destructor Documentation

◆ TrigFTF_GNN_EtaBin()

TrigFTF_GNN_EtaBin::TrigFTF_GNN_EtaBin ( )

Definition at line 15 of file GNN_DataStorage.cxx.

15  {
16  m_in.clear();
17  m_vn.clear();
18  m_params.clear();
19 }

◆ ~TrigFTF_GNN_EtaBin()

TrigFTF_GNN_EtaBin::~TrigFTF_GNN_EtaBin ( )

Definition at line 21 of file GNN_DataStorage.cxx.

21  {
22  m_in.clear();
23  m_vn.clear();
24  m_params.clear();
25 }

Member Function Documentation

◆ empty()

bool TrigFTF_GNN_EtaBin::empty ( ) const
inline

Definition at line 37 of file GNN_DataStorage.h.

37  {
38  return m_vn.empty();
39  }

◆ generatePhiIndexing()

void TrigFTF_GNN_EtaBin::generatePhiIndexing ( float  dphi)

Definition at line 46 of file GNN_DataStorage.cxx.

46  {
47 
48  for(unsigned int nIdx=0;nIdx<m_vn.size();nIdx++) {
49 
50  float phi = m_params[nIdx][2];
51  if(phi <= M_PI-dphi) continue;
52  m_vPhiNodes.push_back(std::pair<float, unsigned int>(phi - 2*M_PI, nIdx));
53 
54  }
55 
56  for(unsigned int nIdx=0;nIdx<m_vn.size();nIdx++) {
57  float phi = m_params[nIdx][2];
58  m_vPhiNodes.push_back(std::pair<float, unsigned int>(phi, nIdx));
59  }
60 
61  for(unsigned int nIdx=0;nIdx<m_vn.size();nIdx++) {
62 
63  float phi = m_params[nIdx][2];
64  if(phi >= -M_PI + dphi) break;
65  m_vPhiNodes.push_back(std::pair<float, unsigned int>(phi + 2*M_PI, nIdx));
66  }
67 }

◆ initializeNodes()

void TrigFTF_GNN_EtaBin::initializeNodes ( )

Definition at line 31 of file GNN_DataStorage.cxx.

31  {
32 
33  m_params.resize(m_vn.size());
34  m_in.resize(m_vn.size());
35 
36  for(unsigned int nIdx=0;nIdx<m_vn.size();nIdx++) {
37  m_in[nIdx].reserve(50);//reasonably high number of incoming edges per node
38  m_params[nIdx][0] = -100.0;//default cut on cot(theta)
39  m_params[nIdx][1] = 100.0; //default cut on cot(theta)
40  m_params[nIdx][2] = m_vn[nIdx]->phi();
41  m_params[nIdx][3] = m_vn[nIdx]->r();
42  m_params[nIdx][4] = m_vn[nIdx]->z();
43  }
44 }

◆ sortByPhi()

void TrigFTF_GNN_EtaBin::sortByPhi ( )

Definition at line 27 of file GNN_DataStorage.cxx.

27  {
29 }

Member Data Documentation

◆ m_in

std::vector<std::vector<unsigned int> > TrigFTF_GNN_EtaBin::m_in

Definition at line 45 of file GNN_DataStorage.h.

◆ m_params

std::vector<std::array<float,5> > TrigFTF_GNN_EtaBin::m_params

Definition at line 46 of file GNN_DataStorage.h.

◆ m_vn

std::vector<const TrigSiSpacePointBase*> TrigFTF_GNN_EtaBin::m_vn

Definition at line 43 of file GNN_DataStorage.h.

◆ m_vPhiNodes

std::vector<std::pair<float, unsigned int> > TrigFTF_GNN_EtaBin::m_vPhiNodes

Definition at line 44 of file GNN_DataStorage.h.


The documentation for this class was generated from the following files:
TrigFTF_GNN_EtaBin::m_in
std::vector< std::vector< unsigned int > > m_in
Definition: GNN_DataStorage.h:45
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
TrigFTF_GNN_EtaBin::m_vn
std::vector< const TrigSiSpacePointBase * > m_vn
Definition: GNN_DataStorage.h:43
M_PI
#define M_PI
Definition: ActiveFraction.h:11
TrigFTF_GNN_EtaBin::CompareByPhi
Definition: GNN_DataStorage.h:24
TrigFTF_GNN_EtaBin::m_vPhiNodes
std::vector< std::pair< float, unsigned int > > m_vPhiNodes
Definition: GNN_DataStorage.h:44
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
TrigFTF_GNN_EtaBin::m_params
std::vector< std::array< float, 5 > > m_params
Definition: GNN_DataStorage.h:46