ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CMAtrigger Class Reference

#include <CMAtrigger.h>

Inheritance diagram for CMAtrigger:
Collaboration diagram for CMAtrigger:

Public Member Functions

 CMAtrigger (Lvl1RPCalgo, TrigType, Threshold, bool, float width, const CMApatterns *, const RPCdigit **)
 
 CMAtrigger (Lvl1RPCalgo, TrigType, Threshold, const CMApatterns *)
 
 CMAtrigger (Lvl1RPCalgo, const CMApatterns *)
 
 CMAtrigger (const CMAtrigger &)
 
CMAtrigger operator= (const CMAtrigger &)
 
bool operator== (const CMAtrigger &) const
 
bool operator!= (const CMAtrigger &) const
 
bool operator< (const CMAtrigger &) const
 
void operator+= (const CMAtrigger &)
 
int sector (void) const
 
Lvl1RPCalgo emulation (void) const
 
const TRIGGERidentitytrigger (void) const
 
const CMApatternspatterns (void) const
 
const RPCdigitpivot_hit (void) const
 
const RPCdigitlowPt_hit (void) const
 
const RPCdigithighPt_hit (void) const
 
float trigger_width (void) const
 
int Kpatt (void) const
 
const CMAidentitycma (void) const
 
void Print (std::ostream &, bool) const
 
void set_number (int)
 
int number (void) const
 
void PrintElement (std::ostream &, std::string, bool) const
 
ObjectType tag () const
 
const std::string & name () const
 

Private Member Functions

void set_width (const float width)
 
void set_Kpatt (int Kpatt)
 
void set_pivot (const RPCdigit *)
 
void set_lowPt (const RPCdigit *)
 
void set_highPt (const RPCdigit *)
 

Private Attributes

Lvl1RPCalgo m_emulation
 
TRIGGERidentity m_trigger
 
float m_trigger_width
 
int m_Kpatt
 
const CMApatternsm_cma_patterns
 
const RPCdigitm_pivot_hit
 
const RPCdigitm_lowPt_hit
 
const RPCdigitm_highPt_hit
 
int m_number
 
ObjectType m_tag
 
std::string m_name
 

Friends

class CMApatterns
 

Detailed Description

Definition at line 22 of file CMAtrigger.h.

Constructor & Destructor Documentation

◆ CMAtrigger() [1/4]

CMAtrigger::CMAtrigger ( Lvl1RPCalgo  ,
TrigType  ,
Threshold  ,
bool  ,
float  width,
const CMApatterns ,
const RPCdigit **   
)

◆ CMAtrigger() [2/4]

CMAtrigger::CMAtrigger ( Lvl1RPCalgo  emulation,
TrigType  type,
Threshold  thres,
const CMApatterns patterns 
)

Definition at line 20 of file CMAtrigger.cxx.

21  :
22  RPCtrigDataObject(patterns->number(),"CMA result"),
23  m_emulation(emulation),m_trigger(type,thres,false),
24  m_trigger_width(0.),m_Kpatt(0),
26  m_highPt_hit(0)
27 {}

◆ CMAtrigger() [3/4]

CMAtrigger::CMAtrigger ( Lvl1RPCalgo  emulation,
const CMApatterns patterns 
)

Definition at line 30 of file CMAtrigger.cxx.

30  :
31  RPCtrigDataObject(patterns->number(),"CMA result"),
33  m_trigger_width(0.),m_Kpatt(0),
36 {}

◆ CMAtrigger() [4/4]

CMAtrigger::CMAtrigger ( const CMAtrigger result)

Definition at line 39 of file CMAtrigger.cxx.

39  :
40  RPCtrigDataObject(result.number(),result.name()),
41  m_emulation(result.emulation()),m_trigger(result.trigger()),
42  m_trigger_width(result.trigger_width()),m_Kpatt(result.Kpatt()),
43  m_cma_patterns(result.patterns()),
44  m_pivot_hit(result.pivot_hit()),
45  m_lowPt_hit(result.lowPt_hit()),
46  m_highPt_hit(result.highPt_hit())
47 {}

Member Function Documentation

◆ cma()

