ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::jFexTower_v1 Class Reference

Class describing input data of a LVL1 jFEX. More...

#include <jFexTower_v1.h>

Inheritance diagram for xAOD::jFexTower_v1:
Collaboration diagram for xAOD::jFexTower_v1:

Public Member Functions

float eta () const
 The pseudorapidity ( \(\eta\)).
void setEta (float)
 getter for the global eta value (float)
int globalEta () const
 setter for the above
void setglobalEta (int)
 getter for the global eta value (int)
float phi () const
 setter for the above
void setPhi (float)
 getter for the global phi value (float)
unsigned int globalPhi () const
 setter for the above
void setglobalPhi (unsigned int)
 getter for the global phi value (int)
uint8_t module () const
 setter for the above
void setModule (uint8_t)
 getter for the module number [0-5] inclusive
uint8_t fpga () const
 setter for the above
void setFpga (uint8_t)
 getter for the fpga number [0-3] inclusive
uint8_t channel () const
 setter for the above
void setChannel (uint8_t)
 getter for the channel number [0-59]
const std::vector< uint16_t > & et_count () const
 setter for the above
void setEt_count (const std::vector< uint16_t > &)
 getter for the 11 energy counts
void setEt_count (std::vector< uint16_t > &&)
 setter for the above
uint8_t jFEXdataID () const
 setter for the above
void setJFEXdataID (uint8_t)
 getter for the location in data stream where Et is placed [0-15]
const std::vector< char > & isjTowerSat () const
 setter for the above
void setIsjTowerSat (const std::vector< char > &)
 getter for the saturation flag of jTower
void setIsjTowerSat (std::vector< char > &&)
 setter for the above
uint32_t jFEXtowerID () const
 setter for the above
void setjFEXtowerID (uint32_t)
 getter for the jtower simulation ID
uint8_t Calosource () const
 setter for the above
void setCalosource (uint8_t)
 getter for the calorimeter source
uint16_t jTowerEt () const
 setter for the above
bool isCore () const
int OnlineID () const
int OfflineID () const
const std::vector< float > & SCellEt () const
 Information about SCell Ets.
void setSCellEt (const std::vector< float > &)
 getter
void setSCellEt (std::vector< float > &&)
 setter
const std::vector< float > & SCellEta () const
 setter
void setSCellEta (const std::vector< float > &)
 getter
void setSCellEta (std::vector< float > &&)
 setter
const std::vector< float > & SCellPhi () const
 setter
void setSCellPhi (const std::vector< float > &)
 getter
void setSCellPhi (std::vector< float > &&)
 setter
const std::vector< int > & SCellID () const
 setter
void setSCellID (const std::vector< int > &)
 getter
void setSCellID (std::vector< int > &&)
 setter
const std::vector< bool > & SCellMask () const
 setter
void setSCellMask (const std::vector< bool > &)
 getter
void setSCellMask (std::vector< bool > &&)
 setter
int TileEt () const
 setter
void setTileEt (int)
 getter
float TileEta () const
 setter
void setTileEta (float)
 getter
float TilePhi () const
 setter
void setTilePhi (float)
 getter
int jtowerEtMeV () const
 setter
void setjtowerEtMeV (int)
 getter
float SCellEtMeV () const
 setter
void setSCellEtMeV (float)
 getter
float TileEtMeV () const
 setter
void setTileEtMeV (float)
 getter
int emulated_jtowerEt () const
 setter
void setemulated_jtowerEt (int)
 getter
void initialize (const float Eta, const float Phi)
 setter
void initialize (const float Eta, const float Phi, const int globaleta, const unsigned int globalphi, const uint32_t IDsim, const uint8_t source, const std::vector< uint16_t > &Et_count, const uint8_t Module, const uint8_t Fpga, const uint8_t Channel, const uint8_t JFEXdataID, const std::vector< char > &IsjTowerSat)

Detailed Description

Class describing input data of a LVL1 jFEX.

Definition at line 22 of file jFexTower_v1.h.

Member Function Documentation

◆ Calosource()

uint8_t xAOD::jFexTower_v1::Calosource ( ) const

setter for the above

