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