Belle II Software development
|
This class implement some methods useful for the application of cuts evaluated in NoKickCutsEval module. More...
#include <NoKickRTSel.h>
Public Member Functions | |
NoKickRTSel (const std::string &fileName, bool outputHisto) | |
Constructor with input file for use specific cuts file and allows validation. | |
NoKickRTSel () | |
Empty Constructor that uses the defaults cuts file. | |
void | initNoKickRTSel () |
Initialize the class cleaning the member vectors. | |
void | hitXPBuilder (const RecoTrack &track) |
this method build a vector of hitXP from a track. | |
void | hit8TrackBuilder (const RecoTrack &track) |
this method build a vector of hitXP from a track selecting the first hit on each layer of VXD (8 hit for SVD only, counting overlaps). | |
bool | trackSelector (const RecoTrack &track) |
This method return true if every segment (see segmentSelector) of the input track respects the cuts constraints. | |
bool | segmentSelector (hitXP hit1, hitXP hit2, std::vector< double > selCut, NoKickCuts::EParameters par, bool is0=false) |
This method return true if a couple of hits resects the cuts constraints. | |
bool | globalCut (const std::vector< hitXP > &track8) |
This method make some global cuts on the tracks (layer 3 and 6 required, d0 and z0 inside beam pipe). | |
void | initHistoNoKick (bool outHisto) |
This method initialize some validation histograms of the Training Sample Selection. | |
void | produceHistoNoKick () |
This method produce the validation histograms (to be used the endrun combined with the filling in trackSelector method) | |
ClassDef (NoKickRTSel, 1) | |
Making this class a ROOT class. | |
Public Attributes | |
std::vector< hitXP > | m_hitXP |
vector of hit, to convert the track | |
std::set< hitXP, hitXP::timeCompare > | m_setHitXP |
set of hit to order the hit in time | |
std::vector< hitXP > | m_8hitTrack |
vector of selected hit | |
NoKickCuts | m_trackCuts |
auxiliary member to apply the cuts | |
double | m_pmax = 10. |
range analyzed with cuts | |
int | m_numberOfCuts |
number of catastrophic interaction for each track | |
bool | m_outputFlag |
true=produce validation output | |
TFile * | m_noKickOutputTFile |
validation output TFile | |
TH1F * | m_momSel |
histogram of selected tracks | |
TH1F * | m_momCut |
histogram of cut tracks | |
TH1F * | m_momEff |
histogram for efficiency | |
TH1F * | m_PDGIDCut |
histogram for PDGID of cut track | |
TH1F * | m_PDGIDSel |
histogram for PDGID of selected track | |
TH1F * | m_PDGIDEff |
histogram for efficiency for each PDGID | |
TH1F * | m_nCutHit |
histogram for number of cut hist per track | |
bool | m_isCutted |
Indicator if cut is applied. | |
double | m_pMag |
momentum magnitut | |
double | m_pt |
transverse momentum | |
double | m_pdgID |
pdg Code | |
int | m_Ncuts |
number of times the cut is applied on a particle | |
TTree * | m_noKickTree |
TTree to which the information is written. | |
This class implement some methods useful for the application of cuts evaluated in NoKickCutsEval module.
Use and auxiliary class (NoKickCuts) that contains the cuts used in selection.
Definition at line 33 of file NoKickRTSel.h.
|
inline |
Constructor with input file for use specific cuts file and allows validation.
Definition at line 60 of file NoKickRTSel.h.
|
inline |
Empty Constructor that uses the defaults cuts file.
Definition at line 69 of file NoKickRTSel.h.
bool globalCut | ( | const std::vector< hitXP > & | track8 | ) |
This method make some global cuts on the tracks (layer 3 and 6 required, d0 and z0 inside beam pipe).
Return false if this filter fails. input (the selected hit of the track)
Definition at line 111 of file NoKickRTSel.cc.
void hit8TrackBuilder | ( | const RecoTrack & | track | ) |
this method build a vector of hitXP from a track selecting the first hit on each layer of VXD (8 hit for SVD only, counting overlaps).
The output is the member of the class. input (one reconstructed track)
Definition at line 96 of file NoKickRTSel.cc.
void hitXPBuilder | ( | const RecoTrack & | track | ) |
this method build a vector of hitXP from a track.
The output is the member of the class. input (one reconstructed track)
Definition at line 21 of file NoKickRTSel.cc.
|
inline |
This method initialize some validation histograms of the Training Sample Selection.
The input boolean allows the initialization, otherwise the method is empty (no validation)
Definition at line 118 of file NoKickRTSel.h.
|
inline |
Initialize the class cleaning the member vectors.
Definition at line 76 of file NoKickRTSel.h.
void produceHistoNoKick | ( | ) |
This method produce the validation histograms (to be used the endrun combined with the filling in trackSelector method)
Definition at line 277 of file NoKickRTSel.cc.
bool segmentSelector | ( | hitXP | hit1, |
hitXP | hit2, | ||
std::vector< double > | selCut, | ||
NoKickCuts::EParameters | par, | ||
bool | is0 = false |
||
) |
This method return true if a couple of hits resects the cuts constraints.
input (first hit, second hit, selected cut to apply, track parameter, it is first hit the IP?)
Definition at line 135 of file NoKickRTSel.cc.
bool trackSelector | ( | const RecoTrack & | track | ) |
This method return true if every segment (see segmentSelector) of the input track respects the cuts constraints.
input (one reconstructed track)
Definition at line 194 of file NoKickRTSel.cc.
std::vector<hitXP> m_8hitTrack |
vector of selected hit
Definition at line 38 of file NoKickRTSel.h.
std::vector<hitXP> m_hitXP |
vector of hit, to convert the track
Definition at line 36 of file NoKickRTSel.h.
bool m_isCutted |
Indicator if cut is applied.
Definition at line 52 of file NoKickRTSel.h.
TH1F* m_momCut |
histogram of cut tracks
Definition at line 46 of file NoKickRTSel.h.
TH1F* m_momEff |
histogram for efficiency
Definition at line 47 of file NoKickRTSel.h.
TH1F* m_momSel |
histogram of selected tracks
Definition at line 45 of file NoKickRTSel.h.
TH1F* m_nCutHit |
histogram for number of cut hist per track
Definition at line 51 of file NoKickRTSel.h.
int m_Ncuts |
number of times the cut is applied on a particle
Definition at line 56 of file NoKickRTSel.h.
TFile* m_noKickOutputTFile |
validation output TFile
Definition at line 44 of file NoKickRTSel.h.
TTree* m_noKickTree |
TTree to which the information is written.
Definition at line 57 of file NoKickRTSel.h.
int m_numberOfCuts |
number of catastrophic interaction for each track
Definition at line 41 of file NoKickRTSel.h.
bool m_outputFlag |
true=produce validation output
Definition at line 42 of file NoKickRTSel.h.
double m_pdgID |
pdg Code
Definition at line 55 of file NoKickRTSel.h.
TH1F* m_PDGIDCut |
histogram for PDGID of cut track
Definition at line 48 of file NoKickRTSel.h.
TH1F* m_PDGIDEff |
histogram for efficiency for each PDGID
Definition at line 50 of file NoKickRTSel.h.
TH1F* m_PDGIDSel |
histogram for PDGID of selected track
Definition at line 49 of file NoKickRTSel.h.
double m_pMag |
momentum magnitut
Definition at line 53 of file NoKickRTSel.h.
double m_pmax = 10. |
range analyzed with cuts
Definition at line 40 of file NoKickRTSel.h.
double m_pt |
transverse momentum
Definition at line 54 of file NoKickRTSel.h.
std::set<hitXP, hitXP::timeCompare> m_setHitXP |
set of hit to order the hit in time
Definition at line 37 of file NoKickRTSel.h.
NoKickCuts m_trackCuts |
auxiliary member to apply the cuts
Definition at line 39 of file NoKickRTSel.h.