ATLAS Offline Software
Loading...
Searching...
No Matches
InDet::TRT_SeededSpacePointFinder_ATL::EventData Class Reference

#include <TRT_SeededSpacePointFinder_ATL.h>

Inheritance diagram for InDet::TRT_SeededSpacePointFinder_ATL::EventData:
Collaboration diagram for InDet::TRT_SeededSpacePointFinder_ATL::EventData:

Public Member Functions

 EventData ()
 ~EventData ()

Protected Member Functions

void buildFrameWork (double r_rmax, double r_rstep, double ptmin)
void erase ()

Static Protected Member Functions

static EventDatagetPrivateEventData (InDet::ITRT_SeededSpacePointFinder::IEventData &virt_event_data)
static void throwMismtach ()

Protected Attributes

int m_r_size {}
std::list< std::pair< const Trk::SpacePoint *, int > > m_rf_Sorted [530]
std::list< std::pair< const Trk::SpacePoint *, int > > m_newRfi_Sorted
int m_ns =0
int m_fNmax =0
int m_nr =0
int * m_r_index =nullptr
int * m_r_map =nullptr
int m_nrf =0
int m_rf_index [530] {}
int m_rf_map [530] {}
double m_sF {}

Friends

class TRT_SeededSpacePointFinder_ATL

Detailed Description

Definition at line 159 of file TRT_SeededSpacePointFinder_ATL.h.

Constructor & Destructor Documentation

◆ EventData()

◆ ~EventData()

InDet::TRT_SeededSpacePointFinder_ATL::EventData::~EventData ( )
inline

Definition at line 174 of file TRT_SeededSpacePointFinder_ATL.h.

174 {
175 if(m_r_index) delete [] m_r_index;
176 if(m_r_map ) delete [] m_r_map ;
177 }

Member Function Documentation

◆ buildFrameWork()

void InDet::TRT_SeededSpacePointFinder_ATL::EventData::buildFrameWork ( double r_rmax,
double r_rstep,
double ptmin )
protected

Definition at line 496 of file TRT_SeededSpacePointFinder_ATL.cxx.

497{
498
499 m_ns = m_nr = m_nrf = 0;
500
501 // Build radius sorted containers
502 //
503 m_r_size = int((r_rmax+.1)/r_rstep);
504 m_r_index = new int[m_r_size];
505 m_r_map = new int[m_r_size];
506 m_nr = 0; for(int i=0; i!=m_r_size; ++i) {m_r_index[i]=0; m_r_map[i]=0;}
507
508 // Build radius-azimuthal sorted containers
509 //
510 const double pi2 = 2.*M_PI ;
511 const int NFmax = 530 ;
512 const double sFmax = double(NFmax )/pi2;
513 m_sF = ptmin /60. ; if(m_sF >sFmax ) m_sF = sFmax ;
514 m_fNmax = int(pi2*m_sF); if(m_fNmax >=NFmax) m_fNmax = NFmax-1;
515 m_nrf = 0; for(int i=0; i!= 530; ++i) {m_rf_index [i]=0; m_rf_map [i]=0;}
516
517}
#define M_PI

◆ erase()

void InDet::TRT_SeededSpacePointFinder_ATL::EventData::erase ( )
protected

Definition at line 563 of file TRT_SeededSpacePointFinder_ATL.cxx.

564{
565
566 for(int i=0; i!=m_nrf; ++i) {
567 int n = m_rf_index[i]; m_rf_map[n] = 0;
568 m_rf_Sorted[n].erase(m_rf_Sorted[n].begin(),m_rf_Sorted[n].end());
569 }
570
571 m_ns = 0;
572 m_nr = 0;
573 m_nrf = 0;
574}
std::list< std::pair< const Trk::SpacePoint *, int > > m_rf_Sorted[530]

◆ getPrivateEventData()

Definition at line 19 of file EventDataBase.h.

20 {
21 T_Derived *event_data = dynamic_cast<T_Derived *>(&virt_event_data);
22 if (!event_data) { throwMismtach(); }
23 return *event_data;
24 }
Base for a helper class to pass mutable storage to tools.

◆ throwMismtach()

void Trk::EventDataBase< EventData, InDet::ITRT_SeededSpacePointFinder::IEventData >::throwMismtach ( )
inlinestaticprotectedinherited

Definition at line 26 of file EventDataBase.h.

26 {
27 throw std::logic_error(std::string("EventData mismatch, expecting ")
28 +typeid(T_Derived).name() + "::EventData.");
29 }

◆ TRT_SeededSpacePointFinder_ATL

friend class TRT_SeededSpacePointFinder_ATL
friend

Definition at line 161 of file TRT_SeededSpacePointFinder_ATL.h.

Member Data Documentation

◆ m_fNmax

int InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_fNmax =0
protected

Definition at line 188 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_newRfi_Sorted

std::list<std::pair<const Trk::SpacePoint*,int> > InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_newRfi_Sorted
protected

Definition at line 185 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_nr

int InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_nr =0
protected

Definition at line 189 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_nrf

int InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_nrf =0
protected

Definition at line 190 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_ns

int InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_ns =0
protected

Definition at line 187 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_r_index

int* InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_r_index =nullptr
protected

Definition at line 189 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_r_map

int* InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_r_map =nullptr
protected

Definition at line 189 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_r_size

int InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_r_size {}
protected

Definition at line 183 of file TRT_SeededSpacePointFinder_ATL.h.

183{} ;

◆ m_rf_index

int InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_rf_index[530] {}
protected

Definition at line 190 of file TRT_SeededSpacePointFinder_ATL.h.

190{}, m_rf_map [ 530]{} ;

◆ m_rf_map

int InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_rf_map[530] {}
protected

Definition at line 190 of file TRT_SeededSpacePointFinder_ATL.h.

190{}, m_rf_map [ 530]{} ;

◆ m_rf_Sorted

std::list<std::pair<const Trk::SpacePoint*,int> > InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_rf_Sorted[530]
protected

Definition at line 184 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_sF

double InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_sF {}
protected

Definition at line 191 of file TRT_SeededSpacePointFinder_ATL.h.

191{};

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