CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
pat::TriggerObjectStandAlone Class Reference

Analysis-level trigger object class (stand-alone) More...

#include "DataFormats/PatCandidates/interface/TriggerObjectStandAlone.h"

Inheritance diagram for pat::TriggerObjectStandAlone:
pat::TriggerObject reco::LeafCandidate reco::Candidate

Public Member Functions

void addAlgorithmName (const std::string &algorithmName, bool algoCondAccepted=true)
 Adds a new L1 algorithm name. More...
 
void addConditionName (const std::string &conditionName)
 Adds a new L1 condition name. More...
 
void addFilterLabel (const std::string &filterLabel)
 Methods. More...
 
void addPathName (const std::string &pathName, bool pathLastFilterAccepted=true, bool pathL3FilterAccepted=true)
 Adds a new HLT path name. More...
 
bool algo (const std::string &algorithmName, unsigned algoCondAccepted=1) const
 Calls 'hasAlgorithmName(...)'. More...
 
std::vector< std::string > algorithmNames (bool algoCondAccepted=true) const
 Gets all L1 algorithm names. More...
 
virtual bool coll (const std::string &collName) const
 Calls 'hasCollection(...)' (method override) More...
 
bool cond (const std::string &conditionName) const
 Calls 'hasConditionName(...)'. More...
 
const std::vector< std::string > & conditionNames () const
 Gets all L1 condition names. More...
 
bool filter (const std::string &filterLabel) const
 Calls 'hasFilterLabel(...)'. More...
 
const std::vector< std::string > & filterLabels () const
 Gets all HLT filter labels. More...
 
bool hasAlgoCondAccepted () const
 
bool hasAlgorithmName (const std::string &algorithmName, bool algoCondAccepted=true) const
 Checks, if a certain L1 algorithm name is assigned. More...
 
virtual bool hasCollection (const std::string &collName) const
 Checks, if a certain label of original collection is assigned (method overrides) More...
 
virtual bool hasCollection (const edm::InputTag &collName) const
 
bool hasConditionName (const std::string &conditionName) const
 Checks, if a certain L1 condition name is assigned. More...
 
bool hasFilterLabel (const std::string &filterLabel) const
 Checks, if a certain HLT filter label is assigned. More...
 
bool hasPathL3FilterAccepted () const
 
bool hasPathLastFilterAccepted () const
 Checks, if the usage indicator vector has been filled. More...
 
bool hasPathName (const std::string &pathName, bool pathLastFilterAccepted=false, bool pathL3FilterAccepted=true) const
 Checks, if a certain HLT path name is assigned. More...
 
bool path (const std::string &pathName, unsigned pathLastFilterAccepted=0, unsigned pathL3FilterAccepted=1) const
 Calls 'hasPathName(...)'. More...
 
std::vector< std::string > pathNames (bool pathLastFilterAccepted=false, bool pathL3FilterAccepted=true) const
 Gets all HLT path names. More...
 
TriggerObject triggerObject ()
 Gets the pat::TriggerObject (parent class) More...
 
 TriggerObjectStandAlone ()
 Constructors and Destructor. More...
 
 TriggerObjectStandAlone (const TriggerObject &trigObj)
 Constructor from pat::TriggerObject. More...
 
 TriggerObjectStandAlone (const trigger::TriggerObject &trigObj)
 Constructor from trigger::TriggerObject. More...
 
 TriggerObjectStandAlone (const reco::LeafCandidate &leafCand)
 Constructor from reco::Candidate. More...
 
 TriggerObjectStandAlone (const reco::Particle::LorentzVector &vec, int id=0)
 Constructors from Lorentz-vectors and (optional) PDG ID. More...
 
 TriggerObjectStandAlone (const reco::Particle::PolarLorentzVector &vec, int id=0)
 
virtual ~TriggerObjectStandAlone ()
 Destructor. More...
 
- Public Member Functions inherited from pat::TriggerObject
void addFilterId (trigger::TriggerObjectType triggerObjectType)
 
void addFilterId (int triggerObjectType)
 
void addTriggerObjectType (trigger::TriggerObjectType triggerObjectType)
 Add a new trigger object type identifier. More...
 
void addTriggerObjectType (int triggerObjectType)
 
const std::string & collection () const
 Get the label of the collection the trigger object originates from. More...
 
std::vector< int > filterIds () const
 
bool hasFilterId (trigger::TriggerObjectType triggerObjectType) const
 
bool hasFilterId (int triggerObjectType) const
 
bool hasTriggerObjectType (trigger::TriggerObjectType triggerObjectType) const
 Checks, if a certain trigger object type identifier is assigned. More...
 
bool hasTriggerObjectType (int triggerObjectType) const
 
bool id (trigger::TriggerObjectType triggerObjectType) const
 
bool id (int triggerObjectType) const
 
const l1extra::L1EmParticleRef origL1EmRef () const
 
const l1extra::L1EtMissParticleRef origL1EtMissRef () const
 
const L1GctEmCandorigL1GctEmCand () const
 
const L1GctEtHadorigL1GctEtHad () const
 
const L1GctEtMissorigL1GctEtMiss () const
 
const L1GctEtTotalorigL1GctEtTotal () const
 
const L1GctHtMissorigL1GctHtMiss () const
 
const L1GctJetCandorigL1GctJetCand () const
 
const L1MuGMTExtendedCandorigL1GmtMuonCand () const
 
const l1extra::L1JetParticleRef origL1JetRef () const
 
const l1extra::L1MuonParticleRef origL1MuonRef () const
 
const reco::CandidateorigObjCand () const
 
const reco::CandidateBaseReforigObjRef () const
 Special methods for 'l1extra' particles. More...
 
void setCollection (const std::string &collName)
 Methods. More...
 
