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

#include <CBNTAA_TBInfo.h>

Inheritance diagram for CBNTAA_TBInfo:
Collaboration diagram for CBNTAA_TBInfo:

Public Member Functions

 CBNTAA_TBInfo (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~CBNTAA_TBInfo ()
 
virtual StatusCode CBNT_initialize () override
 
virtual StatusCode CBNT_execute () override
 
virtual StatusCode CBNT_finalize () override
 
virtual StatusCode initialize () override
 
virtual StatusCode execute () override
 
virtual StatusCode finalize () override
 
virtual StatusCode pre_execute ()
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Types

enum  { NOT_VALID = -999 }
 

Protected Member Functions

template<class T >
void addBranch (const std::string &branchname, T &obj, const std::string &leaflist)
 
template<class T >
void addBranch (const std::string &branchname, T *&obj)
 
template<class T >
void addBranch (const std::string &branchname, T *&obj, int bufferSize, int splitLevel)
 
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Protected Attributes

std::string m_ntpath
 
std::string m_ntTitle
 
TTree * m_nt
 
MsgStream * m_log
 
const LArEM_IDm_emId
 
const LArHEC_IDm_hecId
 
const LArFCAL_IDm_fcalId
 
const LArOnlineIDm_onlineId
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

float GetEnergy (float CurrB3, float CurrB4)
 
float GetBdl3 (float current)
 
float GetBdl4 (float current)
 
float GetErrColl (float coll3_down, float coll3_up, float coll9_down, float coll9_up)
 
float GetErrAbsE (float energy)
 
float GetErrCurr (float currB3, float currB4)
 
float SyncLoss (float energy, float currB3, float currB4)
 
float SyncLossErr (float loss)
 
void calculateAll (int runNumber, int eventNumber)
 
virtual StatusCode CBNT_clear () override
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

TBCaloCoordinatem_coord
 
TBCondRunParToolm_runpar
 
bool m_DBRead
 
int m_beamener
 
int m_beamtype
 
bool m_computeBeamEnergy
 
bool m_dumpBeamLine
 
float m_B8_Bdl
 
bool m_is_VLE
 
int m_prevrunNum
 
float m_prevEnergy
 
float m_preverrAbsEnergy
 
float m_preverrCollimators
 
float m_preverrCurrents
 
float m_prevsycLoss
 
float m_preverrSycLoss
 
float m_prevB3
 
float m_prevB4
 
float m_prevB8
 
double m_runEta_nt
 
long m_runParticleType_nt
 
long m_runEnergy_nt
 
std::vector< float > * m_quad_file
 
std::vector< float > * m_quad_equip
 
std::vector< float > * m_bend_file
 
std::vector< float > * m_bend_equip
 
std::vector< float > * m_trim_file
 
std::vector< float > * m_trim_equip
 
std::vector< float > * m_coll_file
 
std::vector< float > * m_coll_equip
 
float m_energy
 
float m_errAbsEnergy
 
float m_errCollimators
 
float m_errCurrents
 
float m_sycLoss
 
float m_errSycLoss
 
bool m_initialized
 
DataObjIDColl m_extendedExtraObjects
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 13 of file CBNTAA_TBInfo.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
NOT_VALID 

Definition at line 56 of file CBNT_TBRecBase.h.

56 {NOT_VALID = -999};

Constructor & Destructor Documentation

◆ CBNTAA_TBInfo()

CBNTAA_TBInfo::CBNTAA_TBInfo ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 19 of file CBNTAA_TBInfo.cxx.

19  :
20 CBNT_TBRecBase(name, pSvcLocator)
21 {
22  declareProperty("DBRead", m_DBRead=false);
23  declareProperty("BeamEnergy", m_beamener);
24  declareProperty("BeamType", m_beamtype);
25  declareProperty("ComputeBeamEnergy", m_computeBeamEnergy=false);
26  declareProperty("DumpBeamLine", m_dumpBeamLine=true);
27  m_quad_file = NULL;
28  m_quad_equip = NULL;
29  m_bend_file = NULL;
30  m_bend_equip = NULL;
31  m_trim_file = NULL;
32  m_trim_equip = NULL;
33  m_coll_file = NULL;
34  m_coll_equip = NULL;
35  m_coord = 0;
36  m_runpar = 0;
37  m_B8_Bdl = 0;
38  m_energy = 0;
39  m_errAbsEnergy = 0;
40  m_errCollimators = 0;
41  m_errCurrents = 0;
42  m_errSycLoss = 0;
43  m_is_VLE = 0;
44  m_prevB3 = 0;
45  m_prevB4 = 0;
46  m_prevB8 = 0;
47  m_prevEnergy = 0;
51  m_preverrSycLoss = 0;
52  m_prevrunNum = 0;
53  m_prevsycLoss = 0;
54  m_runEnergy_nt = 0;
55  m_runEta_nt = 0;
57  m_sycLoss = 0;
58 }

◆ ~CBNTAA_TBInfo()

CBNTAA_TBInfo::~CBNTAA_TBInfo ( )
virtual

Definition at line 60 of file CBNTAA_TBInfo.cxx.

61 {
62  if(m_quad_file) delete m_quad_file;
63  if(m_quad_equip) delete m_quad_equip;
64  if(m_bend_file) delete m_bend_file;
65  if(m_bend_equip) delete m_bend_equip;
66  if(m_trim_file) delete m_trim_file;
67  if(m_trim_equip) delete m_trim_equip;
68  if(m_coll_file) delete m_coll_file;
69  if(m_coll_equip) delete m_coll_equip;
70 }

Member Function Documentation

◆ addBranch() [1/3]

template<class T >
void CBNT_TBRecBase::addBranch ( const std::string &  branchname,
T &  obj,
const std::string &  leaflist 
)
inlineprotectedinherited

Definition at line 44 of file CBNT_TBRecBase.h.

44  {
45  m_nt->Branch(branchname.c_str(), &obj, leaflist.c_str());
46  }

◆ addBranch() [2/3]

template<class T >
void CBNT_TBRecBase::addBranch ( const std::string &  branchname,
T *&  obj 
)
inlineprotectedinherited

Definition at line 47 of file CBNT_TBRecBase.h.

47  {
48  obj = new T();
49  m_nt->Branch(branchname.c_str(), &obj);
50  }

◆ addBranch() [3/3]

template<class T >
void CBNT_TBRecBase::addBranch ( const std::string &  branchname,
T *&  obj,
int  bufferSize,
int  splitLevel 
)
inlineprotectedinherited

Definition at line 51 of file CBNT_TBRecBase.h.

51  {
52  obj = new T();
53  m_nt->Branch(branchname.c_str(), &obj, bufferSize, splitLevel);
54  }

◆ calculateAll()

void CBNTAA_TBInfo::calculateAll ( int  runNumber,
int  eventNumber 
)
private

Definition at line 337 of file CBNTAA_TBInfo.cxx.

337  {
338 
339  int run = runNumber;
340  int event = eventNumber;
341 
342  ATH_MSG_VERBOSE( "run " << run );
343 
344  //check if the run is a VLE run then set the flag
345  if (((run < 2101225) && (run >= 2101022)) || ((run < 2102165) && (run >= 2102003)))
346  m_is_VLE=1;
347 
348  //starting from event=2 we dont have to recalculate the variables unless the run number changes
349  if (event > 1)
350  {
351  if (run == m_prevrunNum)
352  {
359 
360  return;
361  }
362  else
364  }
365 
368 
369  float bend_equip[9];
370  float coll_equip[24];
371 
372  int nc_quad = 22;
373  int nc_bend = 9;
374  int nc_trim = 10;
375  int nc_coll = 24;
376 
377  const char* folder;
378  if (m_dumpBeamLine == true)
379  {
380 // const GenericDbTable* dcstbl_quad_file[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
381 // const GenericDbTable* dcstbl_quad_equip[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
382 // const GenericDbTable* dcstbl_bend_file[9] = {0,0,0,0,0,0,0,0,0};
383 // const GenericDbTable* dcstbl_bend_equip[9] = {0,0,0,0,0,0,0,0,0};
384 // const GenericDbTable* dcstbl_trim_file[10] = {0,0,0,0,0,0,0,0,0,0};
385 // const GenericDbTable* dcstbl_trim_equip[10] = {0,0,0,0,0,0,0,0,0,0};
386 // const GenericDbTable* dcstbl_coll_file[24] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
387 // const GenericDbTable* dcstbl_coll_equip[24] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
388 
389 // int ncol_quad_file[22], nrow_quad_file[22];
390 // int ncol_bend_file[9], nrow_bend_file[9];
391 // int ncol_trim_file[10], nrow_trim_file[10];
392 // int ncol_coll_file[24], nrow_coll_file[24];
393 // int ncol_quad_equip[22], nrow_quad_equip[22];
394 // int ncol_bend_equip[9], nrow_bend_equip[9];
395 // int ncol_trim_equip[10], nrow_trim_equip[10];
396 // int ncol_coll_equip[24], nrow_coll_equip[24];
397 
398 // std::vector<std::string> names_quad_file[22], rows_quad_file[22];
399 // std::vector<std::string> names_bend_file[9], rows_bend_file[9];
400 // std::vector<std::string> names_trim_file[10], rows_trim_file[10];
401 // std::vector<std::string> names_coll_file[24], rows_coll_file[24];
402 // std::vector<std::string> names_quad_equip[22], rows_quad_equip[22];
403 // std::vector<std::string> names_bend_equip[9], rows_bend_equip[9];
404 // std::vector<std::string> names_trim_equip[10], rows_trim_equip[10];
405 // std::vector<std::string> names_coll_equip[24], rows_coll_equip[24];
406 
407  float quad_file[22];
408  float bend_file[9];
409  float trim_file[10];
410  float coll_file[24];
411  float quad_equip[22];
412  float trim_equip[10];
413 
414  m_quad_file->reserve(nc_quad);
415  m_quad_equip->reserve(nc_quad);
416  for (int i=0; i<nc_quad; i++)
417  {
418  quad_file[i] = -1;
419  quad_equip[i] = -1;
420  unsigned int val1;
421  unsigned int val2;
422 
423 #if 0
424  if (run < 1000454)
425  {
426  folder = "/TILE/DCS/SYSTEM1/BEAM";
427  }
428  else
429 #endif
430  {
431  folder = "/TILE/DCS/SYSTEM1/BEAM";
432  }
433  val1 = i+6;
434  val2 = i+48;
435 
436  if (StatusCode::SUCCESS!=m_runpar->getVal(folder,val1,quad_file[i])) {
437  ATH_MSG_ERROR( "Cannot find val" << val1 );
438  }
439  if (StatusCode::SUCCESS!=m_runpar->getVal(folder,val2,quad_equip[i])){
440  ATH_MSG_ERROR( "Cannot find val" << val2 );
441  }
442 
443  (*m_quad_file)[i] = quad_file[i];
444  (*m_quad_equip)[i] = quad_equip[i];
445  }
446 
447 
448  m_bend_file->reserve(nc_bend);
449  m_bend_equip->reserve(nc_bend);
450  for (int i=0; i<nc_bend; i++)
451  {
452  bend_file[i] = -1;
453  bend_equip[i] = -1;
454  unsigned int val1;
455  unsigned int val2;
456 
457  if (run < 1000454)
458  {
459  folder = "/TILE/DCS/SYSTEM1/BEAM";
460  }
461  else
462  {
463  folder = "/TILE/DCS/TILE_LV_62/BEAM";
464  }
465  val1 = i+28;
466  val2 = i+70;
467 
468  if (StatusCode::SUCCESS!=m_runpar->getVal(folder,val1,bend_file[i])) {
469  ATH_MSG_ERROR( "Cannot find val" << val1 );
470  }
471  if (StatusCode::SUCCESS!=m_runpar->getVal(folder,val2,bend_equip[i])) {
472  ATH_MSG_ERROR( "Cannot find val" << val2 );
473  }
474 
475  (*m_bend_file)[i] = bend_file[i];
476  (*m_bend_equip)[i] = bend_equip[i];
477 
478  //added on 12.03.2006 by H.Hakobyan for caching purposes
479  if (!m_is_VLE)
480  {
481  //if the currents B3 and B4 are the same as in previous event then quit..
482  if((m_prevB3 == bend_equip[2]) && (m_prevB4 == bend_equip[3]))
483  return;
484  }
485  else
486  {
487  //if the current B8 is the same as in previous event then quit..
488  if(m_prevB8 == bend_equip[7])
489  return;
490  }
491 
492  }
493 
494  m_trim_file->reserve(nc_trim);
495  m_trim_equip->reserve(nc_trim);
496  for (int i=0; i<nc_trim; i++)
497  {
498  trim_file[i] = -1;
499  trim_equip[i] = -1;
500  unsigned int val1;
501  unsigned int val2;
502 
503  if (run < 1000454)
504  {
505  folder = "/TILE/DCS/SYSTEM1/BEAM";
506  }
507  else
508  {
509  folder = "/TILE/DCS/TILE_LV_62/BEAM";
510  }
511  val1 = i+37;
512  val2 = i+79;
513 
514  if (StatusCode::SUCCESS!=m_runpar->getVal(folder,val1,trim_file[i])) {
515  ATH_MSG_ERROR( "Cannot find val" << val1 );
516  }
517  if (StatusCode::SUCCESS!=m_runpar->getVal(folder,val2,trim_equip[i])) {
518  ATH_MSG_ERROR( "Cannot find val" << val2 );
519  }
520 
521  (*m_trim_file)[i] = trim_file[i];
522  (*m_trim_equip)[i] = trim_equip[i];
523  }
524 
525 
526  m_coll_file->reserve(nc_coll);
527  m_coll_equip->reserve(nc_coll);
528  for (int i=0; i<nc_coll; i++)
529  {
530  coll_file[i] = -1;
531  coll_equip[i] = -1;
532  unsigned int val1;
533  unsigned int val2;
534 
535 
536  if (run < 1000454)
537  {
538  folder = "/TILE/DCS/SYSTEM1/BEAM";
539  }
540  else
541  {
542  folder = "/TILE/DCS/TILE_LV_62/BEAM";
543  }
544  val1 = i+90;
545  val2 = i+115;
546 
547  if (StatusCode::SUCCESS!=m_runpar->getVal(folder,val1,coll_file[i])) {
548  ATH_MSG_ERROR( "Cannot find val" << val1 );
549  }
550  if (StatusCode::SUCCESS!=m_runpar->getVal(folder,val2,coll_equip[i])) {
551  ATH_MSG_ERROR( "Cannot find val" << val2 );
552  }
553 
554  (*m_coll_file)[i] = coll_file[i];
555  (*m_coll_equip)[i] = coll_equip[i];
556  }
557 
558 
559  for (int i=0; i<nc_quad; i++)
560  {
561  ATH_MSG_DEBUG( "Q" << i+1 << " from file " << (*m_quad_file)[i] );
562  }
563  for (int i=0; i<nc_bend; i++)
564  {
565  ATH_MSG_DEBUG( "B" << i+1 << " from file " << (*m_bend_file)[i] );
566  }
567  for (int i=0; i<nc_trim; i++)
568  {
569  ATH_MSG_DEBUG( "Trim" << i+1 << " from file " << (*m_trim_file)[i] );
570  }
571  for (int i=0; i<nc_coll; i++)
572  {
573  int j = i/2;
574  if (i == 2*j)
575  {
576  ATH_MSG_DEBUG( "Coll" << j+1 << " from file (up or right position) " << (*m_coll_file)[i] );
577  ATH_MSG_DEBUG( "Coll" << j+1 << " from file (down or left position) " << (*m_coll_file)[i+1] );
578  }
579  }
580 
581 
582  for (int i=0; i<nc_quad; i++)
583  {
584  ATH_MSG_DEBUG( "Q" << i+1 << " from equipement " << (*m_quad_equip)[i] );
585  }
586  for (int i=0; i<nc_bend; i++)
587  {
588  ATH_MSG_DEBUG( "B" << i+1 << " from equipement " << (*m_bend_equip)[i] );
589  }
590  for (int i=0; i<nc_trim; i++)
591  {
592  ATH_MSG_DEBUG( "Trim" << i+1 << " from equipement " << (*m_trim_equip)[i] );
593  }
594  for (int i=0; i<nc_coll; i++)
595  {
596  int j = i/2;
597  if (i == 2*j)
598  {
599  ATH_MSG_DEBUG( "Coll" << j+1 << " from equipement (up or right position) " << (*m_coll_equip)[i] );
600  ATH_MSG_DEBUG( "Coll" << j+1 << " from file (down or left position) " << (*m_coll_equip)[i+1] );
601  }
602  }//for
603  }//end of if (m_dumpBeamLine = true)
604  else // if(m_dumpBeamLine == false)
605  {
606 // const GenericDbTable* dcstbl_bend_equip[9] = {0,0,0,0,0,0,0,0,0};
607 // const GenericDbTable* dcstbl_coll_equip[24] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
608 // int ncol_bend_equip[9], nrow_bend_equip[9];
609 // int ncol_coll_equip[9], nrow_coll_equip[9];
610 // std::vector<std::string> names_bend_equip[9], rows_bend_equip[9];
611 // std::vector<std::string> names_coll_equip[9], rows_coll_equip[9];
612 
613  for (int i=0; i<nc_bend; i++)
614  {
615  bend_equip[i] = -1;
616  unsigned int val2;
617 
618  if (run < 1000454)
619  {
620  folder = "/TILE/DCS/SYSTEM1/BEAM";
621  }
622  else
623  {
624  folder = "/TILE/DCS/TILE_LV_62/BEAM";
625  }
626  val2 = i+70;
627  if (StatusCode::SUCCESS!=m_runpar->getVal(folder,val2,bend_equip[i])) {
628  ATH_MSG_ERROR( "Cannot find val" << val2 );
629  }
630  }
631 
632 
633  for (int i=0; i<nc_coll; i++)
634  {
635  coll_equip[i] = -1;
636  unsigned int val2;
637 
638  if (run < 1000454)
639  {
640  folder = "/TILE/DCS/SYSTEM1/BEAM";
641  }
642  else
643  {
644  folder = "/TILE/DCS/TILE_LV_62/BEAM";
645  }
646  val2 = i+115;
647  if (StatusCode::SUCCESS!=m_runpar->getVal(folder,val2,coll_equip[i])) {
648  ATH_MSG_ERROR( "Cannot find val" << val2 );
649  }
650  }
651 
652  }//end of if(m_dumpBeamLine = false)
653 
654  //check if the run is a VLE run then set the flag
655  //if (((run < 2101225) && (run >= 2101022)) || ((run < 2102165) && (run >= 2102003)))
656  // m_is_VLE=1;
657 
658  // --- modifying the code introducing two cases - for VLE and HLE, with different beam energy calculations ---
659  if(m_is_VLE)//run is a VLE run
660  {
661 
662  //ATH_MSG_INFO( "THIS is a VLE run..." );
663  //ATH_MSG_INFO( "B8 current=" << bend_equip[7] );
664 
665  //a polynomial function giving the values of Bdl for any given B8 current value...MIGRAD method for 4th order polynome ...:)
666  // m_B8_Bdl = 0.00525593*bend_equip[7] + 0.00000410442*bend_equip[7]*bend_equip[7] -
667  // 0.00000000906592*bend_equip[7]*bend_equip[7]*bend_equip[7]+
668  // 0.00000000000345019*bend_equip[7]*bend_equip[7]*bend_equip[7]*bend_equip[7];
669 
670  //a polynomial function giving the values of Bdl for any given B8 current value...MINOS method ...for 5th order polynome:)
671  m_B8_Bdl = 0.00530982*bend_equip[7] + 0.00000328502*bend_equip[7]*bend_equip[7] -
672  0.00000000532397*bend_equip[7]*bend_equip[7]*bend_equip[7]-
673  0.00000000000276483*bend_equip[7]*bend_equip[7]*bend_equip[7]*bend_equip[7]+
674  0.000000000000003368*bend_equip[7]*bend_equip[7]*bend_equip[7]*bend_equip[7]*bend_equip[7];
675 
676  //beam energy calculation basedon a famous formula..
677  m_energy = 2.49826 * m_B8_Bdl;
679 
680  ATH_MSG_DEBUG( "B8dl=" << m_B8_Bdl );
681  ATH_MSG_DEBUG( "m_energy=" << m_energy );
682 
683  //C12 opening calculations... C12 is the onlycollimator which is responsible for VLE runs
684  float coll12_opening = (fabs(coll_equip[11]) + fabs(coll_equip[23]))/2.0;
685  m_errCollimators = sqrt(coll12_opening*coll12_opening)*(1./27);
686 
687  //calculation of errors of magnet currents..
688  m_errCurrents = GetErrCurr(bend_equip[6], bend_equip[7]);
689  m_sycLoss = SyncLoss(m_energy, bend_equip[6], bend_equip[7]);
691 
692  //for caching purposes
693  m_prevB8 = bend_equip[7];
694  }
695  else//run is a HLE run
696  {
697  m_energy = GetEnergy(bend_equip[2], bend_equip[3]);
699  m_errCollimators = GetErrColl(coll_equip[4], coll_equip[5], coll_equip[16], coll_equip[17]);
700  m_errCurrents = GetErrCurr(bend_equip[2], bend_equip[3]);
701  m_sycLoss = SyncLoss(m_energy, bend_equip[2], bend_equip[3]);
703 
704  //for caching purposes
705  m_prevB3 = bend_equip[2];
706  m_prevB4 = bend_equip[3];
707  }
708 
709  //assigning the previous vars for caching..
716 
717 
718 }

◆ CBNT_clear()

StatusCode CBNTAA_TBInfo::CBNT_clear ( )
overrideprivatevirtual

Reimplemented from CBNT_TBRecBase.

Definition at line 322 of file CBNTAA_TBInfo.cxx.

323 {
324  if(m_quad_file) m_quad_file->clear();
325  if(m_quad_equip) m_quad_equip->clear();
326  if(m_bend_file) m_bend_file->clear();
327  if(m_bend_equip) m_bend_equip->clear();
328  if(m_trim_file) m_trim_file->clear();
329  if(m_trim_equip) m_trim_equip->clear();
330  if(m_coll_file) m_coll_file->clear();
331  if(m_coll_equip) m_coll_equip->clear();
332 
333 
334  return StatusCode::SUCCESS;
335 }

◆ CBNT_execute()

StatusCode CBNTAA_TBInfo::CBNT_execute ( )
overridevirtual

Reimplemented from CBNT_TBRecBase.

Definition at line 126 of file CBNTAA_TBInfo.cxx.

126  {
127 
128  const EventContext& ctx = Gaudi::Hive::currentContext();
129 
132 
133  if ( m_DBRead ) {
134 
135  int run = ctx.eventID().run_number();
136  uint64_t event = ctx.eventID().event_number();
137 
138  ATH_MSG_VERBOSE( "run " << run );
139 
140  if((event > 0) && (m_prevrunNum==-1))
141  m_prevrunNum=run;//initializing the prev run
142 
143  IToolSvc* p_toolSvc = 0;
144  StatusCode sc = service("ToolSvc", p_toolSvc);
145  if (sc.isFailure())
146  {
147  ATH_MSG_ERROR( "Cannot find ToolSvc " );
148  return(StatusCode::FAILURE);
149  }
150 
151  // This tool handles the conversion between local and ctb coordinates
152  sc = p_toolSvc->retrieveTool("TBCaloCoordinate",m_coord);
153 
154  if(sc.isFailure() || !m_coord)
155  {
156  ATH_MSG_ERROR( "Cannot get TBCaloCoordinate tool" );
157  return(StatusCode::FAILURE);
158  }
159  else {
160  ATH_MSG_DEBUG( "Found TBCaloCoordinate tool" );
161  }
162 
164 
165  sc = p_toolSvc->retrieveTool("TBCondRunParTool",m_runpar);
166 
167  if(sc.isFailure() || !m_runpar)
168  {
169  ATH_MSG_ERROR( "Cannot get TBCondParTool" );
170  return(StatusCode::FAILURE);
171  }
172  else
173  {
174  ATH_MSG_DEBUG( "Found TBCondRunParTool" );
175  }
176 
177  if ( m_computeBeamEnergy ) {
178 
179  //below the calculation of all energies and their errors...
181 
182  ATH_MSG_DEBUG( "m_energy " << m_energy );
183  ATH_MSG_DEBUG( "m_errAbsEnergy " << m_errAbsEnergy );
184  ATH_MSG_DEBUG( "m_errCollimators " << m_errCollimators );
185  ATH_MSG_DEBUG( "m_errCurrents " << m_errCurrents );
186  ATH_MSG_DEBUG( "m_sycLoss " << m_sycLoss );
187  ATH_MSG_DEBUG( "m_errSycLoss " << m_errSycLoss );
188 
189  }
190 
191  }//end of if (m_DBRead)
192 
193  return StatusCode::SUCCESS;
194 }

◆ CBNT_finalize()

StatusCode CBNTAA_TBInfo::CBNT_finalize ( )
overridevirtual

Reimplemented from CBNT_TBRecBase.

Definition at line 315 of file CBNTAA_TBInfo.cxx.

315  {
316 
317  return StatusCode::SUCCESS;
318 }

◆ CBNT_initialize()

StatusCode CBNTAA_TBInfo::CBNT_initialize ( )
overridevirtual

Reimplemented from CBNT_TBRecBase.

Definition at line 72 of file CBNTAA_TBInfo.cxx.

72  {
73 
74  StatusCode sc;
75 
76  addBranch("EVENT_RunEta", m_runEta_nt,"RunEta/D");
77  addBranch("EVENT_RunPartType", m_runParticleType_nt,"RunPartType/l");
78  addBranch("EVENT_RunEnergy", m_runEnergy_nt,"RunEnergy/l");
79  addBranch("EVENT_Energy", m_energy,"Energy/f");
80 
81  if ( m_computeBeamEnergy ) {
82 
83  addBranch("EVENT_ErrAbsEnergy", m_errAbsEnergy,"ErrAbsEnergy/f");
84  addBranch("EVENT_ErrCollimators", m_errCollimators,"ErrCollimators/f");
85  addBranch("EVENT_ErrCurrents", m_errCurrents,"ErrCurrents/f");
86  addBranch("EVENT_SyncLoss", m_sycLoss,"SyncLoss/f");
87  addBranch("EVENT_ErrSyncLoss", m_errSycLoss,"ErrSyncLoss/f");
88 
89  if ( m_dumpBeamLine ) {
90 
91  addBranch("EVENT_Quad_file", m_quad_file);
92  addBranch("EVENT_Quad_equip", m_quad_equip);
93 
94  addBranch("EVENT_Bend_file", m_bend_file);
95  addBranch("EVENT_Bend_equip", m_bend_equip);
96 
97  addBranch("EVENT_Trim_file", m_trim_file);
98  addBranch("EVENT_Trim_equip", m_trim_equip);
99 
100  addBranch("EVENT_Coll_file", m_coll_file);
101  addBranch("EVENT_Coll_equip", m_coll_equip);
102  }
103 
104  }
105 
106  //VLE flag set to false
107  m_is_VLE=0;
108  //Bdl value of B8 magnet is also set to 0 - the case for HLE runs..
109  m_B8_Bdl=0.0;
110  //set a previous vars to -1
111  m_prevrunNum = -1;
112  m_prevEnergy = -1.0;
113  m_preverrAbsEnergy = -1.0;
114  m_preverrCollimators = -1.0;
115  m_preverrCurrents = -1.0;
116  m_prevsycLoss = -1.0;
117  m_preverrSycLoss = -1.0;
118  m_prevB3 = -1.0;
119  m_prevB4 = -1.0;
120  m_prevB8 = -1.0;
121 
122  return StatusCode::SUCCESS;
123 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode CBNT_TBRecBase::execute ( )
overridevirtualinherited

Definition at line 157 of file CBNT_TBRecBase.cxx.

157  {
158 
159  StatusCode sc;
160 
161  // run pre-execution
162  try {
163  sc = this->pre_execute();
164  }
165 
166  catch( const std::exception& Exception ) {
167  *m_log << MSG::ERROR << " Standard exception "
168  << Exception.what()
169  << " caught from sub-algorithm::CBNT_pre_execute (). Disable !" << endmsg ;
170  sc = this->setProperty(BooleanProperty( "Enable",false ) );
171  return StatusCode::FAILURE;
172 
173  }
174  catch (...) {
175  *m_log << MSG::ERROR << " Unknown exception "
176  << " caught from sub-algorithm::CBNT_pre_execute (). Disable !" << endmsg ;
177  sc = this->setProperty(BooleanProperty( "Enable",false ) );
178  return StatusCode::FAILURE;
179  }
180 
181  if (sc.isFailure()) {
182  *m_log << MSG::ERROR << "CBNT_pre_execute() failed. Disable !" << endmsg;
183  sc = this->setProperty(BooleanProperty( "Enable",false ) );
184  return sc;
185  }
186 
187  // now subalgorithm execution
188  try {
189  sc = this->CBNT_execute();
190  }
191 
192  catch( const std::exception& Exception ) {
193  *m_log << MSG::ERROR << " Standard exception "
194  << Exception.what()
195  << " caught from sub-algorithm::CBNT_execute () :" << endmsg ;
196  return StatusCode::FAILURE;
197  }
198  catch (...) {
199  *m_log << MSG::ERROR << " Unknown exception "
200  << " caught from sub-algorithm::CBNT_execute () :" << endmsg ;
201  return StatusCode::FAILURE;
202  }
203 
204  return sc;
205 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 50 of file AthAlgorithm.cxx.

51 {
52  // If we didn't find any symlinks to add, just return the collection
53  // from the base class. Otherwise, return the extended collection.
54  if (!m_extendedExtraObjects.empty()) {
56  }
57  return Algorithm::extraOutputDeps();
58 }

◆ finalize()

StatusCode CBNT_TBRecBase::finalize ( )
overridevirtualinherited

Definition at line 208 of file CBNT_TBRecBase.cxx.

208  {
209 
210  StatusCode sc;
211 
212  //now subalgorithm finalisation
213  try {
214  sc = this->CBNT_finalize();
215  }
216  catch( const std::exception& Exception ) {
217  *m_log << MSG::ERROR << " Standard exception "
218  << Exception.what()
219  << " caught from sub-algorithm::CBNT_finalize () :" << endmsg ;
220  }
221  catch (...) {
222  *m_log << MSG::ERROR << " Unknown exception "
223  << " caught from sub-algorithm::CBNT_finalize () :" << endmsg ;
224  }
225 
226  return sc;
227 }

◆ GetBdl3()

float CBNTAA_TBInfo::GetBdl3 ( float  current)
private

Definition at line 210 of file CBNTAA_TBInfo.cxx.

211 {
212  float Bend3_low[2] = {0.0079347, 0.021813};
213  float Bend3_high[4] = {0.437329, 0.0212849, 0.00000355516, -0.0000000147542};
214 
215  float Bdl3 = 0;
216 
217  current = fabs(current);
218 
219  if (current <= 824.12) Bdl3 = Bend3_low[0] + Bend3_low[1]*current;
220  else Bdl3 = Bend3_high[0] + Bend3_high[1]*current + Bend3_high[2]*(current-824.12)*(current-824.12) + Bend3_high[3]*(current-824.12)*(current-824.12)*(current-824.12);
221 
222  return Bdl3;
223 }

◆ GetBdl4()

float CBNTAA_TBInfo::GetBdl4 ( float  current)
private

Definition at line 226 of file CBNTAA_TBInfo.cxx.

227 {
228  float Bend4_low[2] = {0.00786406, 0.021814};
229  float Bend4_high[4] = {0.434258, 0.0212899, 0.00000356113, -0.0000000147379};
230 
231  float Bdl4 = 0;
232 
233  current = fabs(current);
234 
235  if (current <= 824.12) Bdl4 = Bend4_low[0] + Bend4_low[1]*current;
236  else Bdl4 = Bend4_high[0] + Bend4_high[1]*current + Bend4_high[2]*(current-824.12)*(current-824.12) + Bend4_high[3]*(current-824.12)*(current-824.12)*(current-824.12);
237 
238  return Bdl4;
239 }

◆ GetEnergy()

float CBNTAA_TBInfo::GetEnergy ( float  CurrB3,
float  CurrB4 
)
private

Definition at line 199 of file CBNTAA_TBInfo.cxx.

200 {
201  float Bdltot = GetBdl3(currB3) + GetBdl4(currB4);
202 
203  float energy = (0.3/41.)*Bdltot * 1000;
204 
205  return energy;
206 }

◆ GetErrAbsE()

float CBNTAA_TBInfo::GetErrAbsE ( float  energy)
private

Definition at line 252 of file CBNTAA_TBInfo.cxx.

253 {
254  float fac = 25./energy;
255  float err_abs = sqrt(fac*fac + 0.5*0.5);
256 
257  return err_abs;
258 }

◆ GetErrColl()

float CBNTAA_TBInfo::GetErrColl ( float  coll3_down,
float  coll3_up,
float  coll9_down,
float  coll9_up 
)
private

Definition at line 242 of file CBNTAA_TBInfo.cxx.

243 {
244  float coll3_opening = (fabs(coll3_down) + fabs(coll3_up))/2.0;
245  float coll9_opening = (fabs(coll9_down) + fabs(coll9_up))/2.0;
246 
247  float errcoll = sqrt(coll3_opening*coll3_opening + coll9_opening*coll9_opening)*(1./27);
248 
249  return errcoll;
250 }

◆ GetErrCurr()

float CBNTAA_TBInfo::GetErrCurr ( float  currB3,
float  currB4 
)
private

Definition at line 261 of file CBNTAA_TBInfo.cxx.

262 {
263  float Bdl3 = GetBdl3(currB3);
264  float Bdl4 = GetBdl4(currB4);
265 
266  float Bdl_tot = Bdl3 + Bdl4;
267 
268  float errBdl3 = (GetBdl3(currB3 + 0.1) - GetBdl3(currB3 - 0.1))/2;
269  float errBdl4 = (GetBdl4(currB4 + 0.1) - GetBdl4(currB4 - 0.1))/2;
270  const float fac3 = errBdl3/Bdl3;
271  const float fac4 = errBdl4/Bdl4;
272  float errBdl = sqrt(fac3*fac3 + fac4*fac4)*Bdl_tot;
273 
274  float resField = sqrt(0.0010*0.0010 + 0.0010*0.0010);
275 
276  errBdl = sqrt(errBdl*errBdl + resField*resField + Bdl_tot*0.0003 * Bdl_tot*0.0003)/Bdl_tot*100;
277 
278  return errBdl;
279 }

◆ initialize()

StatusCode CBNT_TBRecBase::initialize ( )
overridevirtualinherited

Definition at line 22 of file CBNT_TBRecBase.cxx.

22  {
23  m_log=new MsgStream(msgSvc(), name());
24 
25  *m_log << MSG::DEBUG << "Initializing CBNT_TBRecBase base class" << endmsg;
26 
27  const CaloCell_ID* idHelper = nullptr;
28  ATH_CHECK( detStore()->retrieve (idHelper, "CaloCell_ID") );
29  m_emId=idHelper->em_idHelper();
30  m_fcalId=idHelper->fcal_idHelper();
31  m_hecId=idHelper->hec_idHelper();
32 
33 
34  if (!m_emId) {
35  (*m_log) << MSG::ERROR << "Could not access lar EM ID helper" << endmsg;
36  return StatusCode::FAILURE;
37  }
38  if (!m_fcalId) {
39  (*m_log) << MSG::ERROR << "Could not access lar FCAL ID helper" << endmsg;
40  return StatusCode::FAILURE;
41  }
42  if (!m_hecId) {
43  (*m_log) << MSG::ERROR << "Could not access lar HEC ID helper" << endmsg;
44  return StatusCode::FAILURE;
45  }
46 
47  StatusCode sc = detStore()->retrieve(m_onlineId, "LArOnlineID");
48  if (sc.isFailure()) {
49  (*m_log) << MSG::ERROR << "Could not get LArOnlineID helper !" << endmsg;
50  return StatusCode::FAILURE;
51  }
52  else {
53  (*m_log) << MSG::DEBUG << " Found the LArOnlineID helper. " << endmsg;
54  }
55 
56 
57  m_initialized=true;
58  return StatusCode::SUCCESS;
59 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ msg() [1/2]

MsgStream& AthCommonMsg< Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ pre_execute()

StatusCode CBNT_TBRecBase::pre_execute ( )
virtualinherited

Definition at line 61 of file CBNT_TBRecBase.cxx.

61  {
62 
63  StatusCode sc;
64 
65  if(!m_initialized) {
66 
67  if (m_ntpath.size()==0 || m_ntTitle.size()==0) {
68  *m_log << MSG::ERROR << "Need to set variable 'm_ntpath' and 'm_ntTitle' in constructor of deriving class!" << endmsg;
69  return StatusCode::FAILURE;
70  }
71 
72  size_t i=m_ntpath.rfind('/');
73  if (i==std::string::npos) {
74  *m_log << MSG::ERROR << "Expected at least on '/' in path " << m_ntpath << endmsg;
75  return StatusCode::FAILURE;
76  }
77  std::string basepath(m_ntpath.begin(),m_ntpath.begin()+i);
78  //std::cout << "Basepath" << basepath << std::endl;
79 
80  // retrive pointer to THistSvc
81  ITHistSvc * tHistSvc = 0;
82  sc = Gaudi::svcLocator()->service("THistSvc", tHistSvc);
83  if (sc.isFailure()) {
84  *m_log << MSG::ERROR << "Unable to retrieve pointer to THistSvc" << endmsg;
85  return sc;
86  }
87  // get TTree
88  sc = tHistSvc->getTree(m_ntpath,m_nt);
89  if (sc.isFailure()) {
90  *m_log << MSG::ERROR << "Unable to retrieve TTree : " << m_ntpath << endmsg;
91  return sc;
92  }
93  /*
94  NTupleFilePtr file1(ntupleSvc(),basepath);
95  if (!file1){
96  (*m_log) << MSG::ERROR << "Could not get NTupleFilePtr with path " << basepath << " failed" << endmsg;
97  return StatusCode::FAILURE;
98  }
99  NTuplePtr nt(ntupleSvc(),m_ntpath);
100  if (!nt) {
101  nt=ntupleSvc()->book(m_ntpath,CLID_ColumnWiseTuple,m_ntTitle);
102  }
103  if (!nt){
104  (*m_log) << MSG::ERROR << "Booking of NTuple at "<< m_ntpath << " and name " << m_ntTitle << " failed" << endmsg;
105  return StatusCode::FAILURE;
106  }
107  m_nt=nt;
108  */
109  //std::cout << "Ntuple ptr:" << m_nt << std::endl;
110 
111  // subalgorithm initialisation
112  try {
113  sc = this->CBNT_initialize();
114  }
115  catch( const std::exception& Exception ) {
116  *m_log << MSG::ERROR << " Standard exception "
117  << Exception.what()
118  << " caught from sub-algorithm::CBNT_initialize () :" << endmsg ;
119  }
120  catch (...) {
121  *m_log << MSG::ERROR << " Unknown exception "
122  << " caught from sub-algorithm::CBNT_initialize () :" << endmsg ;
123  }
124 
125  if (sc.isFailure())
126  {
127  *m_log << MSG::ERROR << "CBNT_initialize() failed" << endmsg;
128  return sc;
129  }
130 
131  m_initialized=true;
132  }
133 
134  // clear data members
135  try {
136  sc = this->CBNT_clear();
137  }
138  catch( const std::exception& Exception ) {
139  *m_log << MSG::ERROR << " Standard exception "
140  << Exception.what()
141  << " caught from sub-algorithm::CBNT_clear () :" << endmsg ;
142  }
143  catch (...) {
144  *m_log << MSG::ERROR << " Unknown exception "
145  << " caught from sub-algorithm::CBNT_clear () :" << endmsg ;
146  }
147 
148  if (sc.isFailure()) {
149  *m_log << MSG::ERROR << "CBNT_clear() failed" << endmsg;
150  return sc;
151  }
152 
153  return StatusCode::SUCCESS ;
154 }

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< Algorithm > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ SyncLoss()

float CBNTAA_TBInfo::SyncLoss ( float  energy,
float  currB3,
float  currB4 
)
private

Definition at line 283 of file CBNTAA_TBInfo.cxx.

284 {
285  float Lmag = 5.127;
286 
287  float Bdl_B3 = GetBdl3(currB3);
288  float Bdl_B4 = GetBdl4(currB4);
289 
290  float B2dl_B3 = (Bdl_B3 * Bdl_B3)*(1./(Lmag*9));
291  float B2dl_B4 = (Bdl_B4 * Bdl_B4)*(1./(Lmag*9));
292  float B2dl_tot = B2dl_B3 + B2dl_B4;
293 
294  float B5suB34 = 0.19;
295  float B6suB34 = 0.22;
296  float B56lB34 = 0.25;
297 
298  float B2dl_B5 = (B2dl_B3 + B2dl_B4)*B5suB34*B5suB34*B56lB34;
299  float B2dl_B6 = (B2dl_B3 + B2dl_B4)*B6suB34*B6suB34*B56lB34;
300 
301  float loss = 0.00000127*energy*energy*(3*B2dl_tot/2 + B2dl_B5 + B2dl_B6);
302  return loss;
303 }

◆ SyncLossErr()

float CBNTAA_TBInfo::SyncLossErr ( float  loss)
private

Definition at line 307 of file CBNTAA_TBInfo.cxx.

308 {
309  float errloss = loss * 0.02;
310  return errloss;
311 }

◆ sysInitialize()

StatusCode AthAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, PyAthena::Alg, and AthHistogramAlgorithm.

Definition at line 66 of file AthAlgorithm.cxx.

66  {
68 
69  if (sc.isFailure()) {
70  return sc;
71  }
72  ServiceHandle<ICondSvc> cs("CondSvc",name());
73  for (auto h : outputHandles()) {
74  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75  // do this inside the loop so we don't create the CondSvc until needed
76  if ( cs.retrieve().isFailure() ) {
77  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78  return StatusCode::SUCCESS;
79  }
80  if (cs->regHandle(this,*h).isFailure()) {
81  sc = StatusCode::FAILURE;
82  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83  << " with CondSvc");
84  }
85  }
86  }
87  return sc;
88 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_B8_Bdl

float CBNTAA_TBInfo::m_B8_Bdl
private

Definition at line 41 of file CBNTAA_TBInfo.h.

◆ m_beamener

int CBNTAA_TBInfo::m_beamener
private

Definition at line 35 of file CBNTAA_TBInfo.h.

◆ m_beamtype

int CBNTAA_TBInfo::m_beamtype
private

Definition at line 36 of file CBNTAA_TBInfo.h.

◆ m_bend_equip

std::vector<float>* CBNTAA_TBInfo::m_bend_equip
private

Definition at line 68 of file CBNTAA_TBInfo.h.

◆ m_bend_file

std::vector<float>* CBNTAA_TBInfo::m_bend_file
private

Definition at line 67 of file CBNTAA_TBInfo.h.

◆ m_coll_equip

std::vector<float>* CBNTAA_TBInfo::m_coll_equip
private

Definition at line 74 of file CBNTAA_TBInfo.h.

◆ m_coll_file

std::vector<float>* CBNTAA_TBInfo::m_coll_file
private

Definition at line 73 of file CBNTAA_TBInfo.h.

◆ m_computeBeamEnergy

bool CBNTAA_TBInfo::m_computeBeamEnergy
private

Definition at line 37 of file CBNTAA_TBInfo.h.

◆ m_coord

TBCaloCoordinate* CBNTAA_TBInfo::m_coord
private

Definition at line 32 of file CBNTAA_TBInfo.h.

◆ m_DBRead

bool CBNTAA_TBInfo::m_DBRead
private

Definition at line 34 of file CBNTAA_TBInfo.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_dumpBeamLine

bool CBNTAA_TBInfo::m_dumpBeamLine
private

Definition at line 38 of file CBNTAA_TBInfo.h.

◆ m_emId

const LArEM_ID* CBNT_TBRecBase::m_emId
protectedinherited

Definition at line 65 of file CBNT_TBRecBase.h.

◆ m_energy

float CBNTAA_TBInfo::m_energy
private

Definition at line 76 of file CBNTAA_TBInfo.h.

◆ m_errAbsEnergy

float CBNTAA_TBInfo::m_errAbsEnergy
private

Definition at line 77 of file CBNTAA_TBInfo.h.

◆ m_errCollimators

float CBNTAA_TBInfo::m_errCollimators
private

Definition at line 78 of file CBNTAA_TBInfo.h.

◆ m_errCurrents

float CBNTAA_TBInfo::m_errCurrents
private

Definition at line 79 of file CBNTAA_TBInfo.h.

◆ m_errSycLoss

float CBNTAA_TBInfo::m_errSycLoss
private

Definition at line 81 of file CBNTAA_TBInfo.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_fcalId

const LArFCAL_ID* CBNT_TBRecBase::m_fcalId
protectedinherited

Definition at line 67 of file CBNT_TBRecBase.h.

◆ m_hecId

const LArHEC_ID* CBNT_TBRecBase::m_hecId
protectedinherited

Definition at line 66 of file CBNT_TBRecBase.h.

◆ m_initialized

bool CBNT_TBRecBase::m_initialized
privateinherited

Definition at line 40 of file CBNT_TBRecBase.h.

◆ m_is_VLE

bool CBNTAA_TBInfo::m_is_VLE
private

Definition at line 42 of file CBNTAA_TBInfo.h.

◆ m_log

MsgStream* CBNT_TBRecBase::m_log
protectedinherited

Definition at line 63 of file CBNT_TBRecBase.h.

◆ m_nt

TTree* CBNT_TBRecBase::m_nt
protectedinherited

Definition at line 61 of file CBNT_TBRecBase.h.

◆ m_ntpath

std::string CBNT_TBRecBase::m_ntpath
protectedinherited

Definition at line 58 of file CBNT_TBRecBase.h.

◆ m_ntTitle

std::string CBNT_TBRecBase::m_ntTitle
protectedinherited

Definition at line 58 of file CBNT_TBRecBase.h.

◆ m_onlineId

const LArOnlineID* CBNT_TBRecBase::m_onlineId
protectedinherited

Definition at line 68 of file CBNT_TBRecBase.h.

◆ m_prevB3

float CBNTAA_TBInfo::m_prevB3
private

Definition at line 52 of file CBNTAA_TBInfo.h.

◆ m_prevB4

float CBNTAA_TBInfo::m_prevB4
private

Definition at line 53 of file CBNTAA_TBInfo.h.

◆ m_prevB8

float CBNTAA_TBInfo::m_prevB8
private

Definition at line 54 of file CBNTAA_TBInfo.h.

◆ m_prevEnergy

float CBNTAA_TBInfo::m_prevEnergy
private

Definition at line 46 of file CBNTAA_TBInfo.h.

◆ m_preverrAbsEnergy

float CBNTAA_TBInfo::m_preverrAbsEnergy
private

Definition at line 47 of file CBNTAA_TBInfo.h.

◆ m_preverrCollimators

float CBNTAA_TBInfo::m_preverrCollimators
private

Definition at line 48 of file CBNTAA_TBInfo.h.

◆ m_preverrCurrents

float CBNTAA_TBInfo::m_preverrCurrents
private

Definition at line 49 of file CBNTAA_TBInfo.h.

◆ m_preverrSycLoss

float CBNTAA_TBInfo::m_preverrSycLoss
private

Definition at line 51 of file CBNTAA_TBInfo.h.

◆ m_prevrunNum

int CBNTAA_TBInfo::m_prevrunNum
private

Definition at line 45 of file CBNTAA_TBInfo.h.

◆ m_prevsycLoss

float CBNTAA_TBInfo::m_prevsycLoss
private

Definition at line 50 of file CBNTAA_TBInfo.h.

◆ m_quad_equip

std::vector<float>* CBNTAA_TBInfo::m_quad_equip
private

Definition at line 65 of file CBNTAA_TBInfo.h.

◆ m_quad_file

std::vector<float>* CBNTAA_TBInfo::m_quad_file
private

Definition at line 64 of file CBNTAA_TBInfo.h.

◆ m_runEnergy_nt

long CBNTAA_TBInfo::m_runEnergy_nt
private

Definition at line 62 of file CBNTAA_TBInfo.h.

◆ m_runEta_nt

double CBNTAA_TBInfo::m_runEta_nt
private

Definition at line 60 of file CBNTAA_TBInfo.h.

◆ m_runpar

TBCondRunParTool* CBNTAA_TBInfo::m_runpar
private

Definition at line 33 of file CBNTAA_TBInfo.h.

◆ m_runParticleType_nt

long CBNTAA_TBInfo::m_runParticleType_nt
private

Definition at line 61 of file CBNTAA_TBInfo.h.

◆ m_sycLoss

float CBNTAA_TBInfo::m_sycLoss
private

Definition at line 80 of file CBNTAA_TBInfo.h.

◆ m_trim_equip

std::vector<float>* CBNTAA_TBInfo::m_trim_equip
private

Definition at line 71 of file CBNTAA_TBInfo.h.

◆ m_trim_file

std::vector<float>* CBNTAA_TBInfo::m_trim_file
private

Definition at line 70 of file CBNTAA_TBInfo.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
CBNTAA_TBInfo::m_quad_file
std::vector< float > * m_quad_file
Definition: CBNTAA_TBInfo.h:64
fillPileUpNoiseLumi.current
current
Definition: fillPileUpNoiseLumi.py:52
CBNTAA_TBInfo::m_errAbsEnergy
float m_errAbsEnergy
Definition: CBNTAA_TBInfo.h:77
CBNTAA_TBInfo::m_coll_file
std::vector< float > * m_coll_file
Definition: CBNTAA_TBInfo.h:73
CBNTAA_TBInfo::GetErrColl
float GetErrColl(float coll3_down, float coll3_up, float coll9_down, float coll9_up)
Definition: CBNTAA_TBInfo.cxx:242
CBNT_TBRecBase::CBNT_finalize
virtual StatusCode CBNT_finalize()
Definition: CBNT_TBRecBase.h:36
CBNTAA_TBInfo::calculateAll
void calculateAll(int runNumber, int eventNumber)
Definition: CBNTAA_TBInfo.cxx:337
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
CBNT_TBRecBase::m_nt
TTree * m_nt
Definition: CBNT_TBRecBase.h:61
CBNT_TBRecBase::m_initialized
bool m_initialized
Definition: CBNT_TBRecBase.h:40
CaloCell_ID::em_idHelper
const LArEM_ID * em_idHelper() const
access to EM idHelper
Definition: CaloCell_ID.h:63
CBNTAA_TBInfo::m_runParticleType_nt
long m_runParticleType_nt
Definition: CBNTAA_TBInfo.h:61
CBNTAA_TBInfo::SyncLossErr
float SyncLossErr(float loss)
Definition: CBNTAA_TBInfo.cxx:307
CBNTAA_TBInfo::GetErrAbsE
float GetErrAbsE(float energy)
Definition: CBNTAA_TBInfo.cxx:252
CBNTAA_TBInfo::m_prevEnergy
float m_prevEnergy
Definition: CBNTAA_TBInfo.h:46
CBNTAA_TBInfo::m_runpar
TBCondRunParTool * m_runpar
Definition: CBNTAA_TBInfo.h:33
CBNTAA_TBInfo::m_energy
float m_energy
Definition: CBNTAA_TBInfo.h:76
TBCondRunParTool::beam_energy
int beam_energy()
Definition: TBCondRunParTool.h:86
AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
CBNT_TBRecBase::m_onlineId
const LArOnlineID * m_onlineId
Definition: CBNT_TBRecBase.h:68
CBNTAA_TBInfo::GetErrCurr
float GetErrCurr(float currB3, float currB4)
Definition: CBNTAA_TBInfo.cxx:261
CBNTAA_TBInfo::m_preverrAbsEnergy
float m_preverrAbsEnergy
Definition: CBNTAA_TBInfo.h:47
CBNTAA_TBInfo::m_prevB8
float m_prevB8
Definition: CBNTAA_TBInfo.h:54
CBNT_TBRecBase::CBNT_clear
virtual StatusCode CBNT_clear()
Definition: CBNT_TBRecBase.h:37
CBNT_TBRecBase::CBNT_initialize
virtual StatusCode CBNT_initialize()
Definition: CBNT_TBRecBase.h:34
CBNTAA_TBInfo::m_trim_equip
std::vector< float > * m_trim_equip
Definition: CBNTAA_TBInfo.h:71
CBNT_TBRecBase::CBNT_execute
virtual StatusCode CBNT_execute()
Definition: CBNT_TBRecBase.h:35
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
CBNTAA_TBInfo::m_bend_equip
std::vector< float > * m_bend_equip
Definition: CBNTAA_TBInfo.h:68
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
CBNTAA_TBInfo::m_B8_Bdl
float m_B8_Bdl
Definition: CBNTAA_TBInfo.h:41
CBNTAA_TBInfo::m_prevB4
float m_prevB4
Definition: CBNTAA_TBInfo.h:53
CBNTAA_TBInfo::m_is_VLE
bool m_is_VLE
Definition: CBNTAA_TBInfo.h:42
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
CBNTAA_TBInfo::m_sycLoss
float m_sycLoss
Definition: CBNTAA_TBInfo.h:80
CBNTAA_TBInfo::m_coord
TBCaloCoordinate * m_coord
Definition: CBNTAA_TBInfo.h:32
CBNTAA_TBInfo::m_errCollimators
float m_errCollimators
Definition: CBNTAA_TBInfo.h:78
CBNTAA_TBInfo::GetEnergy
float GetEnergy(float CurrB3, float CurrB4)
Definition: CBNTAA_TBInfo.cxx:199
CBNT_TBRecBase::NOT_VALID
@ NOT_VALID
Definition: CBNT_TBRecBase.h:56
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
CaloCell_ID::hec_idHelper
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
Definition: CaloCell_ID.h:69
AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
RTTAlgmain.branchname
string branchname
Definition: RTTAlgmain.py:60
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
CBNTAA_TBInfo::m_prevB3
float m_prevB3
Definition: CBNTAA_TBInfo.h:52
CBNTAA_TBInfo::m_trim_file
std::vector< float > * m_trim_file
Definition: CBNTAA_TBInfo.h:70
CBNTAA_TBInfo::m_computeBeamEnergy
bool m_computeBeamEnergy
Definition: CBNTAA_TBInfo.h:37
CBNTAA_TBInfo::m_preverrSycLoss
float m_preverrSycLoss
Definition: CBNTAA_TBInfo.h:51
AthCommonDataStore
Definition: AthCommonDataStore.h:52
CBNTAA_TBInfo::GetBdl3
float GetBdl3(float current)
Definition: CBNTAA_TBInfo.cxx:210
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
CBNT_TBRecBase::m_emId
const LArEM_ID * m_emId
Definition: CBNT_TBRecBase.h:65
CBNT_TBRecBase::m_fcalId
const LArFCAL_ID * m_fcalId
Definition: CBNT_TBRecBase.h:67
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
lumiFormat.i
int i
Definition: lumiFormat.py:92
CBNTAA_TBInfo::m_beamener
int m_beamener
Definition: CBNTAA_TBInfo.h:35
CBNT_TBRecBase::m_log
MsgStream * m_log
Definition: CBNT_TBRecBase.h:63
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
CBNTAA_TBInfo::SyncLoss
float SyncLoss(float energy, float currB3, float currB4)
Definition: CBNTAA_TBInfo.cxx:283
CBNTAA_TBInfo::m_prevsycLoss
float m_prevsycLoss
Definition: CBNTAA_TBInfo.h:50
CBNT_TBRecBase::addBranch
void addBranch(const std::string &branchname, T &obj, const std::string &leaflist)
Definition: CBNT_TBRecBase.h:44
CBNTAA_TBInfo::m_beamtype
int m_beamtype
Definition: CBNTAA_TBInfo.h:36
calibdata.exception
exception
Definition: calibdata.py:496
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
run
Definition: run.py:1
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
xAOD::eventNumber
eventNumber
Definition: EventInfo_v1.cxx:124
CBNT_TBRecBase::CBNT_TBRecBase
CBNT_TBRecBase(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CBNT_TBRecBase.cxx:12
CBNT_TBRecBase::m_hecId
const LArHEC_ID * m_hecId
Definition: CBNT_TBRecBase.h:66
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
beamspotman.basepath
string basepath
Definition: beamspotman.py:1018
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CBNTAA_TBInfo::m_DBRead
bool m_DBRead
Definition: CBNTAA_TBInfo.h:34
CBNTAA_TBInfo::m_quad_equip
std::vector< float > * m_quad_equip
Definition: CBNTAA_TBInfo.h:65
CBNTAA_TBInfo::m_preverrCurrents
float m_preverrCurrents
Definition: CBNTAA_TBInfo.h:49
CBNTAA_TBInfo::GetBdl4
float GetBdl4(float current)
Definition: CBNTAA_TBInfo.cxx:226
TBCondRunParTool::getVal
StatusCode getVal(const std::string &folder, const unsigned int chnum, float &fval)
Definition: TBCondRunParTool.cxx:143
TBCondRunParTool::beam_type
int beam_type()
Definition: TBCondRunParTool.h:84
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
DEBUG
#define DEBUG
Definition: page_access.h:11
TBCaloCoordinate::beam_local_eta
double beam_local_eta()
the most common use-case : the H8 beam goes along the x axis -> that are the local calorimeters eta a...
Definition: TBCaloCoordinate.cxx:201
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
CBNTAA_TBInfo::m_bend_file
std::vector< float > * m_bend_file
Definition: CBNTAA_TBInfo.h:67
CBNT_TBRecBase::pre_execute
virtual StatusCode pre_execute()
Definition: CBNT_TBRecBase.cxx:61
CaloCondBlobAlgs_fillNoiseFromASCII.folder
folder
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:56
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
CBNT_TBRecBase::m_ntTitle
std::string m_ntTitle
Definition: CBNT_TBRecBase.h:58
CBNT_TBRecBase::m_ntpath
std::string m_ntpath
Definition: CBNT_TBRecBase.h:58
python.PyAthena.obj
obj
Definition: PyAthena.py:135
CBNTAA_TBInfo::m_preverrCollimators
float m_preverrCollimators
Definition: CBNTAA_TBInfo.h:48
CBNTAA_TBInfo::m_runEta_nt
double m_runEta_nt
Definition: CBNTAA_TBInfo.h:60
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
CBNTAA_TBInfo::m_prevrunNum
int m_prevrunNum
Definition: CBNTAA_TBInfo.h:45
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
CaloCell_ID::fcal_idHelper
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper
Definition: CaloCell_ID.h:75
CBNTAA_TBInfo::m_errSycLoss
float m_errSycLoss
Definition: CBNTAA_TBInfo.h:81
fitman.k
k
Definition: fitman.py:528
CBNTAA_TBInfo::m_coll_equip
std::vector< float > * m_coll_equip
Definition: CBNTAA_TBInfo.h:74
CBNTAA_TBInfo::m_runEnergy_nt
long m_runEnergy_nt
Definition: CBNTAA_TBInfo.h:62
CBNTAA_TBInfo::m_errCurrents
float m_errCurrents
Definition: CBNTAA_TBInfo.h:79
CBNTAA_TBInfo::m_dumpBeamLine
bool m_dumpBeamLine
Definition: CBNTAA_TBInfo.h:38
ServiceHandle< ICondSvc >