 |
DAS
3.0
Das Analysis System
|
#include <fjcore.hh>
◆ Selector() [1/2]
◆ Selector() [2/2]
◆ ~Selector()
◆ _copy_worker_if_needed()
void _copy_worker_if_needed |
( |
| ) |
|
|
inlineprotected |
◆ applies_jet_by_jet()
bool applies_jet_by_jet |
( |
| ) |
const |
|
inline |
◆ count()
unsigned int count |
( |
const std::vector< PseudoJet > & |
jets | ) |
const |
4189 for (
unsigned i = 0; i <
jets.size(); i++) {
4190 if (worker_local->
pass(
jets[i])) n++;
4193 std::vector<const PseudoJet *> jetptrs(
jets.size());
4194 for (
unsigned i = 0; i <
jets.size(); i++) {
4195 jetptrs[i] = &
jets[i];
4198 for (
unsigned i = 0; i < jetptrs.size(); i++) {
4199 if (jetptrs[i]) n++;
◆ description()
std::string description |
( |
| ) |
const |
|
inline |
◆ get_rapidity_extent()
void get_rapidity_extent |
( |
double & |
rapmin, |
|
|
double & |
rapmax |
|
) |
| const |
|
inline |
◆ has_finite_area()
bool has_finite_area |
( |
| ) |
const |
|
inline |
◆ is_geometric()
bool is_geometric |
( |
| ) |
const |
|
inline |
◆ nullify_non_selected()
virtual void nullify_non_selected |
( |
std::vector< const PseudoJet * > & |
jets | ) |
const |
|
inlinevirtual |
◆ operator&=()
◆ operator()() [1/2]
bool operator() |
( |
const PseudoJet & |
jet | ) |
const |
|
inline |
◆ operator()() [2/2]
4166 std::vector<PseudoJet> result;
4169 for (std::vector<PseudoJet>::const_iterator jet =
jets.begin();
4170 jet !=
jets.end(); jet++) {
4171 if (worker_local->
pass(*jet)) result.push_back(*jet);
4174 std::vector<const PseudoJet *> jetptrs(
jets.size());
4175 for (
unsigned i = 0; i <
jets.size(); i++) {
4176 jetptrs[i] = &
jets[i];
4179 for (
unsigned i = 0; i < jetptrs.size(); i++) {
4180 if (jetptrs[i]) result.push_back(
jets[i]);
◆ operator|=()
◆ pass()
903 throw Error(
"Cannot apply this selector to an individual jet");
◆ scalar_pt_sum()
double scalar_pt_sum |
( |
const std::vector< PseudoJet > & |
jets | ) |
const |
4224 double this_sum = 0.0;
4227 for (
unsigned i = 0; i <
jets.size(); i++) {
4228 if (worker_local->
pass(
jets[i])) this_sum +=
jets[i].pt();
4231 std::vector<const PseudoJet *> jetptrs(
jets.size());
4232 for (
unsigned i = 0; i <
jets.size(); i++) {
4233 jetptrs[i] = &
jets[i];
4236 for (
unsigned i = 0; i < jetptrs.size(); i++) {
4237 if (jetptrs[i]) this_sum +=
jets[i].pt();
◆ set_reference()
◆ sift()
void sift |
( |
const std::vector< PseudoJet > & |
jets, |
|
|
std::vector< PseudoJet > & |
jets_that_pass, |
|
|
std::vector< PseudoJet > & |
jets_that_fail |
|
) |
| const |
4247 jets_that_pass.clear();
4248 jets_that_fail.clear();
4250 for (
unsigned i = 0; i <
jets.size(); i++) {
4252 jets_that_pass.push_back(
jets[i]);
4254 jets_that_fail.push_back(
jets[i]);
4258 std::vector<const PseudoJet *> jetptrs(
jets.size());
4259 for (
unsigned i = 0; i <
jets.size(); i++) {
4260 jetptrs[i] = &
jets[i];
4263 for (
unsigned i = 0; i < jetptrs.size(); i++) {
4265 jets_that_pass.push_back(
jets[i]);
4267 jets_that_fail.push_back(
jets[i]);
◆ sum()
4208 for (
unsigned i = 0; i <
jets.size(); i++) {
4212 std::vector<const PseudoJet *> jetptrs(
jets.size());
4213 for (
unsigned i = 0; i <
jets.size(); i++) {
4214 jetptrs[i] = &
jets[i];
4217 for (
unsigned i = 0; i < jetptrs.size(); i++) {
4218 if (jetptrs[i]) this_sum +=
jets[i];
◆ takes_reference()
bool takes_reference |
( |
| ) |
const |
|
inline |
◆ validated_worker()
938 if (worker_ptr == 0)
throw InvalidWorker();
◆ worker()
◆ _worker
The documentation for this class was generated from the following files:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/JetObservables/interface/fjcore.hh
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/JetObservables/src/fjcore.cc
virtual std::string description() const
Definition: fjcore.hh:877
bool applies_jet_by_jet() const
Definition: fjcore.hh:916
virtual bool is_geometric() const
Definition: fjcore.hh:889
bool unique() const
Definition: fjcore.hh:346
virtual void get_rapidity_extent(double &rapmin, double &rapmax) const
Definition: fjcore.hh:885
virtual bool takes_reference() const
Definition: fjcore.hh:878
bool takes_reference() const
Definition: fjcore.hh:941
bool pass(const PseudoJet &jet) const
Definition: fjcore.hh:901
string jets
Definition: Ntupliser_cfg.py:41
Definition: fjcore.cc:4351
virtual SelectorWorker * copy()
Definition: fjcore.hh:882
const SelectorWorker * validated_worker() const
Definition: fjcore.hh:936
virtual bool applies_jet_by_jet() const
Definition: fjcore.hh:876
void _copy_worker_if_needed()
Definition: fjcore.hh:963
Definition: fjcore.cc:4388
virtual bool pass(const PseudoJet &jet) const =0
T * get() const
Definition: fjcore.hh:342
virtual void set_reference(const PseudoJet &)
Definition: fjcore.hh:879
Definition: fjcore.hh:535
virtual void terminator(std::vector< const PseudoJet * > &jets) const
Definition: fjcore.hh:871
SharedPtr< SelectorWorker > _worker
the underlying worker
Definition: fjcore.hh:968
Definition: fjcore.hh:462
void reset()
Definition: fjcore.hh:308
virtual bool has_finite_area() const
Definition: fjcore.cc:4272
Definition: fjcore.hh:867