void setCollection (const edm::InputTag &collName)
 
 TriggerObject ()
 Constructors and Destructor. More...
 
 TriggerObject (const trigger::TriggerObject &trigObj)
 Constructor from trigger::TriggerObject. More...
 
 TriggerObject (const reco::LeafCandidate &leafCand)
 Constructors from base class object. More...
 
 TriggerObject (const reco::CandidateBaseRef &candRef)
 Constructors from base candidate reference (for 'l1extra' particles) More...
 
 TriggerObject (const reco::Particle::LorentzVector &vec, int id=0)
 Constructors from Lorentz-vectors and (optional) PDG ID. More...
 
 TriggerObject (const reco::Particle::PolarLorentzVector &vec, int id=0)
 
std::vector< int > triggerObjectTypes () const
 Get all trigger object type identifiers. More...
 
bool type (trigger::TriggerObjectType triggerObjectType) const
 Calls 'hasTriggerObjectType(...)'. More...
 
bool type (int triggerObjectType) const
 
virtual ~TriggerObject ()
 Destructor. More...
 
- Public Member Functions inherited from reco::LeafCandidate
virtual const_iterator begin () const
 first daughter const_iterator More...
 
virtual iterator begin ()
 first daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
virtual Vector boostToCM () const
 
virtual int charge () const
 electric charge More...
 
virtual LeafCandidateclone () const
 returns a clone of the Candidate object More...
 
virtual const Candidatedaughter (size_type) const
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual const_iterator end () const
 last daughter const_iterator More...
 
virtual iterator end ()
 last daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
virtual double energy () const
 energy More...
 
virtual double et () const
 transverse energy More...
 
virtual double eta () const
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
virtual bool hasMasterClone () const
 
virtual bool hasMasterClonePtr () const
 
virtual bool isCaloMuon () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isElectron () const
 
virtual bool isGlobalMuon () const
 
virtual bool isJet () const
 
virtual bool isMuon () const
 
virtual bool isPhoton () const
 
virtual bool isStandAloneMuon () const
 
virtual bool isTrackerMuon () const
 
 LeafCandidate ()
 default constructor More...
 
 LeafCandidate (const Candidate &c)
 
 LeafCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
virtual bool longLived () const
 is long lived? More...
 
virtual double mass () const
 mass More...
 
virtual bool massConstraint () const
 do mass constraint? More...
 
virtual double massSqr () const
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const
 spatial momentum vector More...
 
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const
 transverse mass More...
 
virtual double mtSqr () const
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual size_t numberOfDaughters () const
 number of daughters More...
 
virtual size_t numberOfMothers () const
 number of mothers More...
 
virtual size_t numberOfSourceCandidatePtrs () const
 
virtual double p () const
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const
 four-momentum Lorentz vector More...
 
virtual int pdgId () const
 PDG identifier. More...
 
virtual double phi () const
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const
 four-momentum Lorentz vector More...
 
virtual double pt () const
 transverse momentum More...
 
virtual double px () const
 x coordinate of momentum vector More...
 
virtual double py () const
 y coordinate of momentum vector More...
 
virtual double pz () const
 z coordinate of momentum vector More...
 
virtual double rapidity () const
 rapidity More...
 
virtual void setCharge (Charge q)
 set electric charge More...
 
virtual void setLongLived ()
 set long lived flag More...
 
virtual void setMass (double m)
 set particle mass More...
 
virtual void setMassConstraint ()
 set mass constraint flag More...
 
virtual void setP4 (const LorentzVector &p4)
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4)
 set 4-momentum More...
 
virtual void setPdgId (int pdgId)
 
virtual void setPz (double pz)
 
virtual void setStatus (int status)
 set status word More...
 
virtual void setThreeCharge (Charge qx3)
 set electric charge More...
 
virtual void setVertex (const Point &vertex)
 set vertex More...
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual int status () const
 status word More...
 
virtual double theta () const
 momentum polar angle More...
 
virtual int threeCharge () const
 electric charge More...
 
virtual const Pointvertex () const
 vertex position More...
 
virtual double vertexChi2 () const
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual double y () const
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
 Candidate ()
 default constructor More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Private Member Functions

void addFilterOrCondition (const std::string &name)
 Adds a new HLT filter label or L1 condition name. More...
 
void addPathOrAlgorithm (const std::string &name, bool pathLastFilterAccepted, bool pathL3FilterAccepted)
 Adds a new HLT path or L1 algorithm name. More...
 
const std::vector< std::string > & filtersOrConditions () const
 Gets all HLT filter labels or L1 condition names. More...
 
bool hasAnyName (const std::string &name, const std::vector< std::string > &nameVec) const
 Private methods. More...
 
bool hasFilterOrCondition (const std::string &name) const
 Checks, if a certain HLT filter label or L1 condition name is assigned. More...
 
bool hasL3Filter () const
 
bool hasLastFilter () const
 Check, if the usage indicator vectors have been filled. More...
 
bool hasPathOrAlgorithm (const std::string &name, bool pathLastFilterAccepted, bool pathL3FilterAccepted) const
 Checks, if a certain HLT path or L1 algorithm name is assigned. More...
 
std::vector< std::string > pathsOrAlgorithms (bool pathLastFilterAccepted, bool pathL3FilterAccepted) const
 Gets all HLT path or L1 algorithm names. More...
 

Private Attributes

std::vector< std::string > filterLabels_
 Vector of labels of all HLT filters or names od L1 conditions the trigger objects has been used in. More...
 
std::vector< bool > pathL3FilterAccepted_
 
std::vector< bool > pathLastFilterAccepted_
 
std::vector< std::string > pathNames_
 Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in. More...
 

Static Private Attributes

static const char wildcard_ = '*'
 Constants. More...
 

Additional Inherited Members

- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1)/2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >
::type 
CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 
- Static Public Attributes inherited from reco::LeafCandidate
static const unsigned int longLivedTag = 65536
 long lived flag More...
 
static const unsigned int massConstraintTag = 131072
 do mass constraint flag More...
 
- Protected Member Functions inherited from reco::LeafCandidate
void cacheCartesian () const
 set internal cache More...
 
void cachePolar () const
 set internal cache More...
 
void clearCache () const
 clear internal cache More...
 
virtual bool overlap (const Candidate &) const
 check overlap with another Candidate More...
 
- Protected Attributes inherited from reco::LeafCandidate
bool cacheCartesianFixed_
 
bool cachePolarFixed_
 has cache been set? More...
 
float eta_
 
float mass_
 
LorentzVector p4Cartesian_
 internal cache for p4 More...
 
PolarLorentzVector p4Polar_
 internal cache for p4 More...
 
int pdgId_
 PDG identifier. More...
 
float phi_
 
float pt_
 four-momentum Lorentz vector More...
 
Charge qx3_
 electric charge More...
 
int status_
 status word More...
 
Point vertex_
 vertex position More...
 

Detailed Description

Analysis-level trigger object class (stand-alone)

TriggerObjectStandAlone implements a container for trigger objects' information within the 'pat' namespace. These Trigger objects keep also information on filters and paths to be saved independently or embedded into PAT objects. The TriggerObjectStandAlone is also the data format used in the PAT trigger object matching. For detailed information, consult https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePATTrigger#TriggerObjectStandAlone

Author
Volker Adler
Version
Id:
TriggerObjectStandAlone.h,v 1.16 2013/06/11 13:24:49 vadler Exp

Definition at line 32 of file TriggerObjectStandAlone.h.

Constructor & Destructor Documentation

TriggerObjectStandAlone::TriggerObjectStandAlone ( )

Constructors and Destructor.

Default constructor

Definition at line 24 of file TriggerObjectStandAlone.cc.

References filterLabels_, pathL3FilterAccepted_, pathLastFilterAccepted_, and pathNames_.

24  :
26 {
27  filterLabels_.clear();
28  pathNames_.clear();
30  pathL3FilterAccepted_.clear();
31 }
std::vector< std::string > pathNames_
Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in...
std::vector< std::string > filterLabels_
Vector of labels of all HLT filters or names od L1 conditions the trigger objects has been used in...
TriggerObject()
Constructors and Destructor.
std::vector< bool > pathL3FilterAccepted_
std::vector< bool > pathLastFilterAccepted_
TriggerObjectStandAlone::TriggerObjectStandAlone ( const TriggerObject trigObj)

Constructor from pat::TriggerObject.

Definition at line 35 of file TriggerObjectStandAlone.cc.

References filterLabels_, pathL3FilterAccepted_, pathLastFilterAccepted_, and pathNames_.

35  :
36  TriggerObject( trigObj )
37 {
38  filterLabels_.clear();
39  pathNames_.clear();
41  pathL3FilterAccepted_.clear();
42 }
std::vector< std::string > pathNames_
Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in...
std::vector< std::string > filterLabels_
Vector of labels of all HLT filters or names od L1 conditions the trigger objects has been used in...
TriggerObject()
Constructors and Destructor.
std::vector< bool > pathL3FilterAccepted_
std::vector< bool > pathLastFilterAccepted_
TriggerObjectStandAlone::TriggerObjectStandAlone ( const trigger::TriggerObject trigObj)

Constructor from trigger::TriggerObject.

Definition at line 46 of file TriggerObjectStandAlone.cc.

References filterLabels_, pathL3FilterAccepted_, pathLastFilterAccepted_, and pathNames_.

46  :
47  TriggerObject( trigObj )
48 {
49  filterLabels_.clear();
50  pathNames_.clear();
52  pathL3FilterAccepted_.clear();
53 }
std::vector< std::string > pathNames_
Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in...
std::vector< std::string > filterLabels_
Vector of labels of all HLT filters or names od L1 conditions the trigger objects has been used in...
TriggerObject()
Constructors and Destructor.
std::vector< bool > pathL3FilterAccepted_
std::vector< bool > pathLastFilterAccepted_
TriggerObjectStandAlone::TriggerObjectStandAlone ( const reco::LeafCandidate leafCand)

Constructor from reco::Candidate.

Definition at line 57 of file TriggerObjectStandAlone.cc.

References filterLabels_, pathL3FilterAccepted_, pathLastFilterAccepted_, and pathNames_.

57  :
58  TriggerObject( leafCand )
59 {
60  filterLabels_.clear();
61  pathNames_.clear();
63  pathL3FilterAccepted_.clear();
64 }
std::vector< std::string > pathNames_
Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in...
std::vector< std::string > filterLabels_
Vector of labels of all HLT filters or names od L1 conditions the trigger objects has been used in...
TriggerObject()
Constructors and Destructor.
std::vector< bool > pathL3FilterAccepted_
std::vector< bool > pathLastFilterAccepted_
TriggerObjectStandAlone::TriggerObjectStandAlone ( const reco::Particle::LorentzVector vec,
int  id = 0 
)

Constructors from Lorentz-vectors and (optional) PDG ID.

Definition at line 68 of file TriggerObjectStandAlone.cc.

References filterLabels_, pathL3FilterAccepted_, pathLastFilterAccepted_, and pathNames_.

68  :
69  TriggerObject( vec, id )
70 {
71  filterLabels_.clear();
72  pathNames_.clear();
74  pathL3FilterAccepted_.clear();
75 }
std::vector< std::string > pathNames_
Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in...
std::vector< std::string > filterLabels_
Vector of labels of all HLT filters or names od L1 conditions the trigger objects has been used in...
TriggerObject()
Constructors and Destructor.
std::vector< bool > pathL3FilterAccepted_
std::vector< bool > pathLastFilterAccepted_
TriggerObjectStandAlone::TriggerObjectStandAlone ( const reco::Particle::PolarLorentzVector vec,
int  id = 0 
)