Information about the calorimeter source Calosource values: 0: barrel, 1: tile, 2: emec, 3: hec, 4: fcal1, 5: fcal2, 6: fcal3

◆ channel()

uint8_t xAOD::jFexTower_v1::channel ( ) const

setter for the above

get channel number

◆ emulated_jtowerEt()

int xAOD::jFexTower_v1::emulated_jtowerEt ( ) const

setter

Information about jTower Et Encoded! (LAr and Tile encoding is different!)

◆ et_count()

const std::vector< uint16_t > & xAOD::jFexTower_v1::et_count ( ) const

setter for the above

get Energy Counts

◆ eta()

float xAOD::jFexTower_v1::eta ( ) const

The pseudorapidity ( \(\eta\)).

◆ fpga()

uint8_t xAOD::jFexTower_v1::fpga ( ) const

setter for the above

get fpga number

◆ globalEta()

int xAOD::jFexTower_v1::globalEta ( ) const

setter for the above

◆ globalPhi()

unsigned int xAOD::jFexTower_v1::globalPhi ( ) const

setter for the above

◆ initialize() [1/2]

void xAOD::jFexTower_v1::initialize ( const float Eta,
const float Phi )

setter

initialize

Definition at line 59 of file jFexTower_v1.cxx.

60{
61 setEta( Eta );
62 setPhi( Phi );
63}
@ Phi
Definition RPCdef.h:8
@ Eta
Definition RPCdef.h:8
void setPhi(float)
getter for the global phi value (float)
void setEta(float)
getter for the global eta value (float)

◆ initialize() [2/2]

void xAOD::jFexTower_v1::initialize ( const float Eta,
const float Phi,
const int globaleta,
const unsigned int globalphi,
const uint32_t IDsim,
const uint8_t source,
const std::vector< uint16_t > & Et_count,
const uint8_t Module,
const uint8_t Fpga,
const uint8_t Channel,
const uint8_t JFEXdataID,
const std::vector< char > & IsjTowerSat )

Definition at line 65 of file jFexTower_v1.cxx.

77{
78 setEta( Eta );
79 setPhi( Phi );
80 setglobalEta( globaleta );
81 setglobalPhi( globalphi );
82 setModule( Module );
83 setFpga( Fpga );
84 setChannel( Channel );
85 setJFEXdataID( JFEXdataID );
86 setIsjTowerSat( IsjTowerSat );
87 setjFEXtowerID( IDSim );
88 setCalosource( source );
89 setEt_count( Et_count );
90}
void setModule(uint8_t)
getter for the module number [0-5] inclusive
void setFpga(uint8_t)
getter for the fpga number [0-3] inclusive
void setEt_count(const std::vector< uint16_t > &)
getter for the 11 energy counts
void setChannel(uint8_t)
getter for the channel number [0-59]
void setglobalPhi(unsigned int)
getter for the global phi value (int)
void setjFEXtowerID(uint32_t)
getter for the jtower simulation ID
void setJFEXdataID(uint8_t)
getter for the location in data stream where Et is placed [0-15]
void setIsjTowerSat(const std::vector< char > &)
getter for the saturation flag of jTower
void setglobalEta(int)
getter for the global eta value (int)
void setCalosource(uint8_t)
getter for the calorimeter source

◆ isCore()

bool xAOD::jFexTower_v1::isCore ( ) const

Definition at line 101 of file jFexTower_v1.cxx.

101 {
102 // FPGA eta bounderies
103 const float eta_edge[6] = { -1.6, -0.8, 0, 0.8, 1.6, 5};
104 const float phi_edge[4] = { 0.5*M_PI, M_PI, 1.5*M_PI, 2*M_PI};
105
106 int cal_jfex = -1;
107 int cal_fpga = -1;
108
109
110 // finding the jFEX module
111 for(unsigned int leta=0; leta<6; leta++){
112 if(eta() < eta_edge[leta] ){
113 cal_jfex = leta;
114 break;
115 }
116 }
117
118 // converts phi to [0,2pi]
119 float mphi = phi() < 0 ? 2*M_PI+phi() : phi();
120
121 // finding FPGA number
122 for(unsigned int lphi=0; lphi<4; lphi++){
123 if(mphi < phi_edge[lphi] ){
124 cal_fpga = lphi;
125 break;
126 }
127 }
128
129 // correcting the FPGA number to match the firmware scheme FPGA (U4) 2 -> 3 and FPGA (U3) 3 -> 2
130 cal_fpga = cal_fpga == 2 ? 3 : cal_fpga == 3 ? 2 : cal_fpga;
131
132 return (module() == cal_jfex and fpga() == cal_fpga);
133}
#define M_PI
float eta() const
The pseudorapidity ( ).
uint8_t fpga() const
setter for the above
float phi() const
setter for the above
uint8_t module() const
setter for the above

