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