CMS 3D CMS Logo

TSLToyGen.h
Go to the documentation of this file.
1 #ifndef TSLToyGen_hh
2 #define TSLToyGen_hh
3 
4 #include <vector>
5 #include "TObject.h"
6 #include "TObjArray.h"
8 #include "TVector3.h"
9 
10 class TAbsFitParticle;
11 
12 class TSLToyGen : public TObject {
13 public:
14  TSLToyGen(const TAbsFitParticle* bReco,
15  const TAbsFitParticle* lepton,
16  const TAbsFitParticle* X,
17  const TAbsFitParticle* neutrino);
18  ~TSLToyGen() override;
19  Bool_t doToyExperiments(Int_t nbExperiments = 1000);
20 
21  TH1D* _histStatus;
22  TH1D* _histNIter;
23  TH1D* _histPChi2;
24  TH1D* _histChi2;
25 
29  TH1D* _histMXTrue;
30  TH1D* _histMXSmear;
31  TH1D* _histMXFit;
35 
36  TObjArray _histsParTrue;
37  TObjArray _histsParSmear;
38  TObjArray _histsParFit;
39 
40  TObjArray _histsPull1;
41  TObjArray _histsError1;
42  TObjArray _histsDiff1;
43  TObjArray _histsPull2;
44  TObjArray _histsError2;
45  TObjArray _histsDiff2;
46 
53 
55  void setMPDGCons(Bool_t value) { _withMPDGCons = value; }
57 
58 protected:
59  void smearParticles();
60 
61  void createHists();
62 
63  void fillPull1();
64  void fillPull2();
65  void fillPar();
66  void fillM();
67 
68 private:
69  std::vector<TAbsFitParticle*> _inimeasParticles; // vector that contains all true measured particles
70  std::vector<TAbsFitParticle*> _iniunmeasParticles; // vector that contains all true unmeasured particles
71  std::vector<TAbsFitParticle*> _measParticles; // vector that contains all smeared measured particles
72  std::vector<TAbsFitParticle*> _unmeasParticles; // vector that contains all smeared unmeasured particles
73  TVector3 _Y4S;
74 
83 
84  Bool_t _printPartIni;
85  Bool_t _printConsIni;
91  Bool_t _withMPDGCons;
93 
94  ClassDefOverride(TSLToyGen, 0)
95 };
96 
97 #endif
TSLToyGen::_printPartIni
Bool_t _printPartIni
Definition: TSLToyGen.h:84
TSLToyGen::_printSmearedPartBefore
Bool_t _printSmearedPartBefore
Definition: TSLToyGen.h:86
TSLToyGen::setprintPartAfter
void setprintPartAfter(Bool_t value)
Definition: TSLToyGen.h:50
TSLToyGen::_iniX
TAbsFitParticle * _iniX
Definition: TSLToyGen.h:77
TSLToyGen::fillPull2
void fillPull2()
Definition: TSLToyGen.cc:268
TSLToyGen::_histsPull2
TObjArray _histsPull2
Definition: TSLToyGen.h:43
TSLToyGen::_histMXlnuTrue
TH1D * _histMXlnuTrue
Definition: TSLToyGen.h:32
TSLToyGen::fillPull1
void fillPull1()
Definition: TSLToyGen.cc:246
X
#define X(str)
Definition: MuonsGrabber.cc:38
TSLToyGen::setCheckConstraintsTruth
void setCheckConstraintsTruth(Bool_t value)
Definition: TSLToyGen.h:56
TSLToyGen::_inimeasParticles
std::vector< TAbsFitParticle * > _inimeasParticles
Definition: TSLToyGen.h:69
TSLToyGen::_withMassConstraint
Bool_t _withMassConstraint
Definition: TSLToyGen.h:90
TSLToyGen::smearParticles
void smearParticles()
Definition: TSLToyGen.cc:216
TSLToyGen::_histMXTrue
TH1D * _histMXTrue
Definition: TSLToyGen.h:29
TSLToyGen::_histsParFit
TObjArray _histsParFit
Definition: TSLToyGen.h:38
TSLToyGen::doToyExperiments
Bool_t doToyExperiments(Int_t nbExperiments=1000)
Definition: TSLToyGen.cc:56
TSLToyGen::setprintPartIni
void setprintPartIni(Bool_t value)
Definition: TSLToyGen.h:47
TSLToyGen::_breco
TAbsFitParticle * _breco
Definition: TSLToyGen.h:79
TSLToyGen::_histsPull1
TObjArray _histsPull1
Definition: TSLToyGen.h:40
TSLToyGen::_X
TAbsFitParticle * _X
Definition: TSLToyGen.h:81
TSLToyGen::TSLToyGen
TSLToyGen(const TAbsFitParticle *bReco, const TAbsFitParticle *lepton, const TAbsFitParticle *X, const TAbsFitParticle *neutrino)
Definition: TSLToyGen.cc:12
TSLToyGen::_histsParSmear
TObjArray _histsParSmear
Definition: TSLToyGen.h:37
TSLToyGen::_histMXFit
TH1D * _histMXFit
Definition: TSLToyGen.h:31
TSLToyGen::~TSLToyGen
~TSLToyGen() override
Definition: TSLToyGen.cc:44
TSLToyGen::_histMBrecoTrue
TH1D * _histMBrecoTrue
Definition: TSLToyGen.h:26
TSLToyGen::fillM
void fillM()
Definition: TSLToyGen.cc:299
TSLToyGen::_lepton
TAbsFitParticle * _lepton
Definition: TSLToyGen.h:80
TSLToyGen::_printConsAfter
Bool_t _printConsAfter
Definition: TSLToyGen.h:88
TSLToyGen::_iniNeutrino
TAbsFitParticle * _iniNeutrino
Definition: TSLToyGen.h:78
TAbsFitParticle
Definition: TAbsFitParticle.h:9
TSLToyGen::_histMBrecoFit
TH1D * _histMBrecoFit
Definition: TSLToyGen.h:28
TSLToyGen::fillPar
void fillPar()
Definition: TSLToyGen.cc:284
TSLToyGen::_histChi2
TH1D * _histChi2
Definition: TSLToyGen.h:24
TSLToyGen::_histNIter
TH1D * _histNIter
Definition: TSLToyGen.h:22
TSLToyGen::_histMXSmear
TH1D * _histMXSmear
Definition: TSLToyGen.h:30
TSLToyGen::_withMPDGCons
Bool_t _withMPDGCons
Definition: TSLToyGen.h:91
TSLToyGen::setprintConsAfter
void setprintConsAfter(Bool_t value)
Definition: TSLToyGen.h:52
TSLToyGen::_histMBrecoSmear
TH1D * _histMBrecoSmear
Definition: TSLToyGen.h:27
TSLToyGen::_iniBreco
TAbsFitParticle * _iniBreco
Definition: TSLToyGen.h:75
value
Definition: value.py:1
TSLToyGen::_printConsIni
Bool_t _printConsIni
Definition: TSLToyGen.h:85
TSLToyGen::_unmeasParticles
std::vector< TAbsFitParticle * > _unmeasParticles
Definition: TSLToyGen.h:72
TKinFitter.h
TSLToyGen::_histPChi2
TH1D * _histPChi2
Definition: TSLToyGen.h:23
TSLToyGen::createHists
void createHists()
Definition: TSLToyGen.cc:324
TSLToyGen::_measParticles
std::vector< TAbsFitParticle * > _measParticles
Definition: TSLToyGen.h:71
TSLToyGen::_histMXlnuSmear
TH1D * _histMXlnuSmear
Definition: TSLToyGen.h:33
TSLToyGen::_histsError1
TObjArray _histsError1
Definition: TSLToyGen.h:41
TSLToyGen::_doCheckConstraintsTruth
Bool_t _doCheckConstraintsTruth
Definition: TSLToyGen.h:92
TSLToyGen::setprintSmearedPartBefore
void setprintSmearedPartBefore(Bool_t value)
Definition: TSLToyGen.h:49
TSLToyGen::_printPartAfter
Bool_t _printPartAfter
Definition: TSLToyGen.h:89
TSLToyGen::setMPDGCons
void setMPDGCons(Bool_t value)
Definition: TSLToyGen.h:55
TSLToyGen::setMassConstraint
void setMassConstraint(Bool_t value)
Definition: TSLToyGen.h:54
relativeConstraints.value
value
Definition: relativeConstraints.py:53
TSLToyGen::_histsDiff2
TObjArray _histsDiff2
Definition: TSLToyGen.h:45
TSLToyGen::_histStatus
TH1D * _histStatus
Definition: TSLToyGen.h:21
TSLToyGen::_histsParTrue
TObjArray _histsParTrue
Definition: TSLToyGen.h:36
TSLToyGen::_neutrino
TAbsFitParticle * _neutrino
Definition: TSLToyGen.h:82
TSLToyGen
Definition: TSLToyGen.h:12
TSLToyGen::setprintConsIni
void setprintConsIni(Bool_t value)
Definition: TSLToyGen.h:48
TSLToyGen::_Y4S
TVector3 _Y4S
Definition: TSLToyGen.h:73
TSLToyGen::setprintConsBefore
void setprintConsBefore(Bool_t value)
Definition: TSLToyGen.h:51
TSLToyGen::_printConsBefore
Bool_t _printConsBefore
Definition: TSLToyGen.h:87
TSLToyGen::_iniunmeasParticles
std::vector< TAbsFitParticle * > _iniunmeasParticles
Definition: TSLToyGen.h:70
TSLToyGen::_histMXlnuFit
TH1D * _histMXlnuFit
Definition: TSLToyGen.h:34
TSLToyGen::_histsError2
TObjArray _histsError2
Definition: TSLToyGen.h:44
TSLToyGen::_histsDiff1
TObjArray _histsDiff1
Definition: TSLToyGen.h:42
TSLToyGen::_iniLepton
TAbsFitParticle * _iniLepton
Definition: TSLToyGen.h:76