const CMAidentity & CMAtrigger::cma ( void  ) const

Definition at line 124 of file CMAtrigger.cxx.

125 {
126  return m_cma_patterns->cma_parameters().id();
127 }

◆ emulation()

Lvl1RPCalgo CMAtrigger::emulation ( void  ) const
inline

Definition at line 56 of file CMAtrigger.h.

56 {return m_emulation;}

◆ highPt_hit()

const RPCdigit* CMAtrigger::highPt_hit ( void  ) const
inline

Definition at line 61 of file CMAtrigger.h.

61 {return m_highPt_hit;}

◆ Kpatt()

int CMAtrigger::Kpatt ( void  ) const
inline

Definition at line 63 of file CMAtrigger.h.

63 {return m_Kpatt;}

◆ lowPt_hit()

const RPCdigit* CMAtrigger::lowPt_hit ( void  ) const
inline

Definition at line 60 of file CMAtrigger.h.

60 {return m_lowPt_hit;}

◆ name()

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

Definition at line 23 of file BaseObject.h.

23 { return m_name; }

◆ number()

int RPCtrigDataObject::number ( void  ) const
inlineinherited

Definition at line 29 of file RPCtrigDataObject.h.

29 {return m_number;}

◆ operator!=()

bool CMAtrigger::operator!= ( const CMAtrigger cmaTrig) const

Definition at line 103 of file CMAtrigger.cxx.

104 {
105  return !(*this == cmaTrig);
106 }

◆ operator+=()

void CMAtrigger::operator+= ( const CMAtrigger cmaTrig)

Definition at line 68 of file CMAtrigger.cxx.

69 {
70  if( m_emulation != cmaTrig.emulation() ) return;
71 
72  if( *this < cmaTrig )
73  {
74  m_trigger = cmaTrig.trigger();
75  m_trigger_width = cmaTrig.trigger_width();
76  m_Kpatt = cmaTrig.Kpatt();
77  m_cma_patterns = cmaTrig.patterns();
78  if(cmaTrig.pivot_hit()) m_pivot_hit = cmaTrig.pivot_hit();
79  if(cmaTrig.lowPt_hit()) m_lowPt_hit = cmaTrig.lowPt_hit();
80  if(cmaTrig.highPt_hit()) m_highPt_hit = cmaTrig.highPt_hit();
81  }
82 }

◆ operator<()

bool CMAtrigger::operator< ( const CMAtrigger cmaTrig) const

Definition at line 108 of file CMAtrigger.cxx.

110 {
111  if ( m_trigger < cmaTrig.trigger() ) return true;
112  if ( m_trigger == cmaTrig.trigger() &&
113  m_trigger_width < cmaTrig.trigger_width()) return true;
114  return false;
115 }

◆ operator=()

CMAtrigger CMAtrigger::operator= ( const CMAtrigger cmaTrig)

Definition at line 51 of file CMAtrigger.cxx.

52 {
53  static_cast<RPCtrigDataObject&>(*this) =
54  static_cast<const RPCtrigDataObject&>(cmaTrig);
55  m_emulation = cmaTrig.emulation();
56  m_trigger = cmaTrig.trigger();
57  m_trigger_width = cmaTrig.trigger_width();
58  m_Kpatt = cmaTrig.Kpatt();
59  m_cma_patterns = cmaTrig.patterns();
60  m_pivot_hit = cmaTrig.pivot_hit();
61  m_lowPt_hit = cmaTrig.lowPt_hit();
62  m_highPt_hit = cmaTrig.highPt_hit();
63 
64  return *this;
65 }

◆ operator==()

bool CMAtrigger::operator== ( const CMAtrigger cmaTrig) const

Definition at line 86 of file CMAtrigger.cxx.

87 {
88  if( m_cma_patterns == cmaTrig.patterns() &&
89  m_emulation == cmaTrig.emulation() &&
90  m_trigger == cmaTrig.trigger() &&
91  m_trigger_width == cmaTrig.trigger_width() &&
92  m_Kpatt == cmaTrig.Kpatt() &&
93  m_pivot_hit == cmaTrig.pivot_hit() &&
94  m_lowPt_hit == cmaTrig.lowPt_hit() &&
95  m_highPt_hit == cmaTrig.highPt_hit() )
96  {
97  return true;
98  }
99  return false;
100 }