◆ isjTowerSat()

const std::vector< char > & xAOD::jFexTower_v1::isjTowerSat ( ) const

setter for the above

Is the Tower saturated?

◆ jFEXdataID()

uint8_t xAOD::jFexTower_v1::jFEXdataID ( ) const

setter for the above

get the location where Et is placed in the data stream

◆ jFEXtowerID()

uint32_t xAOD::jFexTower_v1::jFEXtowerID ( ) const

setter for the above

get the Simulation ID

◆ jTowerEt()

uint16_t xAOD::jFexTower_v1::jTowerEt ( ) const

setter for the above

Returns the Et of the Tower (in counts! it needs conversion).

Definition at line 93 of file jFexTower_v1.cxx.

93 {
94
95 if(et_count().size() == 1){
96 return et_count().at(0);
97 }
98 return 0;
99}
size_t size() const
Number of registered mappings.
const std::vector< uint16_t > & et_count() const
setter for the above

◆ jtowerEtMeV()

int xAOD::jFexTower_v1::jtowerEtMeV ( ) const

setter

Information about jTower Et in MeV

◆ module()

uint8_t xAOD::jFexTower_v1::module ( ) const

setter for the above

get module number

◆ OfflineID()

int xAOD::jFexTower_v1::OfflineID ( ) const

Definition at line 140 of file jFexTower_v1.cxx.

140 {
141 return jFEXtowerID();
142}
uint32_t jFEXtowerID() const
setter for the above

◆ OnlineID()

int xAOD::jFexTower_v1::OnlineID ( ) const

Definition at line 135 of file jFexTower_v1.cxx.

135 {
136 int channelID = globalPhi() | ((0x80 + globalEta()) << 8);
137 return channelID;
138}
unsigned int globalPhi() const
setter for the above
int globalEta() const
setter for the above

◆ phi()

float xAOD::jFexTower_v1::phi ( ) const

setter for the above

The azimuthal angle ( \(\phi\))

◆ SCellEt()

const std::vector< float > & xAOD::jFexTower_v1::SCellEt ( ) const

Information about SCell Ets.

◆ SCellEta()

const std::vector< float > & xAOD::jFexTower_v1::SCellEta ( ) const

setter

Information about SCell Etas

◆ SCellEtMeV()

float xAOD::jFexTower_v1::SCellEtMeV ( ) const

setter

Information about SCell Et in MeV

◆ SCellID()

const std::vector< int > & xAOD::jFexTower_v1::SCellID ( ) const

setter

Information about SCell IDs

◆ SCellMask()

const std::vector< bool > & xAOD::jFexTower_v1::SCellMask ( ) const

setter

Information about SCell Masking

◆ SCellPhi()

const std::vector< float > & xAOD::jFexTower_v1::SCellPhi ( ) const

setter

Information about SCell Phis

◆ setCalosource()

void xAOD::jFexTower_v1::setCalosource ( uint8_t )

getter for the calorimeter source

set calorimeter source

◆ setChannel()

void xAOD::jFexTower_v1::setChannel ( uint8_t )

getter for the channel number [0-59]

set fpga number

◆ setemulated_jtowerEt()

void xAOD::jFexTower_v1::setemulated_jtowerEt ( int )

getter

◆ setEt_count() [1/2]

void xAOD::jFexTower_v1::setEt_count ( const std::vector< uint16_t > & )

getter for the 11 energy counts

set Energy Counts

◆ setEt_count() [2/2]

