ATLAS Offline Software
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SLdata Class Reference

#include <SLdata.h>

Inheritance diagram for SLdata:
Collaboration diagram for SLdata:

Public Types

typedef std::list< SLpatternsPATTERNSlist
 
typedef std::list< SLpatterns * > PatternsList
 

Public Member Functions

 SLdata (PADdata *, unsigned long int)
 
 SLdata (const SLdata &)
 
 ~SLdata ()
 
SLdata operator= (const SLdata &)
 
unsigned long int debug (void) const
 
const PATTERNSlistsl_patterns (void) const
 
PatternsList give_patterns (void)
 
void PrintElement (std::ostream &, std::string, bool) const
 
void Print (std::ostream &, bool) const
 
ObjectType tag () const
 
const std::string & name () const
 

Private Member Functions

void create_sl_patterns (PADpatterns *)
 
SLpatternsfind (const int)
 

Private Attributes

unsigned long int m_debug
 
PATTERNSlist m_sl_patterns
 
ObjectType m_tag
 
std::string m_name
 

Detailed Description

Definition at line 15 of file SLdata.h.

Member Typedef Documentation

◆ PATTERNSlist

typedef std::list< SLpatterns > SLdata::PATTERNSlist

Definition at line 18 of file SLdata.h.

◆ PatternsList

typedef std::list< SLpatterns* > SLdata::PatternsList

Definition at line 19 of file SLdata.h.

Constructor & Destructor Documentation

◆ SLdata() [1/2]

SLdata::SLdata ( PADdata pad_data,
unsigned long int  debug 
)

Definition at line 8 of file SLdata.cxx.

8  :
9  BaseObject(Data,"Sector Logic data"),m_debug(debug)
10 {
11  m_sl_patterns.clear();
12 
13  PADdata::PatternsList pad_patterns = pad_data->give_patterns();
14  PADdata::PatternsList::const_iterator PADpatterns = pad_patterns.begin();
15 
16  while(PADpatterns != pad_patterns.end())
17  {
19  ++PADpatterns;
20  }
21 }

◆ SLdata() [2/2]

SLdata::SLdata ( const SLdata sl_data)

Definition at line 23 of file SLdata.cxx.

23  :
24  BaseObject(Data,sl_data.name()),
25  m_debug(sl_data.debug()),
26  m_sl_patterns(sl_data.sl_patterns())
27 {
28 }

◆ ~SLdata()

SLdata::~SLdata ( )

Definition at line 30 of file SLdata.cxx.

31 {
32  m_sl_patterns.clear();
33 }

Member Function Documentation

◆ create_sl_patterns()

void SLdata::create_sl_patterns ( PADpatterns pad_patterns)
private

Definition at line 46 of file SLdata.cxx.

47 {
49 
50  const int sector = pad_patterns->sector();
51 
52  if( (patterns = find(sector)) )
53  patterns->load_pad_patterns(pad_patterns);
54  else
55  {
56  SLpatterns patterns(sector,m_debug);
57  patterns.load_pad_patterns(pad_patterns);
58  m_sl_patterns.push_back(std::move(patterns));
59  }
60 }

◆ debug()

unsigned long int SLdata::debug ( void  ) const
inline

Definition at line 38 of file SLdata.h.

38 {return m_debug;}

◆ find()

SLpatterns * SLdata::find ( const int  sector)
private

Definition at line 64 of file SLdata.cxx.

65 {
67  while (it != m_sl_patterns.end())
68  {
69  if((*it).sector() == sector ) return &(*it);
70  ++it;
71  }
72 
73  return 0;
74 }

◆ give_patterns()

SLdata::PatternsList SLdata::give_patterns ( void  )

Definition at line 78 of file SLdata.cxx.

79 {
81 
83 
84  while(sl != m_sl_patterns.end())
85  {
86  patterns.push_back(&(*sl));
87  ++sl;
88  }
89 
90  return patterns;
91 }

◆ name()

const std::string& BaseObject::name ( ) const
inlineinherited

Definition at line 23 of file BaseObject.h.

23 { return m_name; }

◆ operator=()

SLdata SLdata::operator= ( const SLdata sl_data)

Definition at line 36 of file SLdata.cxx.

37 {
38  static_cast<BaseObject&>(*this) = static_cast<const BaseObject&>(sl_data);
39  m_sl_patterns.clear();
40  m_sl_patterns = sl_data.sl_patterns();
41  m_debug = sl_data.debug();
42  return *this;
43 }

