ATLAS Offline Software
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
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 154 of file TRT_SeededSpacePointFinder_ATL.h.

Constructor & Destructor Documentation

◆ EventData()

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

Definition at line 158 of file TRT_SeededSpacePointFinder_ATL.h.

159  : m_r_size(0),
160  m_ns(0),
161  m_fNmax(0),
162  m_nr(0),
163  m_nrf(0),
164  m_sF(0.)
165  {
166  m_r_index = 0 ;
167  m_r_map = 0 ;
168  }

◆ ~EventData()

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

Definition at line 169 of file TRT_SeededSpacePointFinder_ATL.h.

169  {
170  if(m_r_index) delete [] m_r_index;
171  if(m_r_map ) delete [] m_r_map ;
172  }

Member Function Documentation

◆ buildFrameWork()

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

Definition at line 525 of file TRT_SeededSpacePointFinder_ATL.cxx.

526 {
527 
528  m_ns = m_nr = m_nrf = 0;
529 
530  // Build radius sorted containers
531  //
532  m_r_size = int((r_rmax+.1)/r_rstep);
533  m_r_index = new int[m_r_size];
534  m_r_map = new int[m_r_size];
535  m_nr = 0; for(int i=0; i!=m_r_size; ++i) {m_r_index[i]=0; m_r_map[i]=0;}
536 
537  // Build radius-azimuthal sorted containers
538  //
539  const double pi2 = 2.*M_PI ;
540  const int NFmax = 530 ;
541  const double sFmax = double(NFmax )/pi2;
542  m_sF = ptmin /60. ; if(m_sF >sFmax ) m_sF = sFmax ;
543  m_fNmax = int(pi2*m_sF); if(m_fNmax >=NFmax) m_fNmax = NFmax-1;
544  m_nrf = 0; for(int i=0; i!= 530; ++i) {m_rf_index [i]=0; m_rf_map [i]=0;}
545 
546 }

◆ erase()

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

Definition at line 592 of file TRT_SeededSpacePointFinder_ATL.cxx.

593 {
594 
595  for(int i=0; i!=m_nrf; ++i) {
596  int n = m_rf_index[i]; m_rf_map[n] = 0;
598  }
599 
600  m_ns = 0;
601  m_nr = 0;
602  m_nrf = 0;
603 }

◆ getPrivateEventData()

static EventData & Trk::EventDataBase< EventData , InDet::ITRT_SeededSpacePointFinder::IEventData >::getPrivateEventData ( InDet::ITRT_SeededSpacePointFinder::IEventData virt_event_data)
inlinestaticprotectedinherited

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  }

◆ throwMismtach()

static 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  }

Friends And Related Function Documentation

◆ TRT_SeededSpacePointFinder_ATL

friend class TRT_SeededSpacePointFinder_ATL
friend

Definition at line 156 of file TRT_SeededSpacePointFinder_ATL.h.

Member Data Documentation

◆ m_fNmax

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

Definition at line 183 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 180 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_nr

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

Definition at line 184 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_nrf

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

Definition at line 185 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_ns

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

Definition at line 182 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_r_index

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

Definition at line 184 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_r_map

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

Definition at line 184 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_r_size

int InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_r_size
protected

Definition at line 178 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_rf_index

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

Definition at line 185 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_rf_map

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

Definition at line 185 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_rf_Sorted

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

Definition at line 179 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_sF

double InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_sF
protected

Definition at line 186 of file TRT_SeededSpacePointFinder_ATL.h.


The documentation for this class was generated from the following files:
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_nrf
int m_nrf
Definition: TRT_SeededSpacePointFinder_ATL.h:185
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_sF
double m_sF
Definition: TRT_SeededSpacePointFinder_ATL.h:186
TrigJetMonitorAlgorithm.ptmin
ptmin
Definition: TrigJetMonitorAlgorithm.py:1081
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
Trk::EventDataBase< EventData, InDet::ITRT_SeededSpacePointFinder::IEventData >::throwMismtach
static void throwMismtach()
Definition: EventDataBase.h:26
python.PhysicalConstants.pi2
float pi2
Definition: PhysicalConstants.py:52
M_PI
#define M_PI
Definition: ActiveFraction.h:11
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_ns
int m_ns
Definition: TRT_SeededSpacePointFinder_ATL.h:182
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_rf_index
int m_rf_index[530]
Definition: TRT_SeededSpacePointFinder_ATL.h:185
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_rf_map
int m_rf_map[530]
Definition: TRT_SeededSpacePointFinder_ATL.h:185
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_r_index
int * m_r_index
Definition: TRT_SeededSpacePointFinder_ATL.h:184
lumiFormat.i
int i
Definition: lumiFormat.py:92
beamspotman.n
n
Definition: beamspotman.py:731
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_rf_Sorted
std::list< std::pair< const Trk::SpacePoint *, int > > m_rf_Sorted[530]
Definition: TRT_SeededSpacePointFinder_ATL.h:179
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_r_map
int * m_r_map
Definition: TRT_SeededSpacePointFinder_ATL.h:184
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_fNmax
int m_fNmax
Definition: TRT_SeededSpacePointFinder_ATL.h:183
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_r_size
int m_r_size
Definition: TRT_SeededSpacePointFinder_ATL.h:178
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_nr
int m_nr
Definition: TRT_SeededSpacePointFinder_ATL.h:184