ATLAS Offline Software
Loading...
Searching...
No Matches
PRD_MultiTruthCollection_p1.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Dear emacs, this is -*-c++-*-
6
7// Andrei.Gaponenko@cern.ch, 2007
8
9
10#ifndef PRD_MULTITRUTHCOLLECTION_P1_H
11#define PRD_MULTITRUTHCOLLECTION_P1_H
12
13#ifdef __IDENTIFIER_PERS_VARSIZE__
14#include "Identifier/Identifier.h"
15#endif
16
18
19#include <vector>
20
21namespace Trk {
23 public:
24 // the lore is that Root does not split std::pair, so make our own class
25 struct Entry {
26// #ifdef __IDENTIFIER_PERS_VARSIZE__
27// Identifier::value_type id; // the Identifier
28// HepMcParticleLink_p1 particle;
29// Entry(Identifier::value_type i, const HepMcParticleLink_p1& p) : id(i), particle(p) {}
30// #else
31// unsigned int id; // the Identifier
32// HepMcParticleLink_p1 particle;
33// Entry(unsigned int i, const HepMcParticleLink_p1& p) : id(i), particle(p) {}
34// #endif
35 unsigned int id; // the Identifier
37 Entry(unsigned int i, const HepMcParticleLink_p1& p) : id(i), particle(p) {}
38
39 Entry() : id(0) {} // stupid call required by reflex dicts
40 };
41
42 typedef std::vector<Entry> CollectionType;
44 };
45}
46
47#endif/*PRD_MULTITRUTHCOLLECTION_P1_H*/
Ensure that the ATLAS eigen extensions are properly loaded.
Entry(unsigned int i, const HepMcParticleLink_p1 &p)