ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TestBeam
TBCnv
TBCnv
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
11
#include "
ByteStreamCnvSvcBase/IROBDataProviderSvc.h
"
12
13
#include "
AthenaBaseComps/AthAlgorithm.h
"
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
29
StatusCode
initialize
();
30
StatusCode
execute
(
const
EventContext& ctx);
31
StatusCode
finalize
();
32
33
private
:
34
int
m_count
;
35
ServiceHandle<IROBDataProviderSvc>
m_rdpSvc
;
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
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
AthAlgorithm.h
IROBDataProviderSvc.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
ServiceHandle
Definition
ClusterMakerTool.h:36
TBCheckBCIDs::TBCheckBCIDs
TBCheckBCIDs(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TBCheckBCIDs.cxx:17
TBCheckBCIDs::check_valid
bool check_valid(const T *frag, MsgStream &log)
Definition
TBCheckBCIDs.h:53
TBCheckBCIDs::m_rdpSvc
ServiceHandle< IROBDataProviderSvc > m_rdpSvc
Definition
TBCheckBCIDs.h:35
TBCheckBCIDs::m_RODIndex
NTuple::Item< long > m_RODIndex
Definition
TBCheckBCIDs.h:42
TBCheckBCIDs::finalize
StatusCode finalize()
Definition
TBCheckBCIDs.cxx:118
TBCheckBCIDs::m_EventID
NTuple::Item< long > m_EventID
Definition
TBCheckBCIDs.h:41
TBCheckBCIDs::~TBCheckBCIDs
~TBCheckBCIDs()
Definition
TBCheckBCIDs.cxx:25
TBCheckBCIDs::m_LVL1ID
NTuple::Item< long > m_LVL1ID
Definition
TBCheckBCIDs.h:41
TBCheckBCIDs::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
TBCheckBCIDs.cxx:60
TBCheckBCIDs::m_ntuplePtr
NTuple::Tuple * m_ntuplePtr
Definition
TBCheckBCIDs.h:40
TBCheckBCIDs::m_RODID
NTuple::Array< long > m_RODID
Definition
TBCheckBCIDs.h:43
TBCheckBCIDs::initialize
StatusCode initialize()
Definition
TBCheckBCIDs.cxx:27
TBCheckBCIDs::m_BCID
NTuple::Array< long > m_BCID
Definition
TBCheckBCIDs.h:44
TBCheckBCIDs::m_count
int m_count
Definition
TBCheckBCIDs.h:34
Generated on
for ATLAS Offline Software by
1.17.0