ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
EventInfo
EventInfo
PileUpTimeEventIndex.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
/* -C++- */
6
#ifndef EVENTINFO_PILEUPTIMEEVENTINDEX_H
7
#define EVENTINFO_PILEUPTIMEEVENTINDEX_H 1
11
#include <string>
12
struct
PileUpTimeEventIndex
{
13
public
:
14
enum
PileUpType
{
15
Unknown
=-1,
16
Signal
=0,
17
MinimumBias
=1,
18
Cavern
=2,
19
HaloGas
=3,
20
HighPtMinimumBias
=4,
21
ZeroBias
=5,
22
NTYPES
23
};
24
typedef
long
time_type
;
25
typedef
unsigned
long
index_type
;
26
PileUpTimeEventIndex
();
27
PileUpTimeEventIndex
(
time_type
time
);
28
PileUpTimeEventIndex
(
time_type
time
,
index_type
index
);
29
PileUpTimeEventIndex
(
time_type
time
,
index_type
index
,
PileUpType
typ);
30
32
time_type
time
()
const
;
33
35
index_type
index
()
const
;
36
38
PileUpType
type
()
const
;
39
static
const
std::string&
typeName
(
PileUpType
typ);
40
static
PileUpType
ushortToType
(
unsigned
short
);
41
private
:
42
short
m_time
;
// time of the pileup event with respect to BC=0
43
short
m_index
;
// index of the pileup event
44
PileUpType
m_type
;
// type of the pileup event
45
};
46
47
#include <iostream>
48
std::ostream&
operator <<
(std::ostream&,
const
PileUpTimeEventIndex
&
index
);
49
50
class
MsgStream;
51
MsgStream&
operator <<
(MsgStream&,
const
PileUpTimeEventIndex
&
index
);
52
#endif
operator<<
std::ostream & operator<<(std::ostream &, const PileUpTimeEventIndex &index)
Definition
PileUpTimeEventIndex.cxx:86
index
Definition
index.py:1
PileUpTimeEventIndex
a struct encapsulating the identifier of a pile-up event
Definition
PileUpTimeEventIndex.h:12
PileUpTimeEventIndex::index_type
unsigned long index_type
Definition
PileUpTimeEventIndex.h:25
PileUpTimeEventIndex::PileUpType
PileUpType
Definition
PileUpTimeEventIndex.h:14
PileUpTimeEventIndex::MinimumBias
@ MinimumBias
Definition
PileUpTimeEventIndex.h:17
PileUpTimeEventIndex::HaloGas
@ HaloGas
Definition
PileUpTimeEventIndex.h:19
PileUpTimeEventIndex::HighPtMinimumBias
@ HighPtMinimumBias
Definition
PileUpTimeEventIndex.h:20
PileUpTimeEventIndex::Unknown
@ Unknown
Definition
PileUpTimeEventIndex.h:15
PileUpTimeEventIndex::Signal
@ Signal
Definition
PileUpTimeEventIndex.h:16
PileUpTimeEventIndex::ZeroBias
@ ZeroBias
Definition
PileUpTimeEventIndex.h:21
PileUpTimeEventIndex::Cavern
@ Cavern
Definition
PileUpTimeEventIndex.h:18
PileUpTimeEventIndex::NTYPES
@ NTYPES
Definition
PileUpTimeEventIndex.h:22
PileUpTimeEventIndex::index
index_type index() const
the index of the component event in PileUpEventInfo
Definition
PileUpTimeEventIndex.cxx:76
PileUpTimeEventIndex::ushortToType
static PileUpType ushortToType(unsigned short)
Definition
PileUpTimeEventIndex.cxx:25
PileUpTimeEventIndex::m_index
short m_index
Definition
PileUpTimeEventIndex.h:43
PileUpTimeEventIndex::time_type
long time_type
Definition
PileUpTimeEventIndex.h:24
PileUpTimeEventIndex::m_type
PileUpType m_type
Definition
PileUpTimeEventIndex.h:44
PileUpTimeEventIndex::type
PileUpType type() const
the pileup type - minbias, cavern, beam halo, signal?
Definition
PileUpTimeEventIndex.cxx:81
PileUpTimeEventIndex::time
time_type time() const
bunch xing time in ns
Definition
PileUpTimeEventIndex.cxx:71
PileUpTimeEventIndex::PileUpTimeEventIndex
PileUpTimeEventIndex(time_type time, index_type index, PileUpType typ)
PileUpTimeEventIndex::m_time
short m_time
Definition
PileUpTimeEventIndex.h:42
PileUpTimeEventIndex::typeName
static const std::string & typeName(PileUpType typ)
Definition
PileUpTimeEventIndex.cxx:13
PileUpTimeEventIndex::PileUpTimeEventIndex
PileUpTimeEventIndex()
Definition
PileUpTimeEventIndex.cxx:57
Generated on
for ATLAS Offline Software by
1.17.0