CMS 3D CMS Logo

AlignmentTwoBodyDecayTrackSelector.h
Go to the documentation of this file.
1 
2 #ifndef Alignment_CommonAlignmentAlgorithm_AlignmentTwoBodyDecayTrackSelector_h
3 #define Alignment_CommonAlignmentAlgorithm_AlignmentTwoBodyDecayTrackSelector_h
4 
5 //Framework
9 //STL
10 #include <vector>
11 // forward declaration:
14 
15 namespace edm {
16  class Event;
17  class EventSetup;
18 } // namespace edm
19 
21 public:
22  typedef std::vector<const reco::Track*> Tracks;
23 
26 
29 
31  Tracks select(const Tracks& tracks, const edm::Event& iEvent, const edm::EventSetup& iSetup);
32 
33  bool useThisFilter();
34 
35 private:
37  Tracks checkMass(const Tracks& cands) const;
39  Tracks checkMETMass(const Tracks& cands, const edm::Event& iEvent) const;
41  bool checkCharge(const reco::Track* trk1, const reco::Track* trk2 = nullptr) const;
43  bool checkAcoplanarity(const reco::Track* trk1, const reco::Track* trk2) const;
45  bool checkMETAcoplanarity(const reco::Track* trk, const reco::CaloMET* met) const;
46 
48 
49  //settings from conigfile
54  //inv mass Cut
55  double theMinMass;
56  double theMaxMass;
58  unsigned int theCandNumber;
59  bool secThrBool;
60  double thesecThr;
61  //charge filter
62  int theCharge;
64  //missing ET Filter
66  //acoplanarity Filter
68  //helpers
70  void printTracks(const Tracks& col) const;
71 };
72 
73 #endif
AlignmentTwoBodyDecayTrackSelector::theMinMass
double theMinMass
Definition: AlignmentTwoBodyDecayTrackSelector.h:55
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
AlignmentTwoBodyDecayTrackSelector::checkMETAcoplanarity
bool checkMETAcoplanarity(const reco::Track *trk, const reco::CaloMET *met) const
checks if [cands] contains a acoplanar track w.r.t missing ET (returns empty set if not)
Definition: AlignmentTwoBoyDecayTrackSelector.cc:259
AlignmentTwoBodyDecayTrackSelector::theUnsignedSwitch
bool theUnsignedSwitch
Definition: AlignmentTwoBodyDecayTrackSelector.h:63
AlignmentTwoBodyDecayTrackSelector::theMissingETSwitch
bool theMissingETSwitch
Definition: AlignmentTwoBodyDecayTrackSelector.h:52
edm::EDGetTokenT< reco::CaloMETCollection >
edm
HLT enums.
Definition: AlignableModifier.h:19
cuy.col
col
Definition: cuy.py:1010
AlignmentTwoBodyDecayTrackSelector::select
Tracks select(const Tracks &tracks, const edm::Event &iEvent, const edm::EventSetup &iSetup)
select tracks
Definition: AlignmentTwoBoyDecayTrackSelector.cc:78
AlignmentTwoBodyDecayTrackSelector::checkMass
Tracks checkMass(const Tracks &cands) const
checks if the mass of the mother is in the mass region
Definition: AlignmentTwoBoyDecayTrackSelector.cc:95
AlignmentTwoBodyDecayTrackSelector::theChargeSwitch
bool theChargeSwitch
Definition: AlignmentTwoBodyDecayTrackSelector.h:51
AlignmentTwoBodyDecayTrackSelector::theMassrangeSwitch
bool theMassrangeSwitch
private data members
Definition: AlignmentTwoBodyDecayTrackSelector.h:50
CaloMETFwd.h
AlignmentTwoBodyDecayTrackSelector
Definition: AlignmentTwoBodyDecayTrackSelector.h:20
BTaggingMonitor_cfi.met
met
Definition: BTaggingMonitor_cfi.py:84
reco::CaloMET
Definition: CaloMET.h:21
AlignmentTwoBodyDecayTrackSelector::theAcoplanarityFilterSwitch
bool theAcoplanarityFilterSwitch
Definition: AlignmentTwoBodyDecayTrackSelector.h:53
AlignmentTwoBodyDecayTrackSelector::checkMETMass
Tracks checkMETMass(const Tracks &cands, const edm::Event &iEvent) const
checks if the mass of the mother is in the mass region adding missing E_T
Definition: AlignmentTwoBoyDecayTrackSelector.cc:169
TrackFwd.h
AlignmentTwoBodyDecayTrackSelector::theMissingETToken
edm::EDGetTokenT< reco::CaloMETCollection > theMissingETToken
Definition: AlignmentTwoBodyDecayTrackSelector.h:65
reco::Track
Definition: Track.h:27
AlignmentTwoBodyDecayTrackSelector::theMaxMass
double theMaxMass
Definition: AlignmentTwoBodyDecayTrackSelector.h:56
Event
EDGetToken.h
HLT_FULL_cff.cands
cands
Definition: HLT_FULL_cff.py:15142
edm::ParameterSet
Definition: ParameterSet.h:47
AlignmentTwoBodyDecayTrackSelector::AlignmentTwoBodyDecayTrackSelector
AlignmentTwoBodyDecayTrackSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
constructor
Definition: AlignmentTwoBoyDecayTrackSelector.cc:24
AlignmentTwoBodyDecayTrackSelector::thesecThr
double thesecThr
Definition: AlignmentTwoBodyDecayTrackSelector.h:60
AlignmentTwoBodyDecayTrackSelector::theCharge
int theCharge
Definition: AlignmentTwoBodyDecayTrackSelector.h:62
iEvent
int iEvent
Definition: GenABIO.cc:224
AlignmentTwoBodyDecayTrackSelector::Tracks
std::vector< const reco::Track * > Tracks
Definition: AlignmentTwoBodyDecayTrackSelector.h:22
edm::EventSetup
Definition: EventSetup.h:57
AlignmentTwoBodyDecayTrackSelector::checkCharge
bool checkCharge(const reco::Track *trk1, const reco::Track *trk2=nullptr) const
checks if the mother has charge = [theCharge]
Definition: AlignmentTwoBoyDecayTrackSelector.cc:240
looper.cfg
cfg
Definition: looper.py:297
AlignmentTwoBodyDecayTrackSelector::printTracks
void printTracks(const Tracks &col) const
print Information on Track-Collection
Definition: AlignmentTwoBoyDecayTrackSelector.cc:268
AlignmentTwoBodyDecayTrackSelector::theDaughterMass
double theDaughterMass
Definition: AlignmentTwoBodyDecayTrackSelector.h:57
AlignmentTwoBodyDecayTrackSelector::theCandNumber
unsigned int theCandNumber
Definition: AlignmentTwoBodyDecayTrackSelector.h:58
AlignmentTwoBodyDecayTrackSelector::useThisFilter
bool useThisFilter()
returns if any of the Filters is used.
Definition: AlignmentTwoBoyDecayTrackSelector.cc:72
AlignmentTwoBodyDecayTrackSelector::secThrBool
bool secThrBool
Definition: AlignmentTwoBodyDecayTrackSelector.h:59
ConsumesCollector.h
AlignmentTwoBodyDecayTrackSelector::~AlignmentTwoBodyDecayTrackSelector
~AlignmentTwoBodyDecayTrackSelector()
destructor
Definition: AlignmentTwoBoyDecayTrackSelector.cc:69
EventSetup
ParameterSet.h
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
AlignmentTwoBodyDecayTrackSelector::checkAcoplanarity
bool checkAcoplanarity(const reco::Track *trk1, const reco::Track *trk2) const
checks if the [cands] are acoplanar (returns empty set if not)
Definition: AlignmentTwoBoyDecayTrackSelector.cc:252
AlignmentTwoBodyDecayTrackSelector::theAcoplanarDistance
double theAcoplanarDistance
Definition: AlignmentTwoBodyDecayTrackSelector.h:67