ATLAS Offline Software
Loading...
Searching...
No Matches
HistoryContainer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
9
10#include "TString.h"
11#include "TArrayI.h"
12#include <vector>
15
16#ifndef LArSamples_HistoryContainer_H
17#define LArSamples_HistoryContainer_H
18
19class LArShapeDumper;
20
21namespace LArSamples {
22
23 class D3PDConverter;
24 class DataContainer;
25 class SimpleShape;
26 class CellInfo;
27 class OFC;
28
30
31 public:
32
36
38 virtual ~HistoryContainer();
39
40 unsigned int nDataContainers() const { return m_data.size(); }
41 const DataContainer* dataContainer(unsigned int i) const { return m_data[i]; }
42
43 const CellInfo* cellInfo() const { return m_cellInfo.get(); }
44
46 void add(const DataContainer* data) { m_data.push_back(data); }
47
48 bool isValid() const;
49
50 double footprint() const;
51
52 friend class ::LArShapeDumper;
53 friend class D3PDConverter;
54
55 private:
56
57 CellInfo* cell_info() const { return m_cellInfo.get(); }
58
59 std::vector<const DataContainer*> m_data;
60 std::unique_ptr<CellInfo> m_cellInfo;
61
63 };
64}
65
67
68#endif
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
Definition AtlasPID.h:878
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
void add(const DataContainer *data)
append data (takes ownership)
HistoryContainer(CellInfo *cellInfo=0)
Constructor (takes ownership of LArCellInfo object)
std::vector< const DataContainer * > m_data
std::unique_ptr< CellInfo > m_cellInfo
const CellInfo * cellInfo() const
unsigned int nDataContainers() const
const DataContainer * dataContainer(unsigned int i) const