Belle II Software
release-08-01-10
|
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 () |
Inizialize the class cleaning the member vectors. | |
void | hitXPBuilder (const RecoTrack &track) |
this method build a vector of hitXP from a track. More... | |
void | hit8TrackBuilder (const RecoTrack &track) |
this metod build a vector of hitXP from a track selecting the first hit on each layer of VXD (8 hit for SVD only, counting overlaps). More... | |
bool | trackSelector (const RecoTrack &track) |
This method return true if every segment (see segmentSelector) of the input track respects the cuts contraints. More... | |
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. More... | |
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). More... | |
void | initHistoNoKick (bool outHisto) |
This metod initialize some validation histograms of the Training Sample Selection. More... | |
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 |
validartion output TFile | |
TH1F * | m_momSel |
histogram of selected tracks | |
TH1F * | m_momCut |
histrogram of cutted tracks | |
TH1F * | m_momEff |
histogram for efficiency | |
TH1F * | m_PDGIDCut |
histogram for PDGID of cutted 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 cutted 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 cointains the cuts used in selection.
Definition at line 33 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 metod 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 ouput 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 ouput is the member of the class. input (one reconstructed track)
Definition at line 21 of file NoKickRTSel.cc.
|
inline |
This metod 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.
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 contraints.
input (one reconstructed track)
Definition at line 194 of file NoKickRTSel.cc.