ATLAS Offline Software
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
8 
11 #include <string>
13 public:
14  enum PileUpType {
15  Unknown=-1,
16  Signal=0,
18  Cavern=2,
22  NTYPES
23  };
24  typedef long time_type;
25  typedef unsigned long index_type;
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
PileUpTimeEventIndex::Cavern
@ Cavern
Definition: PileUpTimeEventIndex.h:18
PileUpTimeEventIndex::index_type
unsigned long index_type
Definition: PileUpTimeEventIndex.h:25
index
Definition: index.py:1
PileUpTimeEventIndex::m_index
short m_index
Definition: PileUpTimeEventIndex.h:43
PileUpTimeEventIndex::index
index_type index() const
the index of the component event in PileUpEventInfo
Definition: PileUpTimeEventIndex.cxx:76
PileUpTimeEventIndex::m_time
short m_time
Definition: PileUpTimeEventIndex.h:42
PileUpTimeEventIndex::MinimumBias
@ MinimumBias
Definition: PileUpTimeEventIndex.h:17
PileUpTimeEventIndex::PileUpTimeEventIndex
PileUpTimeEventIndex(time_type time, index_type index, PileUpType typ)
PileUpTimeEventIndex::HaloGas
@ HaloGas
Definition: PileUpTimeEventIndex.h:19
PileUpTimeEventIndex::ZeroBias
@ ZeroBias
Definition: PileUpTimeEventIndex.h:21
PileUpTimeEventIndex::time_type
long time_type
Definition: PileUpTimeEventIndex.h:24
PileUpTimeEventIndex::Signal
@ Signal
Definition: PileUpTimeEventIndex.h:16
PileUpTimeEventIndex::PileUpTimeEventIndex
PileUpTimeEventIndex()
Definition: PileUpTimeEventIndex.cxx:57
PileUpTimeEventIndex::time
time_type time() const
bunch xing time in ns
Definition: PileUpTimeEventIndex.cxx:71
PileUpType
For details on how the MC particles are defined and organized see https://twiki.cern....
Definition: PileUpType.h:33
PileUpTimeEventIndex::typeName
static const std::string & typeName(PileUpType typ)
Definition: PileUpTimeEventIndex.cxx:13
PileUpTimeEventIndex::ushortToType
static PileUpType ushortToType(unsigned short)
Definition: PileUpTimeEventIndex.cxx:25
PileUpTimeEventIndex::m_type
PileUpType m_type
Definition: PileUpTimeEventIndex.h:44
PileUpTimeEventIndex::HighPtMinimumBias
@ HighPtMinimumBias
Definition: PileUpTimeEventIndex.h:20
PileUpTimeEventIndex
a struct encapsulating the identifier of a pile-up event
Definition: PileUpTimeEventIndex.h:12
PileUpTimeEventIndex::type
PileUpType type() const
the pileup type - minbias, cavern, beam halo, signal?
Definition: PileUpTimeEventIndex.cxx:81
operator<<
std::ostream & operator<<(std::ostream &, const PileUpTimeEventIndex &index)
Definition: PileUpTimeEventIndex.cxx:86
PileUpTimeEventIndex::NTYPES
@ NTYPES
Definition: PileUpTimeEventIndex.h:22
PileUpTimeEventIndex::Unknown
@ Unknown
Definition: PileUpTimeEventIndex.h:15