◆ Print()

void SLdata::Print ( std::ostream &  stream,
bool  detail 
) const
virtual

Reimplemented from BaseObject.

Definition at line 122 of file SLdata.cxx.

123 {
124  stream << name() << " contains "
125  << m_sl_patterns.size()
126  << " Sector Logic patterns " << std::endl;
127 
128  PATTERNSlist::const_iterator sl = sl_patterns().begin();
129 
130  while(sl != sl_patterns().end())
131  {
132  (*sl).Print(stream,detail);
133  ++sl;
134  }
135 }

◆ PrintElement()

void SLdata::PrintElement ( std::ostream &  stream,
std::string  element,
bool  detail 
) const

Definition at line 94 of file SLdata.cxx.

96 {
97  bool all = (element == name() || element == "")? true : false;
98  bool nSL = m_sl_patterns.size();
99  bool printed = false;
100 
101  if(nSL && (element == (*m_sl_patterns.begin()).name() || all))
102  {
103  stream << name() << " contains " << m_sl_patterns.size()
104  << " Sector Logic patterns:" << std::endl;
105  printed = true;
106  PATTERNSlist::const_iterator it = m_sl_patterns.begin();
107  while(it != m_sl_patterns.end())
108  {
109  it->Print(stream,detail);
110  ++it;
111  }
112  }
113 
114  if(!printed)
115  {
116  if (element == "") element = "Sectors";
117  stream << name() << " contains no " << element << "!" << std::endl;
118  }
119 }

◆ sl_patterns()

const PATTERNSlist& SLdata::sl_patterns ( void  ) const
inline

Definition at line 40 of file SLdata.h.

40 {return m_sl_patterns;}

◆ tag()

ObjectType BaseObject::tag ( ) const
inlineinherited

Definition at line 22 of file BaseObject.h.

22 { return m_tag; }

Member Data Documentation

◆ m_debug

unsigned long int SLdata::m_debug
private

Definition at line 22 of file SLdata.h.

◆ m_name

std::string BaseObject::m_name
privateinherited

Definition at line 16 of file BaseObject.h.

◆ m_sl_patterns

PATTERNSlist SLdata::m_sl_patterns
private

Definition at line 24 of file SLdata.h.

◆ m_tag

ObjectType BaseObject::m_tag
privateinherited

Definition at line 15 of file BaseObject.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
BaseObject::name
const std::string & name() const
Definition: BaseObject.h:23
BaseObject::m_name
std::string m_name
Definition: BaseObject.h:16
SLdata::PatternsList
std::list< SLpatterns * > PatternsList
Definition: SLdata.h:19
patterns
std::vector< std::string > patterns
Definition: listroot.cxx:187
SLdata::find
SLpatterns * find(const int)
Definition: SLdata.cxx:64
Data
@ Data
Definition: BaseObject.h:11
skel.it
it
Definition: skel.GENtoEVGEN.py:396
detail
Definition: extract_histogram_tag.cxx:14
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
PADpatterns
Definition: PADpatterns.h:20
SLdata::create_sl_patterns
void create_sl_patterns(PADpatterns *)
Definition: SLdata.cxx:46
PADdata::PatternsList
std::list< PADpatterns * > PatternsList
Definition: PADdata.h:19
SLpatterns
Definition: SLpatterns.h:21
SLdata::sl_patterns
const PATTERNSlist & sl_patterns(void) const
Definition: SLdata.h:40
BaseObject
Definition: BaseObject.h:13
BaseObject::BaseObject
BaseObject(ObjectType, const std::string &)
Definition: BaseObject.cxx:7
Cut::all
@ all
Definition: SUSYToolsAlg.cxx:67
SLdata::m_sl_patterns
PATTERNSlist m_sl_patterns
Definition: SLdata.h:24
BaseObject::m_tag
ObjectType m_tag
Definition: BaseObject.h:15
PADpatterns::sector
int sector(void) const
Definition: PADpatterns.h:48
PADdata::give_patterns
PatternsList give_patterns(void)
Definition: PADdata.cxx:77
SLdata::m_debug
unsigned long int m_debug
Definition: SLdata.h:22
SLdata::debug
unsigned long int debug(void) const
Definition: SLdata.h:38