ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TIDA::Roi Class Reference

#include <TIDARoi.h>

Inheritance diagram for TIDA::Roi:
Collaboration diagram for TIDA::Roi:

Public Member Functions

 Roi ()
 
 Roi (const TIDARoiDescriptor &roi)
 
virtual ~Roi ()
 
const TIDARoiDescriptorroi () const
 access the roi information More...
 
TIDARoiDescriptorroi ()
 
void addTracks (const std::vector< TIDA::Track > &tracks)
 accessors for the track vector More...
 
void addTracks (const std::vector< TIDA::Track * > &trackp)
 
const std::vector< TIDA::Track > & tracks () const
 
std::vector< TIDA::Track > & tracks ()
 
const std::vector< TIDA::Vertex > & vertices () const
 access the vertices More...
 
std::vector< TIDA::Vertex > & vertices ()
 
void addVertex (const TIDA::Vertex &v)
 
void addVertices (const std::vector< TIDA::Vertex > &v)
 
const std::vector< TrackTrigObject > & objects () const
 access the generic objects More...
 
std::vector< TrackTrigObject > & objects ()
 
void addObject (const TrackTrigObject &o)
 
void addObjects (const std::vector< TrackTrigObject > &ob)
 
const std::vector< double > & user () const
 access the user data More...
 
std::vector< double > & user ()
 
void addUserData (const std::vector< double > &user)
 
void clear ()
 clean out everything More...
 

Private Attributes

TIDARoiDescriptor m_roi
 
std::vector< TIDA::Trackm_tracks
 roi parameters More...
 
std::vector< TIDA::Vertexm_vertices
 tracks in this roi More...
 
std::vector< double > m_user
 vertices More...
 
std::vector< TrackTrigObjectm_objects
 user vector More...
 

Detailed Description

Definition at line 31 of file TIDARoi.h.

Constructor & Destructor Documentation

◆ Roi() [1/2]

TIDA::Roi::Roi ( )

◆ Roi() [2/2]

TIDA::Roi::Roi ( const TIDARoiDescriptor roi)

Definition at line 17 of file TIDARoi.cxx.

17 : m_roi(roi) { }

◆ ~Roi()

TIDA::Roi::~Roi ( )
virtual

Definition at line 19 of file TIDARoi.cxx.

19 { }

Member Function Documentation

◆ addObject()

void TIDA::Roi::addObject ( const TrackTrigObject o)
inline

Definition at line 64 of file TIDARoi.h.

64 { m_objects.push_back(o); }

◆ addObjects()

void TIDA::Roi::addObjects ( const std::vector< TrackTrigObject > &  ob)
inline

Definition at line 65 of file TIDARoi.h.

65 { m_objects.insert( m_objects.end(), ob.begin(), ob.end() ); }

◆ addTracks() [1/2]

void TIDA::Roi::addTracks ( const std::vector< TIDA::Track * > &  trackp)

Definition at line 23 of file TIDARoi.cxx.

23  {
24  m_tracks.clear();
25  m_tracks.reserve(trackp.size());
26  for ( unsigned i=0 ; i<trackp.size() ; i++ ) m_tracks.push_back(*trackp[i]);
27 }

◆ addTracks() [2/2]

void TIDA::Roi::addTracks ( const std::vector< TIDA::Track > &  tracks)
inline

accessors for the track vector

Definition at line 46 of file TIDARoi.h.

46  {
47  m_tracks = tracks;
48  }

◆ addUserData()

void TIDA::Roi::addUserData ( const std::vector< double > &  user)
inline

Definition at line 70 of file TIDARoi.h.

70 { m_user = user; }

◆ addVertex()

void TIDA::Roi::addVertex ( const TIDA::Vertex v)
inline

Definition at line 58 of file TIDARoi.h.

58 { m_vertices.push_back(v); }

◆ addVertices()

void TIDA::Roi::addVertices ( const std::vector< TIDA::Vertex > &  v)
inline

Definition at line 59 of file TIDARoi.h.

59 { m_vertices = v; }

◆ clear()

void TIDA::Roi::clear ( )
inline

clean out everything

