ATLAS Offline Software
Loading...
Searching...
No Matches
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>
13public:
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);
41private:
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>
48std::ostream& operator << (std::ostream&, const PileUpTimeEventIndex& index);
49
50class MsgStream;
51MsgStream& operator << (MsgStream&, const PileUpTimeEventIndex& index);
52#endif
std::ostream & operator<<(std::ostream &, const PileUpTimeEventIndex &index)
Definition index.py:1
a struct encapsulating the identifier of a pile-up event
index_type index() const
the index of the component event in PileUpEventInfo
static PileUpType ushortToType(unsigned short)
PileUpType type() const
the pileup type - minbias, cavern, beam halo, signal?
time_type time() const
bunch xing time in ns
PileUpTimeEventIndex(time_type time, index_type index, PileUpType typ)
static const std::string & typeName(PileUpType typ)