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 159 of file TRT_SeededSpacePointFinder_ATL.h.

Constructor & Destructor Documentation

◆ EventData()

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

Definition at line 163 of file TRT_SeededSpacePointFinder_ATL.h.

164  : m_r_size(0),
165  m_ns(0),
166  m_fNmax(0),
167  m_nr(0),
168  m_nrf(0),
169  m_sF(0.)
170  {
171  m_r_index = 0 ;
172  m_r_map = 0 ;
173  }

◆ ~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 }

◆ 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;
569  }
570 
571  m_ns = 0;
572  m_nr = 0;
573  m_nrf = 0;
574 }

◆ 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 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.

◆ m_rf_index

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

Definition at line 190 of file TRT_SeededSpacePointFinder_ATL.h.

◆ m_rf_map

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

Definition at line 190 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 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.


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:190
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_sF
double m_sF
Definition: TRT_SeededSpacePointFinder_ATL.h:191
TrigJetMonitorAlgorithm.ptmin
ptmin
Definition: TrigJetMonitorAlgorithm.py:1226
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:187
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_rf_index
int m_rf_index[530]
Definition: TRT_SeededSpacePointFinder_ATL.h:190
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:190
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_r_index
int * m_r_index
Definition: TRT_SeededSpacePointFinder_ATL.h:189
lumiFormat.i
int i
Definition: lumiFormat.py:85
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:184
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_r_map
int * m_r_map
Definition: TRT_SeededSpacePointFinder_ATL.h:189
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_fNmax
int m_fNmax
Definition: TRT_SeededSpacePointFinder_ATL.h:188
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_r_size
int m_r_size
Definition: TRT_SeededSpacePointFinder_ATL.h:183
InDet::TRT_SeededSpacePointFinder_ATL::EventData::m_nr
int m_nr
Definition: TRT_SeededSpacePointFinder_ATL.h:189