Definition at line 74 of file TIDARoi.h.

74  {
75  m_tracks.clear();
76  m_user.clear();
77  m_objects.clear();
78  m_vertices.clear();
79  }

◆ objects() [1/2]

std::vector<TrackTrigObject>& TIDA::Roi::objects ( )
inline

Definition at line 63 of file TIDARoi.h.

63 { return m_objects; }

◆ objects() [2/2]

const std::vector<TrackTrigObject>& TIDA::Roi::objects ( ) const
inline

access the generic objects

Definition at line 62 of file TIDARoi.h.

62 { return m_objects; }

◆ roi() [1/2]

TIDARoiDescriptor& TIDA::Roi::roi ( )
inline

Definition at line 43 of file TIDARoi.h.

43 { return m_roi; }

◆ roi() [2/2]

const TIDARoiDescriptor& TIDA::Roi::roi ( ) const
inline

access the roi information

Definition at line 42 of file TIDARoi.h.

42 { return m_roi; }

◆ tracks() [1/2]

std::vector<TIDA::Track>& TIDA::Roi::tracks ( )
inline

Definition at line 53 of file TIDARoi.h.

53 { return m_tracks; }

◆ tracks() [2/2]

const std::vector<TIDA::Track>& TIDA::Roi::tracks ( ) const
inline

Definition at line 52 of file TIDARoi.h.

52 { return m_tracks; }

◆ user() [1/2]

std::vector<double>& TIDA::Roi::user ( )
inline

Definition at line 69 of file TIDARoi.h.

69 { return m_user; }

◆ user() [2/2]

const std::vector<double>& TIDA::Roi::user ( ) const
inline

access the user data

Definition at line 68 of file TIDARoi.h.

68 { return m_user; }

◆ vertices() [1/2]

std::vector<TIDA::Vertex>& TIDA::Roi::vertices ( )
inline

Definition at line 57 of file TIDARoi.h.

57 { return m_vertices; }

◆ vertices() [2/2]

const std::vector<TIDA::Vertex>& TIDA::Roi::vertices ( ) const
inline

access the vertices

Definition at line 56 of file TIDARoi.h.

56 { return m_vertices; }

Member Data Documentation

◆ m_objects

std::vector<TrackTrigObject> TIDA::Roi::m_objects
private

user vector

Definition at line 90 of file TIDARoi.h.

◆ m_roi

TIDARoiDescriptor TIDA::Roi::m_roi
private

Definition at line 83 of file TIDARoi.h.

◆ m_tracks

std::vector<TIDA::Track> TIDA::Roi::m_tracks
private

roi parameters

Definition at line 85 of file TIDARoi.h.

◆ m_user

std::vector<double> TIDA::Roi::m_user
private

vertices

Definition at line 89 of file TIDARoi.h.

◆ m_vertices

std::vector<TIDA::Vertex> TIDA::Roi::m_vertices
private

tracks in this roi

Definition at line 86 of file TIDARoi.h.


The documentation for this class was generated from the following files:
TIDA::Roi::roi
const TIDARoiDescriptor & roi() const
access the roi information
Definition: TIDARoi.h:42
TIDA::Roi::user
const std::vector< double > & user() const
access the user data
Definition: TIDARoi.h:68
TIDA::Roi::m_roi
TIDARoiDescriptor m_roi
Definition: TIDARoi.h:83
TIDA::Roi::m_tracks
std::vector< TIDA::Track > m_tracks
roi parameters
Definition: TIDARoi.h:85
TIDA::Roi::m_vertices
std::vector< TIDA::Vertex > m_vertices
tracks in this roi
Definition: TIDARoi.h:86
TIDA::Roi::m_user
std::vector< double > m_user
vertices
Definition: TIDARoi.h:89
lumiFormat.i
int i
Definition: lumiFormat.py:85
TIDA::Roi::tracks
const std::vector< TIDA::Track > & tracks() const
Definition: TIDARoi.h:52
python.PyAthena.v
v
Definition: PyAthena.py:154
TIDA::Roi::m_objects
std::vector< TrackTrigObject > m_objects
user vector
Definition: TIDARoi.h:90