CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
16 {
17  public:
18 
19  typedef std::vector<const reco::Track*> Tracks;
20 
23 
26 
28  Tracks select(const Tracks& tracks, const edm::Event& iEvent, const edm::EventSetup& iSetup);
29 
30  bool useThisFilter();
31  private:
33  Tracks checkMass(const Tracks& cands)const;
35  Tracks checkMETMass(const Tracks& cands,const edm::Event& iEvent)const;
37  bool checkCharge(const reco::Track* trk1,const reco::Track* trk2 = 0)const;
39  bool checkAcoplanarity(const reco::Track* trk1,const reco::Track* trk2)const;
41  bool checkMETAcoplanarity(const reco::Track* trk,const reco::CaloMET* met)const;
42 
44 
45  //settings from conigfile
50  //inv mass Cut
51  double theMinMass;
52  double theMaxMass;
54  unsigned int theCandNumber;
55  bool secThrBool;
56  double thesecThr ;
57  //charge filter
58  int theCharge;
60  //missing ET Filter
62  //acoplanarity Filter
64  //helpers
66  void printTracks(const Tracks& col) const;
67 };
68 
69 #endif
70 
tuple cfg
Definition: looper.py:293
AlignmentTwoBodyDecayTrackSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
constructor
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) ...
bool checkAcoplanarity(const reco::Track *trk1, const reco::Track *trk2) const
checks if the [cands] are acoplanar (returns empty set if not)
int iEvent
Definition: GenABIO.cc:230
bool checkCharge(const reco::Track *trk1, const reco::Track *trk2=0) const
checks if the mother has charge = [theCharge]
bool useThisFilter()
returns if any of the Filters is used.
void printTracks(const Tracks &col) const
print Information on Track-Collection
Tracks select(const Tracks &tracks, const edm::Event &iEvent, const edm::EventSetup &iSetup)
select tracks
tuple tracks
Definition: testEve_cfg.py:39
edm::EDGetTokenT< reco::CaloMETCollection > theMissingETToken
int col
Definition: cuy.py:1008
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
Tracks checkMass(const Tracks &cands) const
checks if the mass of the mother is in the mass region