CMS 3D CMS Logo

List of all members | 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

Public Member Functions

 NamedCandCombiner (std::string name)
 default constructor More...
 
 NamedCandCombiner (std::string name, const Selector &select)
 default constructor More...
 
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair)
 constructor from selector More...
 
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup)
 
 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 More...
 
 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 More...
 
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const Setup &setup, int q1, int q2)
 constructor from a selector and two charges More...
 
 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 More...
 
 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 More...
 
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge More...
 
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, int q1, int q2)
 constructor from a selector and two charges More...
 
 NamedCandCombiner (std::string name, const Selector &select, const PairSelector &selectPair, int q1, int q2, int q3)
 constructor from a selector and three charges More...
 
 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 More...
 
 NamedCandCombiner (std::string name, const Selector &select, int q1, int q2)
 constructor from a selector and two charges More...
 
 NamedCandCombiner (std::string name, const Selector &select, int q1, int q2, int q3)
 constructor from a selector and three charges More...
 
 NamedCandCombiner (std::string name, const Selector &select, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges More...
 
 NamedCandCombiner (std::string name, const std::vector< int > &dauCharge)
 constructor from a selector, specifying to check for charge More...
 
 NamedCandCombiner (std::string name, int q1, int q2)
 constructor from a selector and two charges More...
 
 NamedCandCombiner (std::string name, int q1, int q2, int q3)
 constructor from a selector and three charges More...
 
 NamedCandCombiner (std::string name, int q1, int q2, int q3, int q4)
 constructor from a selector and four charges More...
 
Setup & setup ()
 return reference to setup object to allow its initialization More...
 
- Public Member Functions inherited from NamedCandCombinerBase
std::unique_ptr< reco::NamedCompositeCandidateCollectioncombine (const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, string_coll const &) const
 return all selected candidate pairs More...
 
std::unique_ptr< reco::NamedCompositeCandidateCollectioncombine (const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, string_coll const &) const
 return all selected candidate pairs More...
 
std::unique_ptr< reco::NamedCompositeCandidateCollectioncombine (const reco::CandidatePtrVector &, const reco::CandidatePtrVector &, string_coll const &) const
 return all selected candidate pairs More...
 
std::unique_ptr< reco::NamedCompositeCandidateCollectioncombine (const reco::CandidatePtrVector &, string_coll const &) const
 return all selected candidate pairs More...
 
std::unique_ptr< reco::NamedCompositeCandidateCollectioncombine (const std::vector< reco::CandidatePtrVector > &, string_coll const &) const
 return all selected candidate pairs More...
 
 NamedCandCombinerBase (std::string name)
 default construct More...
 
 NamedCandCombinerBase (std::string name, bool checkCharge, bool checkOverlap, const std::vector< int > &)
 constructor from a selector, specifying optionally to check for charge More...
 
 NamedCandCombinerBase (std::string name, int, int)
 construct from two charge values More...
 
 NamedCandCombinerBase (std::string name, int, int, int)
 construct from three charge values More...
 
 NamedCandCombinerBase (std::string name, int, int, int, int)
 construct from four charge values More...
 
virtual ~NamedCandCombinerBase ()
 destructor More...
 

Private Member Functions

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

Private Attributes

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

Additional Inherited Members

- Public Types inherited from NamedCandCombinerBase
typedef std::vector< std::string > string_coll
 

Detailed Description

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

Author
Luca Lista, INFN

Definition at line 41 of file NamedCandCombiner.h.

Constructor & Destructor Documentation

◆ NamedCandCombiner() [1/20]

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.

44  :
46  select_(), selectPair_(), setup_(), name_(name) { }

◆ NamedCandCombiner() [2/20]

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.

48  :
50  select_(), selectPair_(), setup_(), name_(name) { }

◆ NamedCandCombiner() [3/20]

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.

52  :
54  select_(), selectPair_(), setup_(), name_(name) { }

◆ NamedCandCombiner() [4/20]

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.

56  :
57  NamedCandCombinerBase(name, q1, q2, q3, q4),
58  select_(), selectPair_(), setup_(), name_(name) { }

◆ NamedCandCombiner() [5/20]

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.

◆ NamedCandCombiner() [6/20]

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.

◆ NamedCandCombiner() [7/20]

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.

68  :

◆ NamedCandCombiner() [8/20]

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.

72  :
73  NamedCandCombinerBase(name, q1, q2, q3, q4),

◆ NamedCandCombiner() [9/20]

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.

◆ NamedCandCombiner() [10/20]

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.

◆ NamedCandCombiner() [11/20]

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.

◆ NamedCandCombiner() [12/20]

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.

88  :
89  NamedCandCombinerBase(name, q1, q2, q3, q4),

◆ NamedCandCombiner() [13/20]

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.

◆ NamedCandCombiner() [14/20]

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.

◆ NamedCandCombiner() [15/20]

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.

◆ NamedCandCombiner() [16/20]

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.

103  :
104  NamedCandCombinerBase(name, q1, q2, q3, q4),

◆ NamedCandCombiner() [17/20]

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.

107  :

◆ NamedCandCombiner() [18/20]

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.

110  :

◆ NamedCandCombiner() [19/20]

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.

113  :
114  NamedCandCombinerBase(name, true, dauCharge), select_(), selectPair_(), setup_(), name_(name) { }

◆ NamedCandCombiner() [20/20]

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.

Member Function Documentation

◆ addDaughter()

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
inlineprivatevirtual

add candidate daughter

Implements NamedCandCombinerBase.

Definition at line 137 of file NamedCandCombiner.h.

137  {
138  Cloner::addDaughter(cmp, c, n);
139  }

References c, fileCollector::cmp, and dqmiodumpmetadata::n.

◆ select()

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
inlineprivatevirtual

select a candidate

Implements NamedCandCombinerBase.

Definition at line 125 of file NamedCandCombiner.h.

125  {
126  return select_(c);
127  }

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

◆ selectPair()

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
inlineprivatevirtual

select a candidate

Implements NamedCandCombinerBase.

Definition at line 129 of file NamedCandCombiner.h.

129  {
130  return selectPair_(c1, c2);
131  }

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

◆ setup() [1/2]

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.

121 { return setup_; }

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

Referenced by o2olib.O2OTool::execute().

◆ setup() [2/2]

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
inlineprivatevirtual

set kinematics to reconstructed composite

Implements NamedCandCombinerBase.

Definition at line 133 of file NamedCandCombiner.h.

133  {
134  setup_.set(c);
135  }

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

Referenced by o2olib.O2OTool::execute().

Member Data Documentation

◆ name_

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

name

Definition at line 147 of file NamedCandCombiner.h.

◆ select_

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().

◆ selectPair_

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().

◆ setup_

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(), and upgradeWorkflowComponents.UpgradeWorkflow::setup().

PA_ZEESkim_cff.checkCharge
checkCharge
Definition: PA_ZEESkim_cff.py:27
NamedCandCombiner::selectPair_
PairSelector selectPair_
candidate pair selector
Definition: NamedCandCombiner.h:143
NamedCandCombiner::name_
std::string name_
name
Definition: NamedCandCombiner.h:147
NamedCandCombiner::select
virtual bool select(const reco::Candidate &c) const
select a candidate
Definition: NamedCandCombiner.h:125
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
NamedCandCombiner::setup
Setup & setup()
return reference to setup object to allow its initialization
Definition: NamedCandCombiner.h:121
NamedCandCombiner::setup_
Setup setup_
utility to setup composite candidate kinematics from daughters
Definition: NamedCandCombiner.h:145
NamedCandCombiner::select_
Selector select_
candidate selector
Definition: NamedCandCombiner.h:141
NamedCandCombinerBase::NamedCandCombinerBase
NamedCandCombinerBase(std::string name)
default construct
Definition: NamedCandCombinerBase.cc:6
q2
double q2[4]
Definition: TauolaWrapper.h:88
NamedCandCombiner::selectPair
virtual bool selectPair(const reco::Candidate &c1, const reco::Candidate &c2) const
select a candidate
Definition: NamedCandCombiner.h:129
q1
double q1[4]
Definition: TauolaWrapper.h:87
g4TestGeometry_cfi.checkOverlap
def checkOverlap(process)
Definition: g4TestGeometry_cfi.py:3
alignmentValidation.c1
c1
do drawing
Definition: alignmentValidation.py:1025
fileCollector.cmp
cmp
Definition: fileCollector.py:125
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56