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, const edm::EventSetup& iSetup);
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  bool secThrBool;
55  double thesecThr ;
56  //charge filter
57  int theCharge;
59  //missing ET Filter
61  //acoplanarity Filter
63  //helpers
65  void printTracks(const Tracks& col) const;
66 };
67 
68 #endif
69 
tuple cfg
Definition: looper.py:237
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
AlignmentTwoBodyDecayTrackSelector(const edm::ParameterSet &cfg)
constructor
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