Definition at line 76 of file TriggerObjectStandAlone.cc.

References filterLabels_, pathL3FilterAccepted_, pathLastFilterAccepted_, and pathNames_.

76  :
77  TriggerObject( vec, id )
78 {
79  filterLabels_.clear();
80  pathNames_.clear();
82  pathL3FilterAccepted_.clear();
83 }
std::vector< std::string > pathNames_
Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in...
std::vector< std::string > filterLabels_
Vector of labels of all HLT filters or names od L1 conditions the trigger objects has been used in...
TriggerObject()
Constructors and Destructor.
std::vector< bool > pathL3FilterAccepted_
std::vector< bool > pathLastFilterAccepted_
virtual pat::TriggerObjectStandAlone::~TriggerObjectStandAlone ( )
inlinevirtual

Destructor.

Definition at line 94 of file TriggerObjectStandAlone.h.

94 {};

Member Function Documentation

void pat::TriggerObjectStandAlone::addAlgorithmName ( const std::string &  algorithmName,
bool  algoCondAccepted = true 
)
inline

Adds a new L1 algorithm name.

Definition at line 105 of file TriggerObjectStandAlone.h.

References addPathOrAlgorithm().

105 { addPathOrAlgorithm( algorithmName, algoCondAccepted, false ); };
void addPathOrAlgorithm(const std::string &name, bool pathLastFilterAccepted, bool pathL3FilterAccepted)
Adds a new HLT path or L1 algorithm name.
void pat::TriggerObjectStandAlone::addConditionName ( const std::string &  conditionName)
inline

Adds a new L1 condition name.

Definition at line 101 of file TriggerObjectStandAlone.h.

References addFilterOrCondition().

101 { addFilterOrCondition( conditionName ); };
void addFilterOrCondition(const std::string &name)
Adds a new HLT filter label or L1 condition name.
void pat::TriggerObjectStandAlone::addFilterLabel ( const std::string &  filterLabel)
inline

Methods.

Adds a new HLT filter label

Definition at line 99 of file TriggerObjectStandAlone.h.

References addFilterOrCondition().

Referenced by pat::PATTriggerProducer::produce().

99 { addFilterOrCondition( filterLabel ); };
void addFilterOrCondition(const std::string &name)
Adds a new HLT filter label or L1 condition name.
void pat::TriggerObjectStandAlone::addFilterOrCondition ( const std::string &  name)
inlineprivate

Adds a new HLT filter label or L1 condition name.

Definition at line 62 of file TriggerObjectStandAlone.h.

References filterLabels_, and hasFilterOrCondition().

Referenced by addConditionName(), and addFilterLabel().

62 { if ( ! hasFilterOrCondition( name ) ) filterLabels_.push_back( name ); };
std::vector< std::string > filterLabels_
Vector of labels of all HLT filters or names od L1 conditions the trigger objects has been used in...
bool hasFilterOrCondition(const std::string &name) const
Checks, if a certain HLT filter label or L1 condition name is assigned.
void pat::TriggerObjectStandAlone::addPathName ( const std::string &  pathName,
bool  pathLastFilterAccepted = true,
bool  pathL3FilterAccepted = true 
)
inline

Adds a new HLT path name.

Definition at line 103 of file TriggerObjectStandAlone.h.

References addPathOrAlgorithm().

Referenced by pat::PATTriggerProducer::produce().

103 { addPathOrAlgorithm( pathName, pathLastFilterAccepted, pathL3FilterAccepted ); };
void addPathOrAlgorithm(const std::string &name, bool pathLastFilterAccepted, bool pathL3FilterAccepted)
Adds a new HLT path or L1 algorithm name.
void TriggerObjectStandAlone::addPathOrAlgorithm ( const std::string &  name,
bool  pathLastFilterAccepted,
bool  pathL3FilterAccepted 
)
private

Adds a new HLT path or L1 algorithm name.

Definition at line 136 of file TriggerObjectStandAlone.cc.

References hasPathOrAlgorithm(), mergeVDriftHistosByStation::name, pathL3FilterAccepted_, pathLastFilterAccepted_, and pathNames_.

Referenced by addAlgorithmName(), and addPathName().

137 {
138  // Check, if path is already assigned
139  if ( ! hasPathOrAlgorithm( name, false, false ) ) {
140  // The path itself
141  pathNames_.push_back( name );
142  // The corresponding usage of the trigger objects
143  pathLastFilterAccepted_.push_back( pathLastFilterAccepted );
144  pathL3FilterAccepted_.push_back( pathL3FilterAccepted );
145  // Enable status updates
146  } else if ( pathLastFilterAccepted || pathL3FilterAccepted ) {
147  // Search for path
148  unsigned index( 0 );
149  while ( index < pathNames_.size() ) {
150  if ( pathNames_.at( index ) == name ) break;
151  ++index;
152  }
153  // Status update
154  if ( index < pathNames_.size() ) {
155  pathLastFilterAccepted_.at( index ) = pathLastFilterAccepted_.at( index ) || pathLastFilterAccepted;
156  pathL3FilterAccepted_.at( index ) = pathL3FilterAccepted_.at( index ) || pathL3FilterAccepted;
157  }
158  }
159 }
std::vector< std::string > pathNames_
Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in...
unsigned int index
Definition: LeafCandidate.h:33
bool hasPathOrAlgorithm(const std::string &name, bool pathLastFilterAccepted, bool pathL3FilterAccepted) const
Checks, if a certain HLT path or L1 algorithm name is assigned.
std::vector< bool > pathL3FilterAccepted_
std::vector< bool > pathLastFilterAccepted_
bool pat::TriggerObjectStandAlone::algo ( const std::string &  algorithmName,
unsigned  algoCondAccepted = 1 
) const
inline

