CMS 3D CMS Logo

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
18 
21 
23 #include "TLorentzVector.h"
24 
25 class TauValidation : public DQMEDAnalyzer {
26 public:
27  // tau decays
29  // tau mother particles
30  enum { other, B, D, gamma, Z, W, HSM, H0, A0, Hpm };
31 
32 public:
33  explicit TauValidation(const edm::ParameterSet &);
34  ~TauValidation() override;
35  void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override;
36  void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override;
37  void analyze(edm::Event const &, edm::EventSetup const &) override;
38 
39 private:
40  // WeightManager wmanager_;
41 
42  int tauMother(const reco::GenParticle *, double weight);
43  int tauProngs(const reco::GenParticle *, double weight);
44  int tauDecayChannel(const reco::GenParticle *tau, int jak_id, unsigned int TauBitMask, double weight);
45  int findMother(const reco::GenParticle *);
47  void spinEffectsWHpm(const reco::GenParticle *, int, int, std::vector<const reco::GenParticle *> &part, double weight);
48  void spinEffectsZH(const reco::GenParticle *boson, double weight);
49  double leadingPionMomentum(const reco::GenParticle *, double weight);
50  double visibleTauEnergy(const reco::GenParticle *);
51  TLorentzVector leadingPionP4(const reco::GenParticle *);
52  TLorentzVector motherP4(const reco::GenParticle *);
53  void photons(const reco::GenParticle *, double weight);
54  void findTauList(const reco::GenParticle *tau, std::vector<const reco::GenParticle *> &TauList);
56  bool doBrem,
57  std::vector<const reco::GenParticle *> &ListofFSR,
58  std::vector<const reco::GenParticle *> &ListofBrem);
59  void FindPhotosFSR(const reco::GenParticle *p, std::vector<const reco::GenParticle *> &ListofFSR, double &BosonScale);
61  const std::vector<const reco::GenParticle *> GetMothers(const reco::GenParticle *boson);
62  double Zstoa(double zs);
64  int &allCount,
65  int &eCount,
66  int &muCount,
67  int &pi0Count,
68  int &piCount,
69  int &rhoCount,
70  int &a1Count,
71  int &KCount,
72  int &KstarCount);
73 
75 
78 
91 
92  unsigned int NMODEID;
94  std::vector<std::vector<MonitorElement *> > MODEInvMass;
95 
96  int zsbins;
97  double zsmin, zsmax;
98 
100 };
101 
102 #endif
TauValidation::TauBremPhotonsPt
MonitorElement * TauBremPhotonsPt
Definition: TauValidation.h:80
TauValidation::tauMother
int tauMother(const reco::GenParticle *, double weight)
Definition: TauValidation.cc:563
TauValidation::electron
Definition: TauValidation.h:28
TauValidation::zsmin
double zsmin
Definition: TauValidation.h:97
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
Handle.h
mps_fire.i
i
Definition: mps_fire.py:355
TauValidation::findTauList
void findTauList(const reco::GenParticle *tau, std::vector< const reco::GenParticle * > &TauList)
Definition: TauValidation.cc:496
TauValidation::MODEID
MonitorElement * MODEID
Definition: TauValidation.h:93
TauValidation::pi1pi0
Definition: TauValidation.h:28
TauValidation::pi
Definition: TauValidation.h:28
TauValidation::tripinpi0
Definition: TauValidation.h:28
TauValidation::TauSpinEffectsW_UpsilonA1
MonitorElement * TauSpinEffectsW_UpsilonA1
Definition: TauValidation.h:80
TauValidation::D
Definition: TauValidation.h:30
ESHandle.h
metsig::tau
Definition: SignAlgoResolutions.h:49
TauValidation::~TauValidation
~TauValidation() override
Definition: TauValidation.cc:28
reco::GenParticle
Definition: GenParticle.h:21
TauValidation::TauSpinEffectsH_rhorhoAcoplanarityminus
MonitorElement * TauSpinEffectsH_rhorhoAcoplanarityminus
Definition: TauValidation.h:80
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< reco::GenParticleCollection >
TauValidation::gamma
Definition: TauValidation.h:30
TauValidation::countParticles
void countParticles(const reco::GenParticle *p, int &allCount, int &eCount, int &muCount, int &pi0Count, int &piCount, int &rhoCount, int &a1Count, int &KCount, int &KstarCount)
Definition: TauValidation.cc:636
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TauValidation::TauSpinEffectsH_pipiAcoplanarity
MonitorElement * TauSpinEffectsH_pipiAcoplanarity
Definition: TauValidation.h:80
TauValidation::findMother
int findMother(const reco::GenParticle *)
Definition: TauValidation.cc:486
TauValidation::TauSpinEffectsZ_X100to120
MonitorElement * TauSpinEffectsZ_X100to120
Definition: TauValidation.h:80
DQMStore.h
TauValidation::TauSpinEffectsH_X
MonitorElement * TauSpinEffectsH_X
Definition: TauValidation.h:80
TauValidation::H0
Definition: TauValidation.h:30
TauValidation::TauSpinEffectsZ_eX
MonitorElement * TauSpinEffectsZ_eX
Definition: TauValidation.h:80
TauValidation::TauSpinEffectsH_Zs
MonitorElement * TauSpinEffectsH_Zs
Definition: TauValidation.h:80
TauValidation::TauPt
MonitorElement * TauPt
Definition: TauValidation.h:80
TauValidation::motherP4
TLorentzVector motherP4(const reco::GenParticle *)
Definition: TauValidation.cc:1037
TauValidation::TauSpinEffectsH_Xf
MonitorElement * TauSpinEffectsH_Xf
Definition: TauValidation.h:80
TauValidation::B
Definition: TauValidation.h:30
TauValidation::A0
Definition: TauValidation.h:30
TauValidation::TauSpinEffectsZ_X
MonitorElement * TauSpinEffectsZ_X
Definition: TauValidation.h:80
TauValidation::TauDecayChannels
MonitorElement * TauDecayChannels
Definition: TauValidation.h:80
TauValidation::leadingPionP4
TLorentzVector leadingPionP4(const reco::GenParticle *)
Definition: TauValidation.cc:1022
TauValidation::NMODEID
unsigned int NMODEID
Definition: TauValidation.h:92
TauValidation::TauSpinEffectsZ_muX
MonitorElement * TauSpinEffectsZ_muX
Definition: TauValidation.h:80
TauValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
Definition: TauValidation.cc:32
GenParticle.h
TauValidation::TauSpinEffectsZ_Xf
MonitorElement * TauSpinEffectsZ_Xf
Definition: TauValidation.h:80
dqm::legacy::DQMStore::IBooker
dqm::implementation::IBooker IBooker
Definition: DQMStore.h:729
TauValidation::TauSpinEffectsZ_X50to75
MonitorElement * TauSpinEffectsZ_X50to75
Definition: TauValidation.h:80
part
part
Definition: HCALResponse.h:20
TauValidation::fPDGTable
edm::ESHandle< HepPDT::ParticleDataTable > fPDGTable
PDT table.
Definition: TauValidation.h:77
TauValidation::Kstar
Definition: TauValidation.h:28
Service.h
TauValidation::TauSpinEffectsHpm_X
MonitorElement * TauSpinEffectsHpm_X
Definition: TauValidation.h:80
TauValidation::undetermined
Definition: TauValidation.h:28
GenParticleFwd.h
TauValidation::TauSpinEffectsW_X
MonitorElement * TauSpinEffectsW_X
Definition: TauValidation.h:80
Run.h
edm::ESHandle< HepPDT::ParticleDataTable >
TauValidation::TauSpinEffectsH_eX
MonitorElement * TauSpinEffectsH_eX
Definition: TauValidation.h:80
TauValidation::genparticleCollection_
edm::InputTag genparticleCollection_
Definition: TauValidation.h:74
TauValidation
Definition: TauValidation.h:25
TauValidation::LifeTime
MonitorElement * LifeTime
Definition: TauValidation.h:80
TauValidation::TauSpinEffectsZ_MVis
MonitorElement * TauSpinEffectsZ_MVis
Definition: TauValidation.h:80
TauValidation::Hpm
Definition: TauValidation.h:30
TauValidation::visibleTauEnergy
double visibleTauEnergy(const reco::GenParticle *)
Definition: TauValidation.cc:1042
TauValidation::nPrimeTaus
MonitorElement * nPrimeTaus
Definition: TauValidation.h:79
TauValidation::genparticleCollectionToken_
edm::EDGetTokenT< reco::GenParticleCollection > genparticleCollectionToken_
Definition: TauValidation.h:99
TauValidation::TauMothers
MonitorElement * TauMothers
Definition: TauValidation.h:80
TauValidation::TauSpinEffectsH_pipiAcollinearityzoom
MonitorElement * TauSpinEffectsH_pipiAcollinearityzoom
Definition: TauValidation.h:80
TauValidation::TauFSRPhotonsN
MonitorElement * TauFSRPhotonsN
Definition: TauValidation.h:80
DQMEDAnalyzer.h
TauValidation::zsbins
int zsbins
Definition: TauValidation.h:96
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
TauValidation::isLastTauinChain
bool isLastTauinChain(const reco::GenParticle *tau)
Definition: TauValidation.cc:488
TauValidation::TauSpinEffectsZ_X88to100
MonitorElement * TauSpinEffectsZ_X88to100
Definition: TauValidation.h:80
TauValidation::GetMother
const reco::GenParticle * GetMother(const reco::GenParticle *tau)
Definition: TauValidation.cc:465
TauValidation::findFSRandBrem
void findFSRandBrem(const reco::GenParticle *p, bool doBrem, std::vector< const reco::GenParticle * > &ListofFSR, std::vector< const reco::GenParticle * > &ListofBrem)
Definition: TauValidation.cc:506
TauValidation::FindPhotosFSR
void FindPhotosFSR(const reco::GenParticle *p, std::vector< const reco::GenParticle * > &ListofFSR, double &BosonScale)
Definition: TauValidation.cc:533
TauValidation::TauSpinEffectsW_muX
MonitorElement * TauSpinEffectsW_muX
Definition: TauValidation.h:80
edm::ParameterSet
Definition: ParameterSet.h:36
TauValidation::TauSpinEffectsH_rhorhoAcoplanarityplus
MonitorElement * TauSpinEffectsH_rhorhoAcoplanarityplus
Definition: TauValidation.h:80
Event.h
ParticleDataTable.h
TauValidation::TauSpinEffectsHpm_muX
MonitorElement * TauSpinEffectsHpm_muX
Definition: TauValidation.h:80
TauValidation::TauSpinEffectsH_muX
MonitorElement * TauSpinEffectsH_muX
Definition: TauValidation.h:80
TauValidation::TauSpinEffectsH_pipiAcollinearity
MonitorElement * TauSpinEffectsH_pipiAcollinearity
Definition: TauValidation.h:80
TauValidation::TauSpinEffectsHpm_UpsilonRho
MonitorElement * TauSpinEffectsHpm_UpsilonRho
Definition: TauValidation.h:80
TauValidation::TauProngs
MonitorElement * TauProngs
Definition: TauValidation.h:80
TauValidation::TauSpinEffectsHpm_UpsilonA1
MonitorElement * TauSpinEffectsHpm_UpsilonA1
Definition: TauValidation.h:80
TauValidation::TauPhi
MonitorElement * TauPhi
Definition: TauValidation.h:80
TauValidation::spinEffectsWHpm
void spinEffectsWHpm(const reco::GenParticle *, int, int, std::vector< const reco::GenParticle * > &part, double weight)
Definition: TauValidation.cc:670
TauValidation::TauSpinEffectsH_MVis
MonitorElement * TauSpinEffectsH_MVis
Definition: TauValidation.h:80
TauValidation::TauValidation
TauValidation(const edm::ParameterSet &)
Definition: TauValidation.cc:18
TauValidation::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: TauValidation.cc:368
TauValidation::TauSpinEffectsH_Xb
MonitorElement * TauSpinEffectsH_Xb
Definition: TauValidation.h:80
TauValidation::nTaus
MonitorElement * nTaus
Definition: TauValidation.h:79
TauValidation::TauFSRPhotonsPt
MonitorElement * TauFSRPhotonsPt
Definition: TauValidation.h:80
TauValidation::TauSpinEffectsZ_Xb
MonitorElement * TauSpinEffectsZ_Xb
Definition: TauValidation.h:80
TauValidation::DecayLength
MonitorElement * DecayLength
Definition: TauValidation.h:80
TauValidation::leadingPionMomentum
double leadingPionMomentum(const reco::GenParticle *, double weight)
Definition: TauValidation.cc:1018
TauValidation::TauSpinEffectsHpm_eX
MonitorElement * TauSpinEffectsHpm_eX
Definition: TauValidation.h:80
TauValidation::spinEffectsZH
void spinEffectsZH(const reco::GenParticle *boson, double weight)
Definition: TauValidation.cc:740
TauValidation::tauProngs
int tauProngs(const reco::GenParticle *, double weight)
edm::EventSetup
Definition: EventSetup.h:57
TauValidation::photons
void photons(const reco::GenParticle *, double weight)
Definition: TauValidation.cc:1056
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
TauValidation::Zstoa
double Zstoa(double zs)
Definition: TauValidation.cc:1010
TauValidation::TauSpinEffectsZ_Zs
MonitorElement * TauSpinEffectsZ_Zs
Definition: TauValidation.h:80
InputTag.h
TauValidation::Z
Definition: TauValidation.h:30
alignCSCRings.r
r
Definition: alignCSCRings.py:93
TauValidation::stable
Definition: TauValidation.h:28
TauValidation::TauBremPhotonsN
MonitorElement * TauBremPhotonsN
Definition: TauValidation.h:80
TauValidation::rho
Definition: TauValidation.h:28
TauValidation::muon
Definition: TauValidation.h:28
TauValidation::W
Definition: TauValidation.h:30
TauValidation::MODEInvMass
std::vector< std::vector< MonitorElement * > > MODEInvMass
Definition: TauValidation.h:94
TauValidation::zsmax
double zsmax
Definition: TauValidation.h:97
EventSetup.h
TauValidation::a1
Definition: TauValidation.h:28
TauValidation::other
Definition: TauValidation.h:30
TauValidation::TauSpinEffectsW_eX
MonitorElement * TauSpinEffectsW_eX
Definition: TauValidation.h:80
TauValidation::tripi
Definition: TauValidation.h:28
TauValidation::K
Definition: TauValidation.h:28
TauValidation::TauSpinEffectsW_UpsilonRho
MonitorElement * TauSpinEffectsW_UpsilonRho
Definition: TauValidation.h:80
TauValidation::TauFSRPhotonsPtSum
MonitorElement * TauFSRPhotonsPtSum
Definition: TauValidation.h:80
TauValidation::TauSpinEffectsZ_X75to88
MonitorElement * TauSpinEffectsZ_X75to88
Definition: TauValidation.h:80
ParameterSet.h
TauValidation::dqmBeginRun
void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override
Definition: TauValidation.cc:30
TauValidation::GetMothers
const std::vector< const reco::GenParticle * > GetMothers(const reco::GenParticle *boson)
Definition: TauValidation.cc:475
edm::Event
Definition: Event.h:73
TauValidation::TauEta
MonitorElement * TauEta
Definition: TauValidation.h:80
TauValidation::pinpi0
Definition: TauValidation.h:28
edm::InputTag
Definition: InputTag.h:15
TauValidation::HSM
Definition: TauValidation.h:30
TauValidation::TauSpinEffectsZ_X120UP
MonitorElement * TauSpinEffectsZ_X120UP
Definition: TauValidation.h:80
weight
Definition: weight.py:1
TauValidation::tauDecayChannel
int tauDecayChannel(const reco::GenParticle *tau, int jak_id, unsigned int TauBitMask, double weight)
Definition: TauValidation.cc:595
TauValidation::TauBremPhotonsPtSum
MonitorElement * TauBremPhotonsPtSum
Definition: TauValidation.h:80