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

#include <EventShapes.h>

Collaboration diagram for EventShapes:

Public Types

enum  EventShapeType {
  THRUST = 0x0001, THRUST_MINOR = 0x0002, HEAVY_JETMASS = 0x0007, LIGHT_JETMASS = 0x0008,
  TOTAL_BROADENING = 0x0009, WIDE_BROADENING = 0x000A, THRUST_PHI = 0x000B, THRUST_ETA = 0x000C,
  TRANSVERSESPHERICITY = 0x000D, CPARAMETER = 0x0010, FOXWOLFRAM = 0x0080, FLIPVALUES = 0x0081,
  EEC_PHI = 0x0082, EEC_ETA = 0x0083, EEC_RAD = 0x0084, FORWARD_TERM = 0x00F0,
  CENTRAL_CUT = 0x00F1, JET_ETA_CUT = 0x00F2, JET1_ET = 0x00F3, JET2_ET = 0x00F4,
  UNKNOWN = 0xFFFF
}
 

Public Member Functions

 EventShapes ()
 
 EventShapes (EventShapeType type, double value)
 
 EventShapes (EventShapeType type, std::vector< double > &values, bool canSwap=false)
 
 ~EventShapes ()
 
EventShapeType getType () const
 
unsigned int getSize () const
 
double getValue (unsigned int index=0) const
 
void getValues (std::vector< double > &vec) const
 
void swapValues (EventShapes &es)
 
void setValue (double value, unsigned int index=0)
 
void setValues (std::vector< double > &values, bool canSwap=false)
 
std::string getName ()
 

Private Attributes

EventShapeType m_type
 
std::vector< double > m_values
 

Friends

template<class T >
class EventShapeStoreConverterBase
 

Detailed Description

Definition at line 11 of file EventShapes.h.

Member Enumeration Documentation

◆ EventShapeType

Enumerator
THRUST 
THRUST_MINOR 
HEAVY_JETMASS 
LIGHT_JETMASS 
TOTAL_BROADENING 
WIDE_BROADENING 
THRUST_PHI 
THRUST_ETA 
TRANSVERSESPHERICITY 
CPARAMETER 
FOXWOLFRAM 
FLIPVALUES 
EEC_PHI 
EEC_ETA 
EEC_RAD 
FORWARD_TERM 
CENTRAL_CUT 
JET_ETA_CUT 
JET1_ET 
JET2_ET 
UNKNOWN 

Definition at line 18 of file EventShapes.h.

18  {
19  THRUST = 0x0001, /* Thrust */
20  THRUST_MINOR = 0x0002, /* Thrust Minor */
21  HEAVY_JETMASS = 0x0007, /* heavy jet mass */
22  LIGHT_JETMASS = 0x0008, /* light jet mass */
23  TOTAL_BROADENING = 0x0009, /* total jet broadening */
24  WIDE_BROADENING = 0x000A, /* wide-jet broadening */
25  THRUST_PHI = 0x000B, /* phi value of Thrust axis */
26  THRUST_ETA = 0x000C, /* eta value of Thrust axis, if calculated in 3 dimensions */
27 
28  TRANSVERSESPHERICITY = 0x000D, /* transverse sphericity defined in JHEP08(2000) 017 */
29 
30  CPARAMETER = 0x0010, /* C parameter */
31 
32  FOXWOLFRAM = 0x0080, /* Fox Wolfram H0 */
33  FLIPVALUES = 0x0081, /* flipvalue y23 */
34  EEC_PHI = 0x0082, /* EEC along phi */
35  EEC_ETA = 0x0083, /* EEC along eta */
36  EEC_RAD = 0x0084, /* EEC along rad */
37 
38  FORWARD_TERM = 0x00F0, /* exponentially suppressed forward term */
39  CENTRAL_CUT = 0x00F1, /* cut for central region and forward region */
40  JET_ETA_CUT = 0x00F2, /* cut for eta of first two jets */
41  JET1_ET = 0x00F3, /* E_T of jet 1 */
42  JET2_ET = 0x00F4, /* E_T of jet 2 */
43 
44  UNKNOWN = 0xFFFF /* unknown */
45  };

Constructor & Destructor Documentation

◆ EventShapes() [1/3]

EventShapes::EventShapes ( )
inline

Definition at line 47 of file EventShapes.h.

47 : m_type(UNKNOWN) {};

◆ EventShapes() [2/3]

EventShapes::EventShapes ( EventShapeType  type,
double  value 
)
inline

Definition at line 49 of file EventShapes.h.

50  : m_type(type)
51  { m_values.push_back(value); };

◆ EventShapes() [3/3]

EventShapes::EventShapes ( EventShapeType  type,
std::vector< double > &  values,
bool  canSwap = false 
)
inline

Definition at line 53 of file EventShapes.h.

54  : m_type(type)
55  {
56  if ( canSwap )
57  m_values.swap(values);
58  else
59  m_values = values;
60  };

◆ ~EventShapes()

EventShapes::~EventShapes ( )
inline

Definition at line 62 of file EventShapes.h.

62 {};

Member Function Documentation

◆ getName()

std::string EventShapes::getName ( )

Definition at line 8 of file EventShapes.cxx.