Calls 'hasAlgorithmName(...)'.

Definition at line 143 of file TriggerObjectStandAlone.h.

References hasAlgorithmName().

143 { return hasAlgorithmName( algorithmName, bool( algoCondAccepted ) ); };
bool hasAlgorithmName(const std::string &algorithmName, bool algoCondAccepted=true) const
Checks, if a certain L1 algorithm name is assigned.
std::vector< std::string > pat::TriggerObjectStandAlone::algorithmNames ( bool  algoCondAccepted = true) const
inline

Gets all L1 algorithm names.

Definition at line 113 of file TriggerObjectStandAlone.h.

References pathsOrAlgorithms().

113 { return pathsOrAlgorithms( algoCondAccepted, false ); };
std::vector< std::string > pathsOrAlgorithms(bool pathLastFilterAccepted, bool pathL3FilterAccepted) const
Gets all HLT path or L1 algorithm names.
virtual bool pat::TriggerObjectStandAlone::coll ( const std::string &  collName) const
inlinevirtual

Calls 'hasCollection(...)' (method override)

Reimplemented from pat::TriggerObject.

Definition at line 145 of file TriggerObjectStandAlone.h.

References hasCollection().

145 { return hasCollection( collName ); };
virtual bool hasCollection(const std::string &collName) const
Checks, if a certain label of original collection is assigned (method overrides)
bool pat::TriggerObjectStandAlone::cond ( const std::string &  conditionName) const
inline

Calls 'hasConditionName(...)'.

Definition at line 139 of file TriggerObjectStandAlone.h.

References hasConditionName().

139 { return hasConditionName( conditionName ); };
bool hasConditionName(const std::string &conditionName) const
Checks, if a certain L1 condition name is assigned.
const std::vector< std::string >& pat::TriggerObjectStandAlone::conditionNames ( ) const
inline

Gets all L1 condition names.

Definition at line 109 of file TriggerObjectStandAlone.h.

References filtersOrConditions().

109 { return filtersOrConditions(); };
const std::vector< std::string > & filtersOrConditions() const
Gets all HLT filter labels or L1 condition names.
bool pat::TriggerObjectStandAlone::filter ( const std::string &  filterLabel) const
inline

Calls 'hasFilterLabel(...)'.

Special methods for the cut string parser

  • argument types usable in the cut string parser
  • short names for readable configuration files

Definition at line 137 of file TriggerObjectStandAlone.h.

