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
8 //STL
9 #include <vector>
10 // forward declaration:
13 
15 {
16  public:
17 
18  typedef std::vector<const reco::Track*> Tracks;
19 
22 
25 
27  Tracks select(const Tracks& tracks, const edm::Event& iEvent);
28 
29  bool useThisFilter();
30  private:
32  Tracks checkMass(const Tracks& cands)const;
34  Tracks checkMETMass(const Tracks& cands,const edm::Event& iEvent)const;
36  bool checkCharge(const reco::Track* trk1,const reco::Track* trk2 = 0)const;
38  bool checkAcoplanarity(const reco::Track* trk1,const reco::Track* trk2)const;
40  bool checkMETAcoplanarity(const reco::Track* trk,const reco::CaloMET* met)const;
41 
43 
44  //settings from conigfile
49  //inv mass Cut
50  double theMinMass;
51  double theMaxMass;
53  unsigned int theCandNumber;
54  //charge filter
55  int theCharge;
57  //missing ET Filter
59  //acoplanarity Filter
61  //helpers
63  void printTracks(const Tracks& col) const;
64 };
65 
66 #endif
67 
Tracks select(const Tracks &tracks, const edm::Event &iEvent)
select tracks
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:243
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
tuple tracks
Definition: testEve_cfg.py:39
AlignmentTwoBodyDecayTrackSelector(const edm::ParameterSet &cfg)
constructor
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