ATLAS Offline Software
Loading...
Searching...
No Matches
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
22{
23 public:
24 TBCheckBCIDs(const std::string & name, ISvcLocator * pSvcLocator);
25
27
28 //standart algorithm methods
29 StatusCode initialize();
30 StatusCode execute();
31 StatusCode finalize();
32
33 private:
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
52template <class T>
53inline 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
#define endmsg
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
TBCheckBCIDs(const std::string &name, ISvcLocator *pSvcLocator)
bool check_valid(const T *frag, MsgStream &log)
StatusCode execute()
ServiceHandle< IROBDataProviderSvc > m_rdpSvc
NTuple::Item< long > m_RODIndex
StatusCode finalize()
NTuple::Item< long > m_EventID
NTuple::Item< long > m_LVL1ID
NTuple::Tuple * m_ntuplePtr
NTuple::Array< long > m_RODID
StatusCode initialize()
NTuple::Array< long > m_BCID