References hasFilterLabel().

Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filter(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setDataAccessor(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView().

137 { return hasFilterLabel( filterLabel ); };
bool hasFilterLabel(const std::string &filterLabel) const
Checks, if a certain HLT filter label is assigned.
const std::vector< std::string >& pat::TriggerObjectStandAlone::filterLabels ( ) const
inline

Gets all HLT filter labels.

Definition at line 107 of file TriggerObjectStandAlone.h.

References filtersOrConditions().

107 { return filtersOrConditions(); };
const std::vector< std::string > & filtersOrConditions() const
Gets all HLT filter labels or L1 condition names.
const std::vector< std::string >& pat::TriggerObjectStandAlone::filtersOrConditions ( ) const
inlineprivate

Gets all HLT filter labels or L1 condition names.

Definition at line 66 of file TriggerObjectStandAlone.h.

References filterLabels_.

Referenced by conditionNames(), and filterLabels().

66 { return filterLabels_; };
std::vector< std::string > filterLabels_
Vector of labels of all HLT filters or names od L1 conditions the trigger objects has been used in...
bool pat::TriggerObjectStandAlone::hasAlgoCondAccepted ( ) const
inline

Definition at line 129 of file TriggerObjectStandAlone.h.

References hasLastFilter().

129 { return hasLastFilter(); };
bool hasLastFilter() const
Check, if the usage indicator vectors have been filled.
bool pat::TriggerObjectStandAlone::hasAlgorithmName ( const std::string &  algorithmName,
bool  algoCondAccepted = true 
) const
inline

Checks, if a certain L1 algorithm name is assigned.

Definition at line 123 of file TriggerObjectStandAlone.h.

References hasPathOrAlgorithm().

Referenced by algo().

123 { return hasPathOrAlgorithm( algorithmName, algoCondAccepted, false ); };
bool hasPathOrAlgorithm(const std::string &name, bool pathLastFilterAccepted, bool pathL3FilterAccepted) const
Checks, if a certain HLT path or L1 algorithm name is assigned.
bool TriggerObjectStandAlone::hasAnyName ( const std::string &  name,
const std::vector< std::string > &  nameVec 
) const
private

Private methods.

Checks a string vector for occurence of a certain string, incl. wild-card mechanism

Definition at line 90 of file TriggerObjectStandAlone.cc.

References split, and wildcard_.

Referenced by hasCollection(), hasFilterOrCondition(), and hasPathOrAlgorithm().

91 {
92  // Special cases first
93  // Always false for empty vector to check
94  if ( nameVec.empty() ) return false;
95  // Always true for general wild-card(s)
96  if ( name.find_first_not_of( wildcard_ ) == std::string::npos ) return true;
97  // Split name to evaluate in parts, seperated by wild-cards
98  std::vector< std::string > namePartsVec;
99  boost::split( namePartsVec, name, boost::is_any_of( std::string( 1, wildcard_ ) ), boost::token_compress_on );
100  // Iterate over vector of names to search
101  for ( std::vector< std::string >::const_iterator iVec = nameVec.begin(); iVec != nameVec.end(); ++iVec ) {
102  // Not failed yet
103  bool failed( false );
104  // Start searching at the first character
105  size_type index( 0 );
106  // Iterate over evaluation name parts
107  for ( std::vector< std::string >::const_iterator iName = namePartsVec.begin(); iName != namePartsVec.end(); ++iName ) {
108  // Empty parts due to
109  // - wild-card at beginning/end or
110  // - multiple wild-cards (should be supressed by 'boost::token_compress_on')
111  if ( iName->length() == 0 ) continue;
112  // Search from current index and
113  // set index to found occurence
114  index = iVec->find( *iName, index );
115  // Failed and exit loop, if
116  // - part not found
117  // - part at beginning not found there
118  if ( index == std::string::npos || ( iName == namePartsVec.begin() && index > 0 ) ) {
119  failed = true;
120  break;
121  }
122  // Increase index by length of found part
123  index += iName->length();
124  }
125  // Failed, if end of name not reached
126  if ( index < iVec->length() && namePartsVec.back().length() != 0 ) failed = true;
127  // Match found!
128  if ( ! failed ) return true;
129  }
130  // No match found!
131  return false;
132 }
size_t size_type
Definition: Candidate.h:31
static const char wildcard_
Constants.
unsigned int index
Definition: LeafCandidate.h:33
double split
Definition: MVATrainer.cc:139
bool TriggerObjectStandAlone::hasCollection ( const std::string &  collName) const
virtual

Checks, if a certain label of original collection is assigned (method overrides)

Reimplemented from pat::TriggerObject.

Definition at line 228 of file TriggerObjectStandAlone.cc.

References pat::TriggerObject::collection(), hasAnyName(), pat::TriggerObject::hasCollection(), edm::InputTag::instance(), edm::InputTag::label(), edm::InputTag::process(), and wildcard_.

Referenced by coll(), and pat::PATTriggerProducer::produce().

229 {
230  // Move to wild-card parser, if needed only
231  if ( collName.find( wildcard_ ) != std::string::npos ) {
232  // True, if collection name is simply fine
233  if ( hasAnyName( collName, std::vector< std::string >( 1, collection() ) ) ) return true;
234  // Check, if collection name possibly fits in an edm::InputTag approach
235  const edm::InputTag collectionTag( collection() );
236  const edm::InputTag collTag( collName );
237  // If evaluated collection tag contains a process name, it must have been found already by identity check
238  if ( collTag.process().empty() ) {
239  // Check instance ...
240  if ( ( collTag.instance().empty() && collectionTag.instance().empty() ) || hasAnyName( collTag.instance(), std::vector< std::string >( 1, collectionTag.instance() ) ) ) {
241  // ... and label
242  return hasAnyName( collTag.label(), std::vector< std::string >( 1, collectionTag.label() ) );
243  }
244  }
245  return false;
246  }
247  // Use parent class's method otherwise
248  return TriggerObject::hasCollection( collName );
249 }
static const char wildcard_
Constants.
bool hasAnyName(const std::string &name, const std::vector< std::string > &nameVec) const
Private methods.
const std::string & collection() const
Get the label of the collection the trigger object originates from.
Definition: TriggerObject.h:94
virtual bool hasCollection(const std::string &collName) const
Checks, if a certain label of original collection is assigned.
virtual bool pat::TriggerObjectStandAlone::hasCollection ( const edm::InputTag collName) const
inlinevirtual

Reimplemented from pat::TriggerObject.

Definition at line 126 of file TriggerObjectStandAlone.h.

References edm::InputTag::encode(), and hasCollection().

Referenced by hasCollection().

126 { return hasCollection( collName.encode() ); };
virtual bool hasCollection(const std::string &collName) const
Checks, if a certain label of original collection is assigned (method overrides)
std::string encode() const
Definition: InputTag.cc:72
bool pat::TriggerObjectStandAlone::hasConditionName ( const std::string &  conditionName) const
inline

Checks, if a certain L1 condition name is assigned.

Definition at line 119 of file TriggerObjectStandAlone.h.

References hasFilterOrCondition().

Referenced by cond().

119 { return hasFilterOrCondition( conditionName ); };
bool hasFilterOrCondition(const std::string &name) const
Checks, if a certain HLT filter label or L1 condition name is assigned.
bool pat::TriggerObjectStandAlone::hasFilterLabel ( const std::string &  filterLabel) const
inline

Checks, if a certain HLT filter label is assigned.

Definition at line 117 of file TriggerObjectStandAlone.h.

References hasFilterOrCondition().

Referenced by filter().

117 { return hasFilterOrCondition( filterLabel ); };
bool hasFilterOrCondition(const std::string &name) const
Checks, if a certain HLT filter label or L1 condition name is assigned.
bool TriggerObjectStandAlone::hasFilterOrCondition ( const std::string &  name) const
private

Checks, if a certain HLT filter label or L1 condition name is assigned.

Definition at line 182 of file TriggerObjectStandAlone.cc.

References filterLabels_, spr::find(), hasAnyName(), mergeVDriftHistosByStation::name, and wildcard_.

Referenced by addFilterOrCondition(), hasConditionName(), and hasFilterLabel().

183 {
184  // Move to wild-card parser, if needed
185  if ( name.find( wildcard_ ) != std::string::npos ) return hasAnyName( name, filterLabels_ );
186  // Return, if filter label is assigned
187  return ( std::find( filterLabels_.begin(), filterLabels_.end(), name ) != filterLabels_.end() );
188 }
static const char wildcard_
Constants.
std::vector< std::string > filterLabels_
Vector of labels of all HLT filters or names od L1 conditions the trigger objects has been used in...
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
bool hasAnyName(const std::string &name, const std::vector< std::string > &nameVec) const
Private methods.
bool pat::TriggerObjectStandAlone::hasL3Filter ( ) const
inlineprivate

Definition at line 75 of file TriggerObjectStandAlone.h.

References pathL3FilterAccepted_, and pathNames_.

Referenced by hasPathL3FilterAccepted(), hasPathOrAlgorithm(), and pathsOrAlgorithms().

75 { return ( pathL3FilterAccepted_.size() > 0 && pathL3FilterAccepted_.size() == pathNames_.size() ); };
std::vector< std::string > pathNames_
Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in...
std::vector< bool > pathL3FilterAccepted_
bool pat::TriggerObjectStandAlone::hasLastFilter ( ) const
inlineprivate

Check, if the usage indicator vectors have been filled.

Definition at line 74 of file TriggerObjectStandAlone.h.

References pathLastFilterAccepted_, and pathNames_.

Referenced by hasAlgoCondAccepted(), hasPathLastFilterAccepted(), hasPathOrAlgorithm(), and pathsOrAlgorithms().

74 { return ( pathLastFilterAccepted_.size() > 0 && pathLastFilterAccepted_.size() == pathNames_.size() ); };
std::vector< std::string > pathNames_
Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in...
std::vector< bool > pathLastFilterAccepted_
bool pat::TriggerObjectStandAlone::hasPathL3FilterAccepted ( ) const
inline

Definition at line 130 of file TriggerObjectStandAlone.h.

References hasL3Filter().

130 { return hasL3Filter(); };
bool pat::TriggerObjectStandAlone::hasPathLastFilterAccepted ( ) const
inline

Checks, if the usage indicator vector has been filled.

Definition at line 128 of file TriggerObjectStandAlone.h.

References hasLastFilter().

128 { return hasLastFilter(); };
bool hasLastFilter() const
Check, if the usage indicator vectors have been filled.
bool pat::TriggerObjectStandAlone::hasPathName ( const std::string &  pathName,
bool  pathLastFilterAccepted = false,
bool  pathL3FilterAccepted = true 
) const
inline

Checks, if a certain HLT path name is assigned.

Definition at line 121 of file TriggerObjectStandAlone.h.

References hasPathOrAlgorithm().

Referenced by path().

121 { return hasPathOrAlgorithm( pathName, pathLastFilterAccepted, pathL3FilterAccepted ); };
bool hasPathOrAlgorithm(const std::string &name, bool pathLastFilterAccepted, bool pathL3FilterAccepted) const
Checks, if a certain HLT path or L1 algorithm name is assigned.
bool TriggerObjectStandAlone::hasPathOrAlgorithm ( const std::string &  name,
bool  pathLastFilterAccepted,
bool  pathL3FilterAccepted 
) const
private

Checks, if a certain HLT path or L1 algorithm name is assigned.

Definition at line 192 of file TriggerObjectStandAlone.cc.

References spr::find(), hasAnyName(), hasL3Filter(), hasLastFilter(), match(), mergeVDriftHistosByStation::name, pathL3FilterAccepted_, pathLastFilterAccepted_, pathNames_, pathsOrAlgorithms(), and wildcard_.

Referenced by addPathOrAlgorithm(), hasAlgorithmName(), and hasPathName().

193 {
194  // Move to wild-card parser, if needed
195  if ( name.find( wildcard_ ) != std::string::npos ) return hasAnyName( name, pathsOrAlgorithms( pathLastFilterAccepted, pathL3FilterAccepted ) );
196  // Deal with older PAT-tuples, where trigger object usage is not available
197  if ( ! hasLastFilter() ) pathLastFilterAccepted = false;
198  if ( ! hasL3Filter() ) pathL3FilterAccepted = false;
199  // Check, if path name is assigned at all
200  std::vector< std::string >::const_iterator match( std::find( pathNames_.begin(), pathNames_.end(), name ) );
201  // False, if path name not assigned
202  if ( match == pathNames_.end() ) return false;
203  if ( ! pathLastFilterAccepted && ! pathL3FilterAccepted ) return true;
204  bool foundLastFilter( pathLastFilterAccepted ? pathLastFilterAccepted_.at( match - pathNames_.begin() ) : true );
205  bool foundL3Filter( pathL3FilterAccepted ? pathL3FilterAccepted_.at( match - pathNames_.begin() ) : true );
206  // Return for assigned path name, if trigger object usage meets requirement
207  return ( foundLastFilter && foundL3Filter );
208 }
std::vector< std::string > pathsOrAlgorithms(bool pathLastFilterAccepted, bool pathL3FilterAccepted) const
Gets all HLT path or L1 algorithm names.
static const char wildcard_
Constants.
std::vector< std::string > pathNames_
Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in...
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
bool hasAnyName(const std::string &name, const std::vector< std::string > &nameVec) const
Private methods.
bool hasLastFilter() const
Check, if the usage indicator vectors have been filled.
std::vector< bool > pathL3FilterAccepted_
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:6
std::vector< bool > pathLastFilterAccepted_
bool pat::TriggerObjectStandAlone::path ( const std::string &  pathName,
unsigned  pathLastFilterAccepted = 0,
unsigned  pathL3FilterAccepted = 1 
) const
inline

Calls 'hasPathName(...)'.

Definition at line 141 of file TriggerObjectStandAlone.h.

References hasPathName().

141 { return hasPathName( pathName, bool( pathLastFilterAccepted ), bool( pathL3FilterAccepted ) ); };
bool hasPathName(const std::string &pathName, bool pathLastFilterAccepted=false, bool pathL3FilterAccepted=true) const
Checks, if a certain HLT path name is assigned.
std::vector< std::string > pat::TriggerObjectStandAlone::pathNames ( bool  pathLastFilterAccepted = false,
bool  pathL3FilterAccepted = true 
) const
inline

Gets all HLT path names.

Definition at line 111 of file TriggerObjectStandAlone.h.

References pathsOrAlgorithms().

111 { return pathsOrAlgorithms( pathLastFilterAccepted, pathL3FilterAccepted ); };
std::vector< std::string > pathsOrAlgorithms(bool pathLastFilterAccepted, bool pathL3FilterAccepted) const
Gets all HLT path or L1 algorithm names.
std::vector< std::string > TriggerObjectStandAlone::pathsOrAlgorithms ( bool  pathLastFilterAccepted,
bool  pathL3FilterAccepted 
) const
private

Gets all HLT path or L1 algorithm names.

Definition at line 163 of file TriggerObjectStandAlone.cc.

References hasL3Filter(), hasLastFilter(), pathL3FilterAccepted_, pathLastFilterAccepted_, pathNames_, and EgammaValidation_cff::paths.

Referenced by algorithmNames(), hasPathOrAlgorithm(), and pathNames().

164 {
165  // Deal with older PAT-tuples, where trigger object usage is not available
166  if ( ! hasLastFilter() ) pathLastFilterAccepted = false;
167  if ( ! hasL3Filter() ) pathL3FilterAccepted = false;
168  // All path names, if usage not restricted (not required or not available)
169  if ( ! pathLastFilterAccepted && ! pathL3FilterAccepted ) return pathNames_;
170  // Temp vector of path names
171  std::vector< std::string > paths;
172  // Loop over usage vector and fill corresponding paths into temp vector
173  for ( unsigned iPath = 0; iPath < pathNames_.size(); ++iPath ) {
174  if ( ( ! pathLastFilterAccepted || pathLastFilterAccepted_.at( iPath ) ) && ( ! pathL3FilterAccepted || pathL3FilterAccepted_.at( iPath ) ) ) paths.push_back( pathNames_.at( iPath ) ); // order matters in order to protect from empty vectors in old data
175  }
176  // Return temp vector
177  return paths;
178 }
std::vector< std::string > pathNames_
Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in...
bool hasLastFilter() const
Check, if the usage indicator vectors have been filled.
std::vector< bool > pathL3FilterAccepted_
std::vector< bool > pathLastFilterAccepted_
TriggerObject TriggerObjectStandAlone::triggerObject ( )

Gets the pat::TriggerObject (parent class)

Definition at line 215 of file TriggerObjectStandAlone.cc.

References pat::TriggerObject::addTriggerObjectType(), asciidump::at, pat::TriggerObject::collection(), i, reco::LeafCandidate::p4(), reco::LeafCandidate::pdgId(), pat::TriggerObject::setCollection(), and pat::TriggerObject::triggerObjectTypes().

216 {
217  // Create a TriggerObjects
218  TriggerObject theObj( p4(), pdgId() );
219  // Set its collection and trigger objects types (no c'tor for that)
220  theObj.setCollection( collection() );
221  for ( size_t i = 0; i < triggerObjectTypes().size(); ++i ) theObj.addTriggerObjectType( triggerObjectTypes().at( i ) );
222  // Return TriggerObject
223  return theObj;
224 }
int i
Definition: DBlmapReader.cc:9
virtual int pdgId() const
PDG identifier.
Analysis-level trigger object class.
Definition: TriggerObject.h:49
const std::string & collection() const
Get the label of the collection the trigger object originates from.
Definition: TriggerObject.h:94
std::vector< int > triggerObjectTypes() const
Get all trigger object type identifiers.
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
list at
Definition: asciidump.py:428

Member Data Documentation

std::vector< std::string > pat::TriggerObjectStandAlone::filterLabels_
private

Vector of labels of all HLT filters or names od L1 conditions the trigger objects has been used in.

Data Members Keeping the old names of the data members for backward compatibility, although they refer only to HLT objects.

Definition at line 39 of file TriggerObjectStandAlone.h.

Referenced by addFilterOrCondition(), filtersOrConditions(), hasFilterOrCondition(), and TriggerObjectStandAlone().

std::vector< bool > pat::TriggerObjectStandAlone::pathL3FilterAccepted_
private

Vector alligned with 'pathNames_' of boolean indicating the usage of the trigger object An element is true, if the corresponding path succeeded and the trigger object was used in an L3 filter (HLT only) The vector is empty for data (size 0), if the according information is not available.

Definition at line 50 of file TriggerObjectStandAlone.h.

Referenced by addPathOrAlgorithm(), hasL3Filter(), hasPathOrAlgorithm(), pathsOrAlgorithms(), and TriggerObjectStandAlone().

std::vector< bool > pat::TriggerObjectStandAlone::pathLastFilterAccepted_
private

Vector alligned with 'pathNames_' of boolean indicating the usage of the trigger object An element is true, if the corresponding path succeeded and the trigger object was used in the last filter (HLT) or the corresponding algorithm succeeded as well as the corresponding condition (L1). The vector is empty for data (size 0), if the according information is not available.

Definition at line 46 of file TriggerObjectStandAlone.h.

Referenced by addPathOrAlgorithm(), hasLastFilter(), hasPathOrAlgorithm(), pathsOrAlgorithms(), and TriggerObjectStandAlone().

std::vector< std::string > pat::TriggerObjectStandAlone::pathNames_
private

Vector of names of all HLT paths or L1 algorithms the trigger objects has been used in.

Definition at line 41 of file TriggerObjectStandAlone.h.

Referenced by addPathOrAlgorithm(), hasL3Filter(), hasLastFilter(), hasPathOrAlgorithm(), pathsOrAlgorithms(), and TriggerObjectStandAlone().

const char TriggerObjectStandAlone::wildcard_ = '*'
staticprivate

Constants.

Constant defining the wild-card used in 'hasAnyName()'

Definition at line 55 of file TriggerObjectStandAlone.h.

Referenced by hasAnyName(), hasCollection(), hasFilterOrCondition(), and hasPathOrAlgorithm().