CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

NamedCandCombiner< Selector, PairSelector, Cloner, Setup > Class Template Reference

#include <NamedCandCombiner.h>

Inheritance diagram for NamedCandCombiner< Selector, PairSelector, Cloner, Setup >:
NamedCandCombinerBase NamedCandCombinerBase

List of all members.

Public Member Functions

 NamedCandCombiner (std::string name)
 default constructor
 NamedCandCombiner (std::string name, int q1, int q2)
 constructor from a selector and two charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, bool checkCharge, const std::vector< int > &dauCharge)
 constructor from a selector, specifying optionally to check for charge
 NamedCandCombiner (std::string name, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3)
 constructor from a selector and three charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2)
 constructor from a selector and two charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup)
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 NamedCandCombiner (std::string name, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, int q1, int q2)
 constructor from a selector and two charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair)
 constructor from selector
 NamedCandCombiner (std::string name, const Selector &select, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 NamedCandCombiner (std::string name, const Selector &select, int q1, int q2, int q3)
 constructor from a selector and three charges
 NamedCandCombiner (std::string name, const Selector &select, int q1, int q2)
 constructor from a selector and two charges
 NamedCandCombiner (std::string name, const Selector &select)
 default constructor
 NamedCandCombiner (std::string name, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 NamedCandCombiner (std::string name, int q1, int q2, int q3)
 constructor from a selector and three charges
 NamedCandCombiner (std::string name, int q1, int q2)
 constructor from a selector and two charges
 NamedCandCombiner (std::string name)
 default constructor
 NamedCandCombiner (std::string name, const Selector &select, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, bool checkCharge, bool checkOverlap, const std::vector< int > &dauCharge)
 constructor from a selector, specifying optionally to check for charge
 NamedCandCombiner (std::string name, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3)
 constructor from a selector and three charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3)
 constructor from a selector and three charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2)
 constructor from a selector and two charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup)
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3)
 constructor from a selector and three charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, int q1, int q2)
 constructor from a selector and two charges
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair)
 constructor from selector
 NamedCandCombiner (std::string name, const Selector &select, int q1, int q2, int q3)
 constructor from a selector and three charges
 NamedCandCombiner (std::string name, const Selector &select, int q1, int q2)
 constructor from a selector and two charges
 NamedCandCombiner (std::string name, const Selector &select)
 default constructor
 NamedCandCombiner (std::string name, int q1, int q2, int q3)
 constructor from a selector and three charges
Setup & setup ()
 return reference to setup object to allow its initialization
Setup & setup ()
 return reference to setup object to allow its initialization

Private Member Functions

virtual void addDaughter (reco::NamedCompositeCandidate &cmp, const reco::CandidatePtr &c, std::string n) const
 add candidate daughter
virtual void addDaughter (reco::NamedCompositeCandidate &cmp, const reco::CandidatePtr &c, std::string n) const
 add candidate daughter
virtual bool select (const reco::Candidate &c) const
 select a candidate
virtual bool select (const reco::Candidate &c) const
 select a candidate
virtual bool selectPair (const reco::Candidate &c1, const reco::Candidate &c2) const
 select a candidate
virtual bool selectPair (const reco::Candidate &c1, const reco::Candidate &c2) const
 select a candidate
virtual void setup (reco::NamedCompositeCandidate &c) const
 set kinematics to reconstructed composite
virtual void setup (reco::NamedCompositeCandidate &c) const
 set kinematics to reconstructed composite

Private Attributes

std::string name_
 name
Selector select_
 candidate selector
PairSelector selectPair_
 candidate pair selector
Setup setup_
 utility to setup composite candidate kinematics from daughters

Detailed Description

template<typename Selector, typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
class NamedCandCombiner< Selector, PairSelector, Cloner, Setup >

performs all possible and selected combinations of particle pairs using the NamedCandCombiner utility

Author:
Luca Lista, INFN
Version:
Revision:
1.3
Id:
NamedCandCombiner.h,v 1.3 2010/10/25 14:07:17 gpetrucc Exp
Author:
Luca Lista, INFN

Definition at line 41 of file NamedCandCombiner.h.


Constructor & Destructor Documentation

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name) [inline]

default constructor

Definition at line 44 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 48 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 52 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 56 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select 
) [inline]

default constructor

Definition at line 60 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 64 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 68 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 72 of file NamedCandCombiner.h.

                                                                                               :
    NamedCandCombinerBase(name, q1, q2, q3, q4), 
    select_(select), selectPair_(), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair 
) [inline]

constructor from selector

Definition at line 76 of file NamedCandCombiner.h.

                                                                                              :
    NamedCandCombinerBase(name), 
    select_(select), selectPair_(selectPair), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 80 of file NamedCandCombiner.h.

                                                                                                              :
    NamedCandCombinerBase(name, q1, q2), 
    select_(select), selectPair_(selectPair), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 84 of file NamedCandCombiner.h.

                                                                                                                      :
    NamedCandCombinerBase(name, q1, q2, q3), 
    select_(select), selectPair_(selectPair), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 88 of file NamedCandCombiner.h.

                                                                                                                              :
   NamedCandCombinerBase(name, q1, q2, q3, q4), 
    select_(select), selectPair_(selectPair), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup 
) [inline]

Definition at line 91 of file NamedCandCombiner.h.

                                                                                                                   :
    NamedCandCombinerBase(name), 
    select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 95 of file NamedCandCombiner.h.

                                                                                                                                   :
    NamedCandCombinerBase(name, q1, q2), 
    select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 99 of file NamedCandCombiner.h.

                                                                                                                                           :
    NamedCandCombinerBase(name, q1, q2, q3), 
    select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup,
int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 103 of file NamedCandCombiner.h.

                                                                                                                                                   :
    NamedCandCombinerBase(name, q1, q2, q3, q4), 
    select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup,
const std::vector< int > &  dauCharge 
) [inline]

constructor from a selector, specifying to check for charge

Definition at line 107 of file NamedCandCombiner.h.

                                                                                                                                                     : 
    NamedCandCombinerBase(name, true, dauCharge), select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const std::vector< int > &  dauCharge 
) [inline]

constructor from a selector, specifying to check for charge

Definition at line 110 of file NamedCandCombiner.h.

                                                                                                                                   : 
    NamedCandCombinerBase(name, true, dauCharge), select_(select), selectPair_(selectPair), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const std::vector< int > &  dauCharge 
) [inline]

constructor from a selector, specifying to check for charge

Definition at line 113 of file NamedCandCombiner.h.

                                                                       : 
    NamedCandCombinerBase(name, true, dauCharge), select_(), selectPair_(), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup,
bool  checkCharge,
bool  checkOverlap,
const std::vector< int > &  dauCharge 
) [inline]

constructor from a selector, specifying optionally to check for charge

Definition at line 116 of file NamedCandCombiner.h.

                                                                                       : 
    NamedCandCombinerBase(name, checkCharge, checkOverlap, dauCharge), 
    select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name) [inline]

default constructor

Definition at line 44 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 48 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 52 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 56 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select 
) [inline]

default constructor

Definition at line 60 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 64 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 68 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 72 of file NamedCandCombiner.h.

                                                                                               :
    NamedCandCombinerBase(name, q1, q2, q3, q4), 
    select_(select), selectPair_(), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair 
) [inline]

constructor from selector

Definition at line 76 of file NamedCandCombiner.h.

                                                                                              :
    NamedCandCombinerBase(name), 
    select_(select), selectPair_(selectPair), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 80 of file NamedCandCombiner.h.

                                                                                                              :
    NamedCandCombinerBase(name, q1, q2), 
    select_(select), selectPair_(selectPair), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 84 of file NamedCandCombiner.h.

                                                                                                                      :
    NamedCandCombinerBase(name, q1, q2, q3), 
    select_(select), selectPair_(selectPair), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 88 of file NamedCandCombiner.h.

                                                                                                                              :
   NamedCandCombinerBase(name, q1, q2, q3, q4), 
    select_(select), selectPair_(selectPair), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup 
) [inline]

Definition at line 91 of file NamedCandCombiner.h.

                                                                                                                   :
    NamedCandCombinerBase(name), 
    select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 95 of file NamedCandCombiner.h.

                                                                                                                                   :
    NamedCandCombinerBase(name, q1, q2), 
    select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 99 of file NamedCandCombiner.h.

                                                                                                                                           :
    NamedCandCombinerBase(name, q1, q2, q3), 
    select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup,
int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 103 of file NamedCandCombiner.h.

                                                                                                                                                   :
    NamedCandCombinerBase(name, q1, q2, q3, q4), 
    select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup,
const std::vector< int > &  dauCharge 
) [inline]

constructor from a selector, specifying to check for charge

Definition at line 107 of file NamedCandCombiner.h.

                                                                                                                                                     : 
    NamedCandCombinerBase(name, true, dauCharge), select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const std::vector< int > &  dauCharge 
) [inline]

constructor from a selector, specifying to check for charge

Definition at line 110 of file NamedCandCombiner.h.

                                                                                                                                   : 
    NamedCandCombinerBase(name, true, dauCharge), select_(select), selectPair_(selectPair), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const std::vector< int > &  dauCharge 
) [inline]

constructor from a selector, specifying to check for charge

Definition at line 113 of file NamedCandCombiner.h.

                                                                       : 
    NamedCandCombinerBase(name, true, dauCharge), select_(), selectPair_(), setup_(), name_(name) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::NamedCandCombiner ( std::string  name,
const Selector select,
const PairSelector selectPair,
const Setup &  setup,
bool  checkCharge,
const std::vector< int > &  dauCharge 
) [inline]

constructor from a selector, specifying optionally to check for charge

Definition at line 116 of file NamedCandCombiner.h.

                                                                    : 
    NamedCandCombinerBase(name, checkCharge, dauCharge), 
    select_(select), selectPair_(selectPair), setup_(setup), name_(name) { }

Member Function Documentation

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
virtual void NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::addDaughter ( reco::NamedCompositeCandidate cmp,
const reco::CandidatePtr c,
std::string  n 
) const [inline, private, virtual]

add candidate daughter

Implements NamedCandCombinerBase.

Definition at line 137 of file NamedCandCombiner.h.

Referenced by NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::addDaughter().

                                                                                                             {
    Cloner::addDaughter(cmp, c, n);
  }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
virtual void NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::addDaughter ( reco::NamedCompositeCandidate cmp,
const reco::CandidatePtr c,
std::string  n 
) const [inline, private, virtual]

add candidate daughter

Implements NamedCandCombinerBase.

Definition at line 137 of file NamedCandCombiner.h.

References NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::addDaughter().

                                                                                                             {
    Cloner::addDaughter(cmp, c, n);
  }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
virtual bool NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::select ( const reco::Candidate c) const [inline, private, virtual]

select a candidate

Implements NamedCandCombinerBase.

Definition at line 125 of file NamedCandCombiner.h.

References NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::select_.

                                                     {
    return select_(c);
  } 
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
virtual bool NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::select ( const reco::Candidate c) const [inline, private, virtual]

select a candidate

Implements NamedCandCombinerBase.

Definition at line 125 of file NamedCandCombiner.h.

References NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::select_.

                                                     {
    return select_(c);
  } 
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
virtual bool NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::selectPair ( const reco::Candidate c1,
const reco::Candidate c2 
) const [inline, private, virtual]

select a candidate

Implements NamedCandCombinerBase.

Definition at line 129 of file NamedCandCombiner.h.

References NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::selectPair_.

                                                                                    {
    return selectPair_(c1, c2);
  } 
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
virtual bool NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::selectPair ( const reco::Candidate c1,
const reco::Candidate c2 
) const [inline, private, virtual]

select a candidate

Implements NamedCandCombinerBase.

Definition at line 129 of file NamedCandCombiner.h.

References NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::selectPair_.

                                                                                    {
    return selectPair_(c1, c2);
  } 
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
Setup& NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::setup ( ) [inline]

return reference to setup object to allow its initialization

Definition at line 121 of file NamedCandCombiner.h.

References NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::setup_.

{ return setup_; }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
virtual void NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::setup ( reco::NamedCompositeCandidate c) const [inline, private, virtual]

set kinematics to reconstructed composite

Implements NamedCandCombinerBase.

Definition at line 133 of file NamedCandCombiner.h.

References NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::setup_.

                                                            {
    setup_.set(c);
  }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
Setup& NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::setup ( void  ) [inline]

return reference to setup object to allow its initialization

Definition at line 121 of file NamedCandCombiner.h.

References NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::setup_.

{ return setup_; }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
virtual void NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::setup ( reco::NamedCompositeCandidate c) const [inline, private, virtual]

set kinematics to reconstructed composite

Implements NamedCandCombinerBase.

Definition at line 133 of file NamedCandCombiner.h.

References NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::setup_.

                                                            {
    setup_.set(c);
  }

Member Data Documentation

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
std::string NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::name_ [private]

name

Reimplemented from NamedCandCombinerBase.

Definition at line 147 of file NamedCandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
Selector NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::select_ [private]

candidate selector

Definition at line 141 of file NamedCandCombiner.h.

Referenced by NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::select().

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
PairSelector NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::selectPair_ [private]

candidate pair selector

Definition at line 143 of file NamedCandCombiner.h.

Referenced by NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::selectPair().

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename Setup = AddFourMomenta>
Setup NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::setup_ [private]

utility to setup composite candidate kinematics from daughters

Definition at line 145 of file NamedCandCombiner.h.

Referenced by NamedCandCombiner< Selector, PairSelector, Cloner, Setup >::setup().