9 {
10  std::string name="unknown";
11  switch (m_type)
12  {
13  case CENTRAL_CUT: name = "Central_Cut"; break;
14  case THRUST: name = "Thrust"; break;
15  case THRUST_MINOR: name = "ThrustMinor"; break;
16  case FLIPVALUES: name = "FlipValues"; break;
17  case HEAVY_JETMASS: name = "Heavy_JM"; break;
18  case LIGHT_JETMASS: name = "Light_JM"; break;
19  case TOTAL_BROADENING: name = "B_T"; break;
20  case WIDE_BROADENING: name = "B_W"; break;
21  case THRUST_PHI: name = "phi_Thrust"; break;
22  case THRUST_ETA: name = "eta_Thrust"; break;
23  case FORWARD_TERM: name = "forward_term";break;
24  case JET1_ET: name = "Jet1_ET"; break;
25  case JET2_ET: name = "Jet2_ET"; break;
26  case JET_ETA_CUT: name = "Jet1_eta_cut";break;
27  case FOXWOLFRAM: name = "FoxWolfram"; break;
28  case TRANSVERSESPHERICITY: name = "TransverseSphericity"; break;
29  case CPARAMETER: name = "CParameter"; break;
30  case EEC_PHI: name = "EECvsPhi"; break;
31  case EEC_ETA: name = "EECvsEta"; break;
32  case EEC_RAD: name = "EECvsRad"; break;
33  case UNKNOWN:
34  default: name = "unknown"; break;
35  }
36  return name;
37 }

◆ getSize()

unsigned int EventShapes::getSize ( ) const
inline

Definition at line 66 of file EventShapes.h.

66 { return m_values.size(); };

◆ getType()

EventShapeType EventShapes::getType ( ) const
inline

Definition at line 64 of file EventShapes.h.

64 { return m_type; };

◆ getValue()

double EventShapes::getValue ( unsigned int  index = 0) const
inline

Definition at line 68 of file EventShapes.h.

69  {
70  return index < m_values.size() ? m_values[index] : 0;
71  };

◆ getValues()

void EventShapes::getValues ( std::vector< double > &  vec) const
inline

Definition at line 73 of file EventShapes.h.

74  {
75  vec.resize( m_values.size() );
76  for ( unsigned int i=0; i<m_values.size(); ++i )
77  vec[i] = m_values[i];
78  return;
79  };

◆ setValue()

void EventShapes::setValue ( double  value,
unsigned int  index = 0 
)
inline

Definition at line 86 of file EventShapes.h.

87  {
88  if ( index > m_values.size() )
89  m_values.resize(index, 0);
91  return;
92  };

◆ setValues()

void EventShapes::setValues ( std::vector< double > &  values,
bool  canSwap = false 
)
inline

Definition at line 94 of file EventShapes.h.

95  {
96  if ( canSwap )
97  {
98  m_values.swap(values);
99  }
100  else
101  {
102  m_values.resize( values.size() );
103  for ( unsigned int i=0; i<values.size(); ++i )
104  m_values[i] = values[i];
105  }
106  return;
107  };

◆ swapValues()

void EventShapes::swapValues ( EventShapes es)
inline

Definition at line 81 of file EventShapes.h.

82  {
83  m_values.swap(es.m_values);
84  };

Friends And Related Function Documentation

◆ EventShapeStoreConverterBase

template<class T >
friend class EventShapeStoreConverterBase
friend

Definition at line 16 of file EventShapes.h.

Member Data Documentation

◆ m_type

EventShapeType EventShapes::m_type
private

Definition at line 113 of file EventShapes.h.

◆ m_values

std::vector<double> EventShapes::m_values
private

Definition at line 115 of file EventShapes.h.


The documentation for this class was generated from the following files:
EventShapes::JET2_ET
@ JET2_ET
Definition: EventShapes.h:42
EventShapes::TRANSVERSESPHERICITY
@ TRANSVERSESPHERICITY
Definition: EventShapes.h:28
EventShapes::UNKNOWN
@ UNKNOWN
Definition: EventShapes.h:44
EventShapes::EEC_RAD
@ EEC_RAD
Definition: EventShapes.h:36
index
Definition: index.py:1
EventShapes::HEAVY_JETMASS
@ HEAVY_JETMASS
Definition: EventShapes.h:21
EventShapes::CENTRAL_CUT
@ CENTRAL_CUT
Definition: EventShapes.h:39
EventShapes::CPARAMETER
@ CPARAMETER
Definition: EventShapes.h:30
athena.value
value
Definition: athena.py:124
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
EventShapes::FORWARD_TERM
@ FORWARD_TERM
Definition: EventShapes.h:38
EventShapes::JET1_ET
@ JET1_ET
Definition: EventShapes.h:41
EventShapes::EEC_ETA
@ EEC_ETA
Definition: EventShapes.h:35
python.Bindings.values
values
Definition: Control/AthenaPython/python/Bindings.py:805
EventShapes::EEC_PHI
@ EEC_PHI
Definition: EventShapes.h:34
lumiFormat.i
int i
Definition: lumiFormat.py:85
EventShapes::THRUST_ETA
@ THRUST_ETA
Definition: EventShapes.h:26
EventShapes::FLIPVALUES
@ FLIPVALUES
Definition: EventShapes.h:33
EventShapes::JET_ETA_CUT
@ JET_ETA_CUT
Definition: EventShapes.h:40
EventShapes::LIGHT_JETMASS
@ LIGHT_JETMASS
Definition: EventShapes.h:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
EventShapes::m_values
std::vector< double > m_values
Definition: EventShapes.h:115
EventShapes::m_type
EventShapeType m_type
Definition: EventShapes.h:113
EventShapes::THRUST_MINOR
@ THRUST_MINOR
Definition: EventShapes.h:20
DeMoScan.index
string index
Definition: DeMoScan.py:364
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
EventShapes::TOTAL_BROADENING
@ TOTAL_BROADENING
Definition: EventShapes.h:23
EventShapes::WIDE_BROADENING
@ WIDE_BROADENING
Definition: EventShapes.h:24
EventShapes::FOXWOLFRAM
@ FOXWOLFRAM
Definition: EventShapes.h:32
EventShapes::THRUST_PHI
@ THRUST_PHI
Definition: EventShapes.h:25
EventShapes::THRUST
@ THRUST
Definition: EventShapes.h:19