void xAOD::jFexTower_v1::setEt_count ( std::vector< uint16_t > && )

setter for the above

◆ setEta()

void xAOD::jFexTower_v1::setEta ( float )

getter for the global eta value (float)

◆ setFpga()

void xAOD::jFexTower_v1::setFpga ( uint8_t )

getter for the fpga number [0-3] inclusive

set fpga number

◆ setglobalEta()

void xAOD::jFexTower_v1::setglobalEta ( int )

getter for the global eta value (int)

◆ setglobalPhi()

void xAOD::jFexTower_v1::setglobalPhi ( unsigned int )

getter for the global phi value (int)

◆ setIsjTowerSat() [1/2]

void xAOD::jFexTower_v1::setIsjTowerSat ( const std::vector< char > & )

getter for the saturation flag of jTower

set saturation flag of the Tower

◆ setIsjTowerSat() [2/2]

void xAOD::jFexTower_v1::setIsjTowerSat ( std::vector< char > && )

setter for the above

◆ setJFEXdataID()

void xAOD::jFexTower_v1::setJFEXdataID ( uint8_t )

getter for the location in data stream where Et is placed [0-15]

set the location where Et is placed in the data stream

◆ setjFEXtowerID()

void xAOD::jFexTower_v1::setjFEXtowerID ( uint32_t )

getter for the jtower simulation ID

set the simulation ID

◆ setjtowerEtMeV()

void xAOD::jFexTower_v1::setjtowerEtMeV ( int )

getter

◆ setModule()

void xAOD::jFexTower_v1::setModule ( uint8_t )

getter for the module number [0-5] inclusive

set module number

◆ setPhi()

void xAOD::jFexTower_v1::setPhi ( float )

getter for the global phi value (float)

◆ setSCellEt() [1/2]

void xAOD::jFexTower_v1::setSCellEt ( const std::vector< float > & )

getter

◆ setSCellEt() [2/2]

void xAOD::jFexTower_v1::setSCellEt ( std::vector< float > && )

setter

◆ setSCellEta() [1/2]

void xAOD::jFexTower_v1::setSCellEta ( const std::vector< float > & )

getter

◆ setSCellEta() [2/2]

void xAOD::jFexTower_v1::setSCellEta ( std::vector< float > && )

setter

◆ setSCellEtMeV()

void xAOD::jFexTower_v1::setSCellEtMeV ( float )

getter

◆ setSCellID() [1/2]

void xAOD::jFexTower_v1::setSCellID ( const std::vector< int > & )

getter

◆ setSCellID() [2/2]

void xAOD::jFexTower_v1::setSCellID ( std::vector< int > && )

setter

◆ setSCellMask() [1/2]

void xAOD::jFexTower_v1::setSCellMask ( const std::vector< bool > & )

getter

◆ setSCellMask() [2/2]

void xAOD::jFexTower_v1::setSCellMask ( std::vector< bool > && )

setter

◆ setSCellPhi() [1/2]

void xAOD::jFexTower_v1::setSCellPhi ( const std::vector< float > & )

getter

◆ setSCellPhi() [2/2]

void xAOD::jFexTower_v1::setSCellPhi ( std::vector< float > && )

setter

◆ setTileEt()

void xAOD::jFexTower_v1::setTileEt ( int )

getter

◆ setTileEta()

void xAOD::jFexTower_v1::setTileEta ( float )

getter

◆ setTileEtMeV()

void xAOD::jFexTower_v1::setTileEtMeV ( float )

getter

◆ setTilePhi()

void xAOD::jFexTower_v1::setTilePhi ( float )

getter

◆ TileEt()

int xAOD::jFexTower_v1::TileEt ( ) const

setter

Information about Tile Et

◆ TileEta()

float xAOD::jFexTower_v1::TileEta ( ) const

setter

Information about Tile Eta

◆ TileEtMeV()

float xAOD::jFexTower_v1::TileEtMeV ( ) const

setter

Information about Tile Et in MeV

◆ TilePhi()

float xAOD::jFexTower_v1::TilePhi ( ) const

setter

Information about Tile Phi


The documentation for this class was generated from the following files: