CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions | Private Attributes

CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup > Class Template Reference

#include <CandCombiner.h>

Inheritance diagram for CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >:
CandCombinerBase< OutputCollection, Cloner::CandPtr > CandCombinerBase< OutputCollection, Cloner::CandPtr >

List of all members.

Public Types

typedef CandCombinerBase
< OutputCollection, CandPtr
base
typedef CandCombinerBase
< OutputCollection, CandPtr
base
typedef Cloner::CandPtr CandPtr
typedef Cloner::CandPtr CandPtr

Public Member Functions

 CandCombiner ()
 default constructor
 CandCombiner (int q1, int q2)
 constructor from a selector and two charges
 CandCombiner (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
 CandCombiner (const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 CandCombiner (const Selector &select, const PairSelector &selectPair, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 CandCombiner (const Selector &select, const PairSelector &selectPair, const Setup &setup, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 CandCombiner (const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 CandCombiner (const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3)
 constructor from a selector and three charges
 CandCombiner (const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2)
 constructor from a selector and two charges
 CandCombiner (const Selector &select, const PairSelector &selectPair, const Setup &setup)
 CandCombiner (const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 CandCombiner (int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 CandCombiner (const Selector &select, const PairSelector &selectPair, int q1, int q2)
 constructor from a selector and two charges
 CandCombiner (const Selector &select, const PairSelector &selectPair)
 constructor from selector
 CandCombiner (const Selector &select, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 CandCombiner (const Selector &select, int q1, int q2, int q3)
 constructor from a selector and three charges
 CandCombiner (const Selector &select, int q1, int q2)
 constructor from a selector and two charges
 CandCombiner (const Selector &select)
 default constructor
 CandCombiner (int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 CandCombiner (int q1, int q2, int q3)
 constructor from a selector and three charges
 CandCombiner (int q1, int q2)
 constructor from a selector and two charges
 CandCombiner ()
 default constructor
 CandCombiner (const Selector &select, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 CandCombiner (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
 CandCombiner (const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 CandCombiner (const Selector &select, const PairSelector &selectPair, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 CandCombiner (const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 CandCombiner (const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3)
 constructor from a selector and three charges
 CandCombiner (const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2, int q3)
 constructor from a selector and three charges
 CandCombiner (const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2)
 constructor from a selector and two charges
 CandCombiner (const Selector &select, const PairSelector &selectPair, const Setup &setup)
 CandCombiner (const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges
 CandCombiner (const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3)
 constructor from a selector and three charges
 CandCombiner (const Selector &select, const PairSelector &selectPair, int q1, int q2)
 constructor from a selector and two charges
 CandCombiner (const Selector &select, const PairSelector &selectPair, const Setup &setup, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge
 CandCombiner (const Selector &select, const PairSelector &selectPair)
 constructor from selector
 CandCombiner (const Selector &select, int q1, int q2, int q3)
 constructor from a selector and three charges
 CandCombiner (const Selector &select, int q1, int q2)
 constructor from a selector and two charges
 CandCombiner (const Selector &select)
 default constructor
 CandCombiner (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 (typename OutputCollection::value_type &cmp, const CandPtr &c, const std::string name="") const
 add candidate daughter
virtual void addDaughter (typename OutputCollection::value_type &cmp, const CandPtr &c, const std::string name="") 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 (typename OutputCollection::value_type &c) const
 set kinematics to reconstructed composite
virtual void setup (typename OutputCollection::value_type &c) const
 set kinematics to reconstructed composite

Private Attributes

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 OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
class CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >

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

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

Definition at line 47 of file CandCombiner.h.


Member Typedef Documentation

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
typedef CandCombinerBase<OutputCollection, CandPtr> CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::base

Definition at line 50 of file CandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
typedef CandCombinerBase<OutputCollection, CandPtr> CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::base

Definition at line 56 of file CandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
typedef Cloner::CandPtr CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandPtr

Definition at line 55 of file CandCombiner.h.

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
typedef Cloner::CandPtr CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandPtr

Definition at line 49 of file CandCombiner.h.


Constructor & Destructor Documentation

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( ) [inline]

default constructor

Definition at line 52 of file CandCombiner.h.

                 :
  base(), 
    select_(), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 56 of file CandCombiner.h.

                               :
    base(q1, q2), 
    select_(), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 60 of file CandCombiner.h.

                                         :
    base(q1, q2, q3), 
    select_(), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 64 of file CandCombiner.h.

                                               :
    base(q1, q2, q3, q4), 
    select_(), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select) [inline]

default constructor

Definition at line 68 of file CandCombiner.h.

                                        :
    base( ), 
    select_(select), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 72 of file CandCombiner.h.

                                                          :
    base(q1, q2), 
    select_(select), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 76 of file CandCombiner.h.

                                                                  :
    base(q1, q2, q3), 
    select_(select), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 80 of file CandCombiner.h.

                                                                          :
    base(q1, q2, q3, q4), 
    select_(select), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair 
) [inline]

constructor from selector

Definition at line 84 of file CandCombiner.h.

                                                                         :
    base( ), 
    select_(select), selectPair_(selectPair), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 88 of file CandCombiner.h.

                                                                                         :
    base(q1, q2), 
    select_(select), selectPair_(selectPair), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 92 of file CandCombiner.h.

                                                                                                 :
    base(q1, q2, q3), 
    select_(select), selectPair_(selectPair), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( 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 96 of file CandCombiner.h.

                                                                                                         :
    base(q1, q2, q3, q4), 
    select_(select), selectPair_(selectPair), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair,
const Setup &  setup 
) [inline]

Definition at line 99 of file CandCombiner.h.

                                                                                              :
    base(), 
    select_(select), selectPair_(selectPair), setup_(setup) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair,
const Setup &  setup,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 103 of file CandCombiner.h.

                                                                                                              :
    base(q1, q2), 
    select_(select), selectPair_(selectPair), setup_(setup) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( 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 107 of file CandCombiner.h.

                                                                                                                      :
    base(q1, q2, q3), 
    select_(select), selectPair_(selectPair), setup_(setup) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( 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 111 of file CandCombiner.h.

                                                                                                                              :
    base(q1, q2, q3, q4), 
    select_(select), selectPair_(selectPair), setup_(setup) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( 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 115 of file CandCombiner.h.

                                                                                                                                : 
    base(true, dauCharge), select_(select), selectPair_(selectPair), setup_(setup) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair,
const std::vector< int > &  dauCharge 
) [inline]

constructor from a selector, specifying to check for charge

Definition at line 118 of file CandCombiner.h.

                                                                                                              : 
    base(true, dauCharge), select_(select), selectPair_(selectPair), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const std::vector< int > &  dauCharge) [inline]

constructor from a selector, specifying to check for charge

Definition at line 121 of file CandCombiner.h.

                                                  : 
    base(true, dauCharge), select_(), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( 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 124 of file CandCombiner.h.

                                                                                       : 
    base(checkCharge, checkOverlap, dauCharge), 
    select_(select), selectPair_(selectPair), setup_(setup) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( ) [inline]

default constructor

Definition at line 58 of file CandCombiner.h.

                 :
  base(), 
    select_(), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 62 of file CandCombiner.h.

                               :
    base(q1, q2), 
    select_(), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 66 of file CandCombiner.h.

                                         :
    base(q1, q2, q3), 
    select_(), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 70 of file CandCombiner.h.

                                               :
    base(q1, q2, q3, q4), 
    select_(), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select) [inline]

default constructor

Definition at line 74 of file CandCombiner.h.

                                        :
    base( ), 
    select_(select), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 78 of file CandCombiner.h.

                                                          :
    base(q1, q2), 
    select_(select), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 82 of file CandCombiner.h.

                                                                  :
    base(q1, q2, q3), 
    select_(select), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
int  q1,
int  q2,
int  q3,
int  q4 
) [inline]

constructor from a selector and four charges

Definition at line 86 of file CandCombiner.h.

                                                                          :
    base(q1, q2, q3, q4), 
    select_(select), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair 
) [inline]

constructor from selector

Definition at line 90 of file CandCombiner.h.

                                                                         :
    base( ), 
    select_(select), selectPair_(selectPair), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 94 of file CandCombiner.h.

                                                                                         :
    base(q1, q2), 
    select_(select), selectPair_(selectPair), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair,
int  q1,
int  q2,
int  q3 
) [inline]

constructor from a selector and three charges

Definition at line 98 of file CandCombiner.h.

                                                                                                 :
    base(q1, q2, q3), 
    select_(select), selectPair_(selectPair), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( 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 102 of file CandCombiner.h.

                                                                                                         :
    base(q1, q2, q3, q4), 
    select_(select), selectPair_(selectPair), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair,
const Setup &  setup 
) [inline]

Definition at line 105 of file CandCombiner.h.

                                                                                              :
    base(), 
    select_(select), selectPair_(selectPair), setup_(setup) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair,
const Setup &  setup,
int  q1,
int  q2 
) [inline]

constructor from a selector and two charges

Definition at line 109 of file CandCombiner.h.

                                                                                                              :
    base(q1, q2), 
    select_(select), selectPair_(selectPair), setup_(setup) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( 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 113 of file CandCombiner.h.

                                                                                                                      :
    base(q1, q2, q3), 
    select_(select), selectPair_(selectPair), setup_(setup) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( 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 117 of file CandCombiner.h.

                                                                                                                              :
    base(q1, q2, q3, q4), 
    select_(select), selectPair_(selectPair), setup_(setup) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( 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 121 of file CandCombiner.h.

                                                                                                                                : 
    base(true, dauCharge), select_(select), selectPair_(selectPair), setup_(setup) { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const Selector select,
const PairSelector selectPair,
const std::vector< int > &  dauCharge 
) [inline]

constructor from a selector, specifying to check for charge

Definition at line 124 of file CandCombiner.h.

                                                                                                              : 
    base(true, dauCharge), select_(select), selectPair_(selectPair), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( const std::vector< int > &  dauCharge) [inline]

constructor from a selector, specifying to check for charge

Definition at line 127 of file CandCombiner.h.

                                                  : 
    base(true, dauCharge), select_(), selectPair_(), setup_() { }
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::CandCombiner ( 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 130 of file CandCombiner.h.

                                                                    : 
    base(checkCharge, dauCharge), 
    select_(select), selectPair_(selectPair), setup_(setup) { }

Member Function Documentation

template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
virtual void CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::addDaughter ( typename OutputCollection::value_type &  cmp,
const CandPtr c,
const std::string  name = "" 
) const [inline, private, virtual]
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
virtual void CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::addDaughter ( typename OutputCollection::value_type &  cmp,
const CandPtr c,
const std::string  name = "" 
) const [inline, private, virtual]
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
virtual bool CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::select ( const reco::Candidate c) const [inline, private, virtual]
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
virtual bool CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::select ( const reco::Candidate c) const [inline, private, virtual]
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
virtual bool CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::selectPair ( const reco::Candidate c1,
const reco::Candidate c2 
) const [inline, private, virtual]
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
virtual bool CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::selectPair ( const reco::Candidate c1,
const reco::Candidate c2 
) const [inline, private, virtual]
template<typename Selector , typename PairSelector = AnyPairSelector, typename Cloner = combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta>
Setup& CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::setup ( ) [inline]

return reference to setup object to allow its initialization

Definition at line 129 of file CandCombiner.h.

References CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::setup_.

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

set kinematics to reconstructed composite

Implements CandCombinerBase< OutputCollection, Cloner::CandPtr >.

Definition at line 147 of file CandCombiner.h.

References CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::setup_.

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

return reference to setup object to allow its initialization

Definition at line 135 of file CandCombiner.h.

References CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::setup_.

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

set kinematics to reconstructed composite

Implements CandCombinerBase< OutputCollection, Cloner::CandPtr >.

Definition at line 141 of file CandCombiner.h.

References CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >::setup_.

                                                                    {
    setup_.set(c);
  }

Member Data Documentation

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

candidate selector

Definition at line 149 of file CandCombiner.h.

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

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

candidate pair selector

Definition at line 151 of file CandCombiner.h.

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

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

utility to setup composite candidate kinematics from daughters

Definition at line 153 of file CandCombiner.h.

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