CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TauValidation.h
Go to the documentation of this file.
1 #ifndef TauValidation_H
2 #define TauValidation_H
3 
4 // framework & common header files
8 
13 
14 //DQM services
19 
22 
24 #include "TLorentzVector.h"
25 
27 {
28  public:
29  // tau decays
30  enum {undetermined,
33  pi,
34  rho,
35  a1,
36  K,
43  // tau mother particles
44  enum {other,
45  B,
46  D,
48  Z,
49  W,
50  HSM,
51  H0,
52  A0,
53  Hpm};
54 
55  public:
56  explicit TauValidation(const edm::ParameterSet&);
57  virtual ~TauValidation();
58  virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override;
59  virtual void dqmBeginRun(const edm::Run& r, const edm::EventSetup& c) override;
60  virtual void analyze(edm::Event const&, edm::EventSetup const&) override;
61  private:
62  // WeightManager wmanager_;
63 
64  int tauMother(const reco::GenParticle*, double weight);
65  int tauProngs(const reco::GenParticle*, double weight);
66  int tauDecayChannel(const reco::GenParticle* tau,int jak_id,unsigned int TauBitMask, double weight);
67  int findMother(const reco::GenParticle*);
69  void spinEffectsWHpm(const reco::GenParticle*,int,int,std::vector<const reco::GenParticle*> &part,double weight);
70  void spinEffectsZH(const reco::GenParticle* boson, double weight);
71  double leadingPionMomentum(const reco::GenParticle*, double weight);
72  double visibleTauEnergy(const reco::GenParticle*);
73  TLorentzVector leadingPionP4(const reco::GenParticle*);
74  TLorentzVector motherP4(const reco::GenParticle*);
75  void photons(const reco::GenParticle*, double weight);
76  void findTauList(const reco::GenParticle* tau,std::vector<const reco::GenParticle*> &TauList);
77  void findFSRandBrem(const reco::GenParticle* p, bool doBrem, std::vector<const reco::GenParticle*> &ListofFSR,
78  std::vector<const reco::GenParticle*> &ListofBrem);
79  void FindPhotosFSR(const reco::GenParticle* p,std::vector<const reco::GenParticle*> &ListofFSR,double &BosonScale);
81  const std::vector<const reco::GenParticle*> GetMothers(const reco::GenParticle* boson);
82  double Zstoa(double zs);
83  void countParticles(const reco::GenParticle* p,int &allCount, int &eCount, int &muCount,
84  int &pi0Count,int &piCount,int &rhoCount,int &a1Count,int &KCount,int &KstarCount);
85 
87 
90 
102  *LifeTime;
103 
104  unsigned int NMODEID;
106  std::vector<std::vector<MonitorElement *> > MODEInvMass;
107 
108  int zsbins;
109  double zsmin,zsmax;
110 
112 };
113 
114 #endif
115 
MonitorElement * TauFSRPhotonsN
Definition: TauValidation.h:92
int i
Definition: DBlmapReader.cc:9
int findMother(const reco::GenParticle *)
virtual ~TauValidation()
MonitorElement * TauSpinEffectsH_rhorhoAcoplanarityplus
Definition: TauValidation.h:92
MonitorElement * TauPhi
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsW_X
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsHpm_UpsilonA1
Definition: TauValidation.h:92
MonitorElement * MODEID
MonitorElement * TauSpinEffectsZ_Xb
Definition: TauValidation.h:92
MonitorElement * nTaus
Definition: TauValidation.h:91
MonitorElement * DecayLength
Definition: TauValidation.h:92
std::vector< std::vector< MonitorElement * > > MODEInvMass
TauValidation(const edm::ParameterSet &)
MonitorElement * TauPt
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsH_MVis
Definition: TauValidation.h:92
MonitorElement * TauMothers
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsHpm_eX
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsZ_X100to120
Definition: TauValidation.h:92
void FindPhotosFSR(const reco::GenParticle *p, std::vector< const reco::GenParticle * > &ListofFSR, double &BosonScale)
MonitorElement * TauSpinEffectsW_muX
Definition: TauValidation.h:92
MonitorElement * TauBremPhotonsN
Definition: TauValidation.h:92
void spinEffectsWHpm(const reco::GenParticle *, int, int, std::vector< const reco::GenParticle * > &part, double weight)
MonitorElement * TauSpinEffectsZ_Xf
Definition: TauValidation.h:92
bool isLastTauinChain(const reco::GenParticle *tau)
MonitorElement * TauBremPhotonsPtSum
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsH_pipiAcoplanarity
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsHpm_UpsilonRho
Definition: TauValidation.h:92
double leadingPionMomentum(const reco::GenParticle *, double weight)
MonitorElement * TauSpinEffectsZ_eX
Definition: TauValidation.h:92
MonitorElement * TauProngs
Definition: TauValidation.h:92
TLorentzVector motherP4(const reco::GenParticle *)
virtual void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override
MonitorElement * TauSpinEffectsH_pipiAcollinearityzoom
Definition: TauValidation.h:92
void photons(const reco::GenParticle *, double weight)
MonitorElement * TauSpinEffectsW_UpsilonRho
Definition: TauValidation.h:92
const reco::GenParticle * GetMother(const reco::GenParticle *tau)
MonitorElement * TauSpinEffectsZ_X88to100
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsH_rhorhoAcoplanarityminus
Definition: TauValidation.h:92
virtual void analyze(edm::Event const &, edm::EventSetup const &) override
MonitorElement * TauSpinEffectsZ_X50to75
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsH_Xf
Definition: TauValidation.h:92
MonitorElement * TauFSRPhotonsPt
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsZ_muX
Definition: TauValidation.h:92
MonitorElement * TauDecayChannels
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsH_Zs
Definition: TauValidation.h:92
unsigned int NMODEID
MonitorElement * TauFSRPhotonsPtSum
Definition: TauValidation.h:92
int tauMother(const reco::GenParticle *, double weight)
virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
const std::vector< const reco::GenParticle * > GetMothers(const reco::GenParticle *boson)
MonitorElement * TauSpinEffectsZ_MVis
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsZ_X75to88
Definition: TauValidation.h:92
double visibleTauEnergy(const reco::GenParticle *)
int tauDecayChannel(const reco::GenParticle *tau, int jak_id, unsigned int TauBitMask, double weight)
MonitorElement * TauSpinEffectsH_pipiAcollinearity
Definition: TauValidation.h:92
part
Definition: HCALResponse.h:20
MonitorElement * TauSpinEffectsZ_X
Definition: TauValidation.h:92
edm::ESHandle< HepPDT::ParticleDataTable > fPDGTable
PDT table.
Definition: TauValidation.h:89
MonitorElement * TauSpinEffectsH_eX
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsW_eX
Definition: TauValidation.h:92
edm::EDGetTokenT< reco::GenParticleCollection > genparticleCollectionToken_
double Zstoa(double zs)
void findTauList(const reco::GenParticle *tau, std::vector< const reco::GenParticle * > &TauList)
void findFSRandBrem(const reco::GenParticle *p, bool doBrem, std::vector< const reco::GenParticle * > &ListofFSR, std::vector< const reco::GenParticle * > &ListofBrem)
MonitorElement * LifeTime
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsH_muX
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsW_UpsilonA1
Definition: TauValidation.h:92
void countParticles(const reco::GenParticle *p, int &allCount, int &eCount, int &muCount, int &pi0Count, int &piCount, int &rhoCount, int &a1Count, int &KCount, int &KstarCount)
MonitorElement * TauEta
Definition: TauValidation.h:92
edm::InputTag genparticleCollection_
Definition: TauValidation.h:86
MonitorElement * TauSpinEffectsZ_Zs
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsHpm_X
Definition: TauValidation.h:92
int weight
Definition: histoStyle.py:50
MonitorElement * TauSpinEffectsHpm_muX
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsZ_X120UP
Definition: TauValidation.h:92
MonitorElement * TauSpinEffectsH_Xb
Definition: TauValidation.h:92
MonitorElement * nPrimeTaus
Definition: TauValidation.h:91
MonitorElement * TauBremPhotonsPt
Definition: TauValidation.h:92
void spinEffectsZH(const reco::GenParticle *boson, double weight)
Definition: Run.h:43
int tauProngs(const reco::GenParticle *, double weight)
MonitorElement * TauSpinEffectsH_X
Definition: TauValidation.h:92
TLorentzVector leadingPionP4(const reco::GenParticle *)