ATLAS Offline Software
Loading...
Searching...
No Matches
TrigPath.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
16#ifndef ATHENAPOOLTEST_TRIGPATH_H
17#define ATHENAPOOLTEST_TRIGPATH_H
18
19#include <string>
20#include <set>
21
23{
24public:
25 TrigPath() : pathID(-1), l1bit(-1), l2bit(0) {}
26 TrigPath(int l1, int l2, int p) :
27 pathID(p), l1bit(l1), l2bit(l2) {}
28 int pathID;
29 int l1bit;
30 int l2bit;
31
32 bool isValid() const {
33 return (pathID>-1&&pathID<64&&
34 l1bit>-1 &&l1bit<64&&
35 l2bit>-1 &&l2bit<64 );
36 }
37
38 bool operator==(const TrigPath& t) const
39 {return this->pathID==t.pathID;}
40 bool operator!=(const TrigPath& t) const
41 {return !(*this==t);}
42 bool operator<(const TrigPath& t) const
43 {return this->pathID<t.pathID;}
44};
45
47CLASS_DEF(TrigPath, 1287801, 0)
48#endif
49
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Support class for use in AthenaPoolMultiTest event splitting.
Definition TrigPath.h:23
TrigPath()
Definition TrigPath.h:25
TrigPath(int l1, int l2, int p)
Definition TrigPath.h:26
bool operator==(const TrigPath &t) const
Definition TrigPath.h:38
int pathID
Definition TrigPath.h:28
bool isValid() const
Definition TrigPath.h:32
bool operator!=(const TrigPath &t) const
Definition TrigPath.h:40
int l1bit
Definition TrigPath.h:29
bool operator<(const TrigPath &t) const
Definition TrigPath.h:42
int l2bit
Definition TrigPath.h:30