CMS 3D CMS Logo

SeedChargeSelector.h
Go to the documentation of this file.
1 #ifndef RecoTracker_TkSeedGenerator_SeedChargeSelector_h
2 #define RecoTracker_TkSeedGenerator_SeedChargeSelector_h
3 /* \class SeedChargeSelector
4  *
5  * \author Giuseppe Cerati, INFN
6  *
7  */
8 
11  template <typename T>
12  bool operator()(const T& t) const {
13  return (t.startingState().parameters().charge() == charge_);
14  }
15 
16 private:
17  int charge_;
18 };
19 
22 
23 namespace reco {
24  namespace modules {
25 
26  template <>
29  return SeedChargeSelector(cfg.getParameter<int>("charge"));
30  }
31  };
32 
33  } // namespace modules
34 } // namespace reco
35 
36 #endif
reco::modules::ParameterAdapter< SeedChargeSelector >::make
static SeedChargeSelector make(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
Definition: SeedChargeSelector.h:28
modules
Definition: MuonCleanerBySegments.cc:35
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
SeedChargeSelector::operator()
bool operator()(const T &t) const
Definition: SeedChargeSelector.h:12
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
edm::ParameterSet
Definition: ParameterSet.h:47
SingleObjectSelectorBase
Definition: SingleObjectSelector.h:26
looper.cfg
cfg
Definition: looper.py:296
SeedChargeSelector::SeedChargeSelector
SeedChargeSelector(int charge)
Definition: SeedChargeSelector.h:10
SeedChargeSelector
Definition: SeedChargeSelector.h:9
T
long double T
Definition: Basic3DVectorLD.h:48
reco::modules::SeedChargeSelector
SingleObjectSelector< TrajectorySeedCollection, ::SeedChargeSelector > SeedChargeSelector
Definition: SeedChargeSelector.cc:8
SeedChargeSelector::charge_
int charge_
Definition: SeedChargeSelector.h:17
ParameterAdapter.h
ConsumesCollector.h
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
reco::modules::ParameterAdapter
Definition: ParameterAdapter.h:12