#include <TForwardElectronIsEMSelector.h>
|
| | TForwardElectronIsEMSelector (const char *name="TForwardElectronIsEMSelector") |
| | Standard constructor.
|
| | ~TForwardElectronIsEMSelector () |
| | Standard destructor.
|
| StatusCode | initialize () |
| | Initialize this class.
|
| asg::AcceptData | accept () const |
| | Return dummy accept with only info.
|
| unsigned int | calocuts_electrons (float eta, float nvtx, float secondLambda, float lateral, float longitudinal, float fracMax, float centerLambda, float secondR, unsigned int iflag) const |
| const asg::AcceptInfo & | getAcceptInfo () const |
| | accesss to the accept info object
|
| void | setLevel (MSG::Level lvl) |
| | Change the current logging level.
|
| bool | msgLvl (const MSG::Level lvl) const |
| | Test the output level of the object.
|
| MsgStream & | msg () const |
| | The standard message stream.
|
| MsgStream & | msg (const MSG::Level lvl) const |
| | The standard message stream.
|
◆ TForwardElectronIsEMSelector()
| TForwardElectronIsEMSelector::TForwardElectronIsEMSelector |
( |
const char * | name = "TForwardElectronIsEMSelector" | ) |
|
Standard constructor.
Definition at line 15 of file TForwardElectronIsEMSelector.cxx.
17 : asg::AsgMessaging(std::string(name))
19 ,
20
22 ,
23
24
25
26
28 ,
29
31 ,
32
34 ,
35
37 ,
38
40 ,
41
43 ,
44
46 ,
47
48
49
50
52 ,
53
55 ,
56
58 ,
59
61 ,
62
64 ,
65
67{
74}
int m_cutPositionLONGITUDINAL_ForwardElectron
const std::string m_cutNameSECONDLAMBDA_ForwardElectron
int m_cutPositionCENTERLAMBDA_ForwardElectron
const std::string m_cutNameLATERAL_ForwardElectron
unsigned int m_isEMMask
which subset of cuts to apply
const std::string m_cutNameSECONDR_ForwardElectron
const std::string m_cutNameLONGITUDINAL_ForwardElectron
int m_cutPositionCELLMAXFRAC_ForwardElectron
int m_cutPositionBinEta_ForwardElectron
cluster eta range
int m_cutPositionSECONDR_ForwardElectron
const std::string m_cutNameBinEta_ForwardElectron
int m_cutPositionSECONDLAMBDA_ForwardElectron
int m_cutPositionLATERAL_ForwardElectron
const std::string m_cutNameCELLMAXFRAC_ForwardElectron
const std::string m_cutNameCENTERLAMBDA_ForwardElectron
◆ ~TForwardElectronIsEMSelector()
| TForwardElectronIsEMSelector::~TForwardElectronIsEMSelector |
( |
| ) |
|
|
default |
◆ accept()
◆ calocuts_electrons()
| unsigned int TForwardElectronIsEMSelector::calocuts_electrons |
( |
float | eta, |
|
|
float | nvtx, |
|
|
float | secondLambda, |
|
|
float | lateral, |
|
|
float | longitudinal, |
|
|
float | fracMax, |
|
|
float | centerLambda, |
|
|
float | secondR, |
|
|
unsigned int | iflag ) const |
Definition at line 163 of file TForwardElectronIsEMSelector.cxx.
182{
183
184
186 int ibin_nvtx =
bins.at(0);
187 int ibin_eta =
bins.at(1);
188 int ibin_combined =
bins.at(2);
189
190
194 }
195
196
197 if (ibin_eta >= 0 && ibin_nvtx >= 0 && ibin_combined >= 0) {
198
199
204 << secondR << " > "
206 }
207 }
208
213 << secondLambda << " > "
215 }
216 }
217
218
223 << lateral << " > "
225 }
226 }
227
232 << longitudinal << " > "
234 }
235 }
236
241 << fracMax << " < "
243 }
244 }
245
250 << centerLambda << " > "
252 }
253 }
254 }
255
256 return iflag;
257}
Scalar eta() const
pseudorapidity method
static const std::vector< std::string > bins
std::vector< float > m_cutLONGITUDINAL_ForwardElectron
cut on longitudinal
std::vector< float > m_cutCELLMAXFRAC_ForwardElectron
cut on maxFrac
bool checkVar(const std::vector< T > &vec, int choice) const
std::vector< float > m_cutLATERAL_ForwardElectron
cut on lateral
std::vector< float > m_cutCENTERLAMBDA_ForwardElectron
cut on centerlambda
std::vector< int > findNvtxEtaBin(float nvtx, double eta) const
std::vector< float > m_cutSECONDR_ForwardElectron
cut values for cut on secondR
std::vector< float > m_cutSECONDLAMBDA_ForwardElectron
cut on secondlambda
@ LONGITUDINAL_ForwardElectron
Longitudinal shape moment.
@ CENTERLAMBDA_ForwardElectron
center lambda shape moment
@ SECONDR_ForwardElectron
secondR shape moment
@ CELLMAXFRAC_ForwardElectron
cell max frac shape moment
@ LATERAL_ForwardElectron
lateral shape moment
@ SECONDLAMBDA_ForwardElectron
second lambda shape moment
@ BinEta_ForwardElectron
cluster eta range
◆ checkVar()
template<typename T>
| template bool TForwardElectronIsEMSelector::checkVar< int > |
( |
const std::vector< T > & | vec, |
|
|
int | choice ) const |
|
private |
Definition at line 323 of file TForwardElectronIsEMSelector.cxx.
325{
326
327
328
329
330
331
332
333
334
336 return false;
337
339 unsigned int etaTRTNB = 1;
341
342 unsigned int combinedNB = 0;
343 unsigned int combinedTRTNB = 0;
344
345 if (etNB > 1) {
346
347 combinedNB = (etaNB - 1) * (etNB - 1);
348 } else {
349 combinedNB = etaNB;
350 }
351
352 combinedTRTNB = etaTRTNB;
353
354
355 if (choice == 0) {
356 if (
vec.size() != 1) {
358 return false;
359 }
360 }
361
362
363 if (choice == 1) {
364 if (
vec.size() != etaNB) {
366 << etaNB);
367 return false;
368 }
369 }
370
371 if (choice == 2) {
372 if (
vec.size() != etaTRTNB) {
374 << etaTRTNB);
375 return false;
376 }
377 }
378
379
380 if (choice == 3) {
381 if (
vec.size() != etNB) {
383 << etNB);
384 return false;
385 }
386 }
387
388
389 if (choice == 4) {
390 if (
vec.size() != combinedNB) {
392 << combinedNB);
393 return false;
394 }
395 }
396
397
398 if (choice == 5) {
399 if (
vec.size() != combinedTRTNB) {
401 << combinedTRTNB);
402 return false;
403 }
404 }
405 return true;
406}
std::vector< size_t > vec
std::vector< float > m_cutBinEta_ForwardElectron
range of eta bins for e-ID
std::vector< float > m_cutVxp_ForwardElectron
range of NPV bins for e-ID
◆ fillAccept()
| asg::AcceptData TForwardElectronIsEMSelector::fillAccept |
( |
unsigned int | isEM | ) |
const |
|
private |
Definition at line 150 of file TForwardElectronIsEMSelector.cxx.
151{
153 for (
int i = 0;
i < 7;
i++) {
155 acceptData.setCutResult(i, (isEM & mask) == 0);
156 }
158 return acceptData;
159}
◆ findNvtxEtaBin()
| std::vector< int > TForwardElectronIsEMSelector::findNvtxEtaBin |
( |
float | nvtx, |
|
|
double | eta ) const |
|
private |
Definition at line 260 of file TForwardElectronIsEMSelector.cxx.
261{
262
263 int ibin_nvtx = -1;
264
267 ++ibinNVTX) {
268 if (ibinNVTX == 0) {
270 ibin_nvtx = ibinNVTX;
271 }
275 ibin_nvtx = ibinNVTX;
276 }
279 ibin_nvtx = ibinNVTX;
280 }
281 }
282 }
283 }
284 int ibin_eta = -1;
285
287 ++ibinEta) {
288 if (ibinEta == 0) {
290 ibin_eta = ibinEta;
291 }
295 ibin_eta = ibinEta;
296 }
299 ibin_eta = ibinEta;
300 }
301 }
302 }
303
304
305 int ibin_combined = -1;
306 if (ibin_eta == 2) {
307 ibin_combined = ibin_nvtx * ibin_eta - 1;
308 } else if (ibin_eta == 1) {
309 ibin_combined = 2 * (ibin_nvtx * ibin_eta - 1);
310 } else {
312 }
313
314
315 std::vector<int>
bins{ ibin_nvtx, ibin_eta, ibin_combined };
317}
◆ getAcceptInfo()
| const asg::AcceptInfo & Root::TForwardElectronIsEMSelector::getAcceptInfo |
( |
| ) |
const |
|
inline |
◆ initialize()
| StatusCode TForwardElectronIsEMSelector::initialize |
( |
| ) |
|
Initialize this class.
Definition at line 83 of file TForwardElectronIsEMSelector.cxx.
84{
85
87
88
89
90
91
92
93
97 sc = StatusCode::FAILURE;
98
99
100
101
102
103
104
105
109 sc = StatusCode::FAILURE;
110
111
115 sc = StatusCode::FAILURE;
116
117
121 sc = StatusCode::FAILURE;
122
123
127 sc = StatusCode::FAILURE;
128
129
133 sc = StatusCode::FAILURE;
134
135
139 sc = StatusCode::FAILURE;
140
141 if (
sc == StatusCode::FAILURE) {
143 "Exceeded the number of allowed cuts in TForwardElectronIsEMSelector");
144 }
145
147}
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ initMessaging()
| void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
40{
42
43 if (
m_lvl == MSG::NIL) {
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)
◆ msg() [1/2]
| MsgStream & asg::AsgMessaging::msg |
( |
| ) |
const |
|
inherited |
The standard message stream.
- Returns
- A reference to the default message stream of this object.
Definition at line 49 of file AsgMessaging.cxx.
49 {
50#ifndef XAOD_STANDALONE
51 return ::AthMessaging::msg();
52#else
53 return m_msg;
54#endif
55 }
◆ msg() [2/2]
| MsgStream & asg::AsgMessaging::msg |
( |
const MSG::Level | lvl | ) |
const |
|
inherited |
The standard message stream.
- Parameters
-
| lvl | The message level to set the stream to |
- Returns
- A reference to the default message stream, set to level "lvl"
Definition at line 57 of file AsgMessaging.cxx.
57 {
58#ifndef XAOD_STANDALONE
59 return ::AthMessaging::msg( lvl );
60#else
61 m_msg << lvl;
62 return m_msg;
63#endif
64 }
◆ msgLvl()
| bool asg::AsgMessaging::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inherited |
Test the output level of the object.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicting if messages at given level will be printed
-
true If messages at level "lvl" will be printed
Definition at line 41 of file AsgMessaging.cxx.
41 {
42#ifndef XAOD_STANDALONE
43 return ::AthMessaging::msgLvl( lvl );
44#else
45 return m_msg.msgLevel( lvl );
46#endif
47 }
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ ::AsgForwardElectronIsEMSelector
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_acceptInfo
◆ m_cutBinEta_ForwardElectron
| std::vector<float> Root::TForwardElectronIsEMSelector::m_cutBinEta_ForwardElectron |
◆ m_cutCELLMAXFRAC_ForwardElectron
| std::vector<float> Root::TForwardElectronIsEMSelector::m_cutCELLMAXFRAC_ForwardElectron |
◆ m_cutCENTERLAMBDA_ForwardElectron
| std::vector<float> Root::TForwardElectronIsEMSelector::m_cutCENTERLAMBDA_ForwardElectron |
◆ m_cutLATERAL_ForwardElectron
| std::vector<float> Root::TForwardElectronIsEMSelector::m_cutLATERAL_ForwardElectron |
◆ m_cutLONGITUDINAL_ForwardElectron
| std::vector<float> Root::TForwardElectronIsEMSelector::m_cutLONGITUDINAL_ForwardElectron |
◆ m_cutNameBinEta_ForwardElectron
| const std::string Root::TForwardElectronIsEMSelector::m_cutNameBinEta_ForwardElectron |
|
private |
◆ m_cutNameCELLMAXFRAC_ForwardElectron
| const std::string Root::TForwardElectronIsEMSelector::m_cutNameCELLMAXFRAC_ForwardElectron |
|
private |
◆ m_cutNameCENTERLAMBDA_ForwardElectron
| const std::string Root::TForwardElectronIsEMSelector::m_cutNameCENTERLAMBDA_ForwardElectron |
|
private |
◆ m_cutNameLATERAL_ForwardElectron
| const std::string Root::TForwardElectronIsEMSelector::m_cutNameLATERAL_ForwardElectron |
|
private |
◆ m_cutNameLONGITUDINAL_ForwardElectron
| const std::string Root::TForwardElectronIsEMSelector::m_cutNameLONGITUDINAL_ForwardElectron |
|
private |
◆ m_cutNameSECONDLAMBDA_ForwardElectron
| const std::string Root::TForwardElectronIsEMSelector::m_cutNameSECONDLAMBDA_ForwardElectron |
|
private |
◆ m_cutNameSECONDR_ForwardElectron
| const std::string Root::TForwardElectronIsEMSelector::m_cutNameSECONDR_ForwardElectron |
|
private |
◆ m_cutNameVxp_ForwardElectron
| const std::string Root::TForwardElectronIsEMSelector::m_cutNameVxp_ForwardElectron |
|
private |
◆ m_cutPositionBinEta_ForwardElectron
| int Root::TForwardElectronIsEMSelector::m_cutPositionBinEta_ForwardElectron |
|
private |
◆ m_cutPositionCELLMAXFRAC_ForwardElectron
| int Root::TForwardElectronIsEMSelector::m_cutPositionCELLMAXFRAC_ForwardElectron |
|
private |
◆ m_cutPositionCENTERLAMBDA_ForwardElectron
| int Root::TForwardElectronIsEMSelector::m_cutPositionCENTERLAMBDA_ForwardElectron |
|
private |
◆ m_cutPositionLATERAL_ForwardElectron
| int Root::TForwardElectronIsEMSelector::m_cutPositionLATERAL_ForwardElectron |
|
private |
◆ m_cutPositionLONGITUDINAL_ForwardElectron
| int Root::TForwardElectronIsEMSelector::m_cutPositionLONGITUDINAL_ForwardElectron |
|
private |
◆ m_cutPositionSECONDLAMBDA_ForwardElectron
| int Root::TForwardElectronIsEMSelector::m_cutPositionSECONDLAMBDA_ForwardElectron |
|
private |
◆ m_cutPositionSECONDR_ForwardElectron
| int Root::TForwardElectronIsEMSelector::m_cutPositionSECONDR_ForwardElectron |
|
private |
◆ m_cutSECONDLAMBDA_ForwardElectron
| std::vector<float> Root::TForwardElectronIsEMSelector::m_cutSECONDLAMBDA_ForwardElectron |
◆ m_cutSECONDR_ForwardElectron
| std::vector<float> Root::TForwardElectronIsEMSelector::m_cutSECONDR_ForwardElectron |
◆ m_cutVxp_ForwardElectron
| std::vector<float> Root::TForwardElectronIsEMSelector::m_cutVxp_ForwardElectron |
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_isEMMask
| unsigned int Root::TForwardElectronIsEMSelector::m_isEMMask |
◆ m_lvl
| std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
The documentation for this class was generated from the following files: