ATLAS Offline Software
TBCheckBCIDs.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 
8 #ifndef TBCHECKBCIDS
9 #define TBCHECKBCIDS
10 
12 
14 #include "GaudiKernel/MsgStream.h"
15 
16 
17 #include "GaudiKernel/INTupleSvc.h"
18 #include "GaudiKernel/NTuple.h"
19 #include "GaudiKernel/SmartDataPtr.h"
20 
21 class TBCheckBCIDs : public AthAlgorithm
22 {
23  public:
24  TBCheckBCIDs(const std::string & name, ISvcLocator * pSvcLocator);
25 
26  ~TBCheckBCIDs();
27 
28  //standart algorithm methods
32 
33  private:
34  int m_count;
36 
37  template <class T>
38  inline bool check_valid (const T* frag, MsgStream& log);
39 
40  NTuple::Tuple* m_ntuplePtr;
41  NTuple::Item<long> m_LVL1ID,m_EventID;
42  NTuple::Item<long> m_RODIndex;
43  NTuple::Array<long> m_RODID;
44  NTuple::Array<long> m_BCID;
45  //NTuple::Item<long> m_nRODS;
46 
47 };
48 
49 
50 
51 
52 template <class T>
53 inline bool TBCheckBCIDs::check_valid (const T* frag, MsgStream& log)
54 {
55  try
56  {
57  frag->check();
58  }
59  catch (...)
60  {
61  log << MSG::FATAL << "Invalid Fragment" << endmsg;
62  return false;
63  }
64  return true;
65 }
66 
67 
68 #endif
TBCheckBCIDs
Definition: TBCheckBCIDs.h:22
TBCheckBCIDs::m_EventID
NTuple::Item< long > m_EventID
Definition: TBCheckBCIDs.h:41
python.Constants.FATAL
int FATAL
Definition: Control/AthenaCommon/python/Constants.py:19
TBCheckBCIDs::~TBCheckBCIDs
~TBCheckBCIDs()
Definition: TBCheckBCIDs.cxx:25
AthAlgorithm.h
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
TBCheckBCIDs::m_RODID
NTuple::Array< long > m_RODID
Definition: TBCheckBCIDs.h:43
AthAlgorithm
Definition: AthAlgorithm.h:47
TBCheckBCIDs::m_count
int m_count
Definition: TBCheckBCIDs.h:34
TBCheckBCIDs::m_LVL1ID
NTuple::Item< long > m_LVL1ID
Definition: TBCheckBCIDs.h:41
TBCheckBCIDs::TBCheckBCIDs
TBCheckBCIDs(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TBCheckBCIDs.cxx:17
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TBCheckBCIDs::m_ntuplePtr
NTuple::Tuple * m_ntuplePtr
Definition: TBCheckBCIDs.h:40
TBCheckBCIDs::m_RODIndex
NTuple::Item< long > m_RODIndex
Definition: TBCheckBCIDs.h:42
TBCheckBCIDs::m_BCID
NTuple::Array< long > m_BCID
Definition: TBCheckBCIDs.h:44
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TBCheckBCIDs::execute
StatusCode execute()
Definition: TBCheckBCIDs.cxx:60
TBCheckBCIDs::m_rdpSvc
ServiceHandle< IROBDataProviderSvc > m_rdpSvc
Definition: TBCheckBCIDs.h:35
TBCheckBCIDs::initialize
StatusCode initialize()
Definition: TBCheckBCIDs.cxx:27
TBCheckBCIDs::check_valid
bool check_valid(const T *frag, MsgStream &log)
Definition: TBCheckBCIDs.h:53
IROBDataProviderSvc.h
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
ServiceHandle< IROBDataProviderSvc >
TBCheckBCIDs::finalize
StatusCode finalize()
Definition: TBCheckBCIDs.cxx:118