◆ patterns()

const CMApatterns* CMAtrigger::patterns ( void  ) const
inline

Definition at line 58 of file CMAtrigger.h.

58 {return m_cma_patterns;}

◆ pivot_hit()

const RPCdigit* CMAtrigger::pivot_hit ( void  ) const
inline

Definition at line 59 of file CMAtrigger.h.

59 {return m_pivot_hit;}

◆ Print()

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

Reimplemented from BaseObject.

Definition at line 160 of file CMAtrigger.cxx.

161 {
162  stream << m_trigger << std::endl;
163  if(detail)
164  {
165  m_cma_patterns->Print(stream,false);
166  if(m_lowPt_hit)
167  {
168  stream << "Low Pt trigger digits:" << std::endl;
169  stream << *m_lowPt_hit << std::endl;
170  }
171  if(m_pivot_hit)
172  {
173  stream << "Pivot trigger digits:" << std::endl;
174  stream << *m_pivot_hit << std::endl;
175  }
176  if(m_highPt_hit)
177  {
178  stream << "High Pt trigger digits:" << std::endl;
179  stream << *m_highPt_hit << std::endl;
180  }
181  }
182 
183 }

◆ PrintElement()

void RPCtrigDataObject::PrintElement ( std::ostream &  ,
std::string  ,
bool   
) const
inlineinherited

Definition at line 31 of file RPCtrigDataObject.h.

31 {}

◆ sector()

int CMAtrigger::sector ( void  ) const

Definition at line 118 of file CMAtrigger.cxx.

119 {
120  return m_cma_patterns->sector();
121 }

◆ set_highPt()

void CMAtrigger::set_highPt ( const RPCdigit digit)
private

Definition at line 154 of file CMAtrigger.cxx.

155 {
157 }

◆ set_Kpatt()

void CMAtrigger::set_Kpatt ( int  Kpatt)
private

Definition at line 130 of file CMAtrigger.cxx.

131 {
132  m_Kpatt = Kpatt;
133 }

◆ set_lowPt()

void CMAtrigger::set_lowPt ( const RPCdigit digit)
private

Definition at line 148 of file CMAtrigger.cxx.

149 {
150  m_lowPt_hit = digit;
151 }

◆ set_number()

void RPCtrigDataObject::set_number ( int  number)
inherited

Definition at line 42 of file RPCtrigDataObject.cxx.

43 {
44  m_number = number;
45 }

◆ set_pivot()

void CMAtrigger::set_pivot ( const RPCdigit digit)
private

Definition at line 142 of file CMAtrigger.cxx.

143 {
144  m_pivot_hit = digit;
145 }

◆ set_width()

void CMAtrigger::set_width ( const float  width)
private

Definition at line 136 of file CMAtrigger.cxx.

137 {
139 }

◆ tag()

ObjectType BaseObject::tag ( ) const
inlineinherited

Definition at line 22 of file BaseObject.h.

22 { return m_tag; }

◆ trigger()

const TRIGGERidentity& CMAtrigger::trigger ( void  ) const
inline

Definition at line 57 of file CMAtrigger.h.

57 {return m_trigger;}

◆ trigger_width()

float CMAtrigger::trigger_width ( void  ) const
inline

Definition at line 62 of file CMAtrigger.h.

62 {return m_trigger_width;}

Friends And Related Function Documentation

◆ CMApatterns

friend class CMApatterns
friend

Definition at line 69 of file CMAtrigger.h.

Member Data Documentation

◆ m_cma_patterns

const CMApatterns* CMAtrigger::m_cma_patterns
private

Definition at line 29 of file CMAtrigger.h.

◆ m_emulation

Lvl1RPCalgo CMAtrigger::m_emulation
private

Definition at line 25 of file CMAtrigger.h.

◆ m_highPt_hit

const RPCdigit* CMAtrigger::m_highPt_hit
private

Definition at line 32 of file CMAtrigger.h.

◆ m_Kpatt

int CMAtrigger::m_Kpatt
private

Definition at line 28 of file CMAtrigger.h.

◆ m_lowPt_hit

const RPCdigit* CMAtrigger::m_lowPt_hit
private

Definition at line 31 of file CMAtrigger.h.

◆ m_name

std::string BaseObject::m_name
privateinherited

Definition at line 16 of file BaseObject.h.

◆ m_number

int RPCtrigDataObject::m_number
privateinherited

Definition at line 17 of file RPCtrigDataObject.h.

◆ m_pivot_hit

const RPCdigit* CMAtrigger::m_pivot_hit
private

Definition at line 30 of file CMAtrigger.h.

◆ m_tag

ObjectType BaseObject::m_tag
privateinherited

Definition at line 15 of file BaseObject.h.

◆ m_trigger

TRIGGERidentity CMAtrigger::m_trigger
private

Definition at line 26 of file CMAtrigger.h.

◆ m_trigger_width

float CMAtrigger::m_trigger_width
private

Definition at line 27 of file CMAtrigger.h.


The documentation for this class was generated from the following files:
CMAtrigger::lowPt_hit
const RPCdigit * lowPt_hit(void) const
Definition: CMAtrigger.h:60
CMAtrigger::m_trigger_width
float m_trigger_width
Definition: CMAtrigger.h:27
RPCtrigDataObject::m_number
int m_number
Definition: RPCtrigDataObject.h:17
RPCtrigDataObject::RPCtrigDataObject
RPCtrigDataObject(int, const std::string &)
Definition: RPCtrigDataObject.cxx:10
get_generator_info.result
result
Definition: get_generator_info.py:21
CMAtrigger::m_cma_patterns
const CMApatterns * m_cma_patterns
Definition: CMAtrigger.h:29
CMAtrigger::m_emulation
Lvl1RPCalgo m_emulation
Definition: CMAtrigger.h:25
BaseObject::m_name
std::string m_name
Definition: BaseObject.h:16
detail
Definition: extract_histogram_tag.cxx:14
CMAparameters::id
const CMAidentity & id() const
Definition: CMAparameters.cxx:17
checkRpcDigits.digit
digit
Definition: checkRpcDigits.py:186
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
CMAtrigger::patterns
const CMApatterns * patterns(void) const
Definition: CMAtrigger.h:58
CMAtrigger::pivot_hit
const RPCdigit * pivot_hit(void) const
Definition: CMAtrigger.h:59
CMApatterns::cma_parameters
const CMAparameters & cma_parameters(void) const
Definition: CMApatterns.h:87
CMAtrigger::m_lowPt_hit
const RPCdigit * m_lowPt_hit
Definition: CMAtrigger.h:31
CMAtrigger::m_Kpatt
int m_Kpatt
Definition: CMAtrigger.h:28
CMAtrigger::trigger_width
float trigger_width(void) const
Definition: CMAtrigger.h:62
CMApatterns::Print
void Print(std::ostream &, bool) const
Definition: CMApatterns.cxx:684
RPCtrigDataObject
Definition: RPCtrigDataObject.h:15
CMAtrigger::Kpatt
int Kpatt(void) const
Definition: CMAtrigger.h:63
CMAtrigger::m_pivot_hit
const RPCdigit * m_pivot_hit
Definition: CMAtrigger.h:30
CMAtrigger::trigger
const TRIGGERidentity & trigger(void) const
Definition: CMAtrigger.h:57
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
RPCtrigDataObject::number
int number(void) const
Definition: RPCtrigDataObject.h:29
BaseObject::m_tag
ObjectType m_tag
Definition: BaseObject.h:15
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CMAtrigger::highPt_hit
const RPCdigit * highPt_hit(void) const
Definition: CMAtrigger.h:61
CMAtrigger::m_trigger
TRIGGERidentity m_trigger
Definition: CMAtrigger.h:26
CMApatterns::sector
int sector(void) const
Definition: CMApatterns.h:86
CMAtrigger::emulation
Lvl1RPCalgo emulation(void) const
Definition: CMAtrigger.h:56
CMAtrigger::m_highPt_hit
const RPCdigit * m_highPt_hit
Definition: CMAtrigger.h:32