ATLAS Offline Software
TestTypesB.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 
3 /*
4  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
16 #ifndef TRIGNAVIGATION_TESTTYPESB_H
17 #define TRIGNAVIGATION_TESTTYPESB_H
18 
19 
23 
24 
25 namespace TrigNavTest {
26 
27 
28 class TestB : public SG::AuxElement{
29 public:
30  TestB() : b(0) { }
31  TestB(int v) : b(v) { }
32  ~TestB() { std::cerr << " deleting TestB: "<< b << std::endl; }
33  int value() const { return b; }
34  int b;
35 };
36 
37 
38 class TestBContainer : public DataVector<TestB> {
39 public:
41  : DataVector<TestB>(policy) { }
42 };
43 
44 
45 class TestBContainerView : public ViewVector<TestBContainer> {
46  public:
49 };
50 
51 
53 public:
55  std::vector<float> detail;
56 };
57 //HLT::AuxInit<TestAuxB> t;
58 
59 
60 } // namespace TrigNavTest
61 
62 
64 CLASS_DEF(TrigNavTest::TestBContainer, 96422, 1)
65 CLASS_DEF(TrigNavTest::TestBContainerView, 96423, 1)
66 CLASS_DEF(TrigNavTest::TestAuxB, 642311, 1)
67 DATAVECTOR_BASE(TrigNavTest::TestAuxB,xAOD::AuxContainerBase);
68 
69 
70 #endif // not TRIGNAVIGATION_TESTTYPESB_H
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
TrigNavTest::TestAuxB::TestAuxB
TestAuxB()
Definition: TestTypesB.h:54
SG::VIEW_ELEMENTS
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Definition: OwnershipPolicy.h:18
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:446
AuxContainerBase.h
xAOD::AuxContainerBase
Common base class for the auxiliary containers.
Definition: AuxContainerBase.h:59
TrigNavTest::TestB::~TestB
~TestB()
Definition: TestTypesB.h:32
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
detail
Definition: extract_histogram_tag.cxx:14
SG::OwnershipPolicy
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
Definition: OwnershipPolicy.h:16
TrigNavTest
Definition: TestTypesB.h:25
TrigNavTest::TestB::value
int value() const
Definition: TestTypesB.h:33
SG::OWN_ELEMENTS
@ OWN_ELEMENTS
this data object owns its elements
Definition: OwnershipPolicy.h:17
TrigNavTest::TestBContainerView
Definition: TestTypesB.h:45
TrigNavTest::TestB
Definition: TestTypesB.h:28
AUX_VARIABLE
#define AUX_VARIABLE(VAR,...)
Convenience macro for declaring an auxiliary variable.
Definition: AuxVariable.h:22
ViewVector
Identify view containers to be made persistent.
Definition: ViewVector.h:67
TrigNavTest::TestB::b
int b
Definition: TestTypesB.h:34
TrigNavTest::TestB::TestB
TestB()
Definition: TestTypesB.h:30
DATAVECTOR_BASE
DATAVECTOR_BASE(TrigNavTest::TestAuxB, xAOD::AuxContainerBase)
TrigNavTest::TestBContainerView::TestBContainerView
TestBContainerView()
Definition: TestTypesB.h:47
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
python.PyAthena.v
v
Definition: PyAthena.py:157
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
TrigNavTest::TestB::TestB
TestB(int v)
Definition: TestTypesB.h:31
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
TrigNavTest::TestBContainer::TestBContainer
TestBContainer(SG::OwnershipPolicy policy=SG::OWN_ELEMENTS)
Definition: TestTypesB.h:40
TrigNavTest::TestAuxB::detail
std::vector< float > detail
Definition: TestTypesB.h:55
TrigNavTest::TestAuxB
Definition: TestTypesB.h:52
TrigNavTest::TestBContainer
Definition: TestTypesB.h:38
AuxElement.h
Base class for elements of a container that can have aux data.