10#include <tracking/dataobjects/RecoTrack.h>
11#include <tracking/dataobjects/hitXP.h>
13#include <tracking/trackFindingVXD/sectorMapTools/NoKickCuts.h>
115 bool globalCut(
const std::vector<hitXP>& track8);
124 m_momSel =
new TH1F(
"m_momSel",
"m_momSel", 100, 0, 4);
125 m_momCut =
new TH1F(
"m_momCut",
"m_momCut", 100, 0, 4);
126 m_momEff =
new TH1F(
"m_momEff",
"m_momEff", 100, 0, 4);
128 m_PDGIDSel =
new TH1F(
"m_PDGIDSel",
"m_PDGIDSel", 6000, -3000, 3000);
129 m_PDGIDCut =
new TH1F(
"m_PDGIDCut",
"m_PDGIDCut", 6000, -3000, 3000);
130 m_PDGIDEff =
new TH1F(
"m_PDGIDEff",
"m_PDGIDEff", 6000, -3000, 3000);
132 m_nCutHit =
new TH1F(
"m_nCutHit",
"m_nCutHit", 30, 0, 30);
This class is an auxiliary class that implement methods to access to a single cut,...
EParameters
enum for parameters name
TFile * m_noKickOutputTFile
validation output TFile
int m_numberOfCuts
number of catastrophic interaction for each track
NoKickCuts m_trackCuts
auxiliary member to apply the cuts
double m_pmax
range analyzed with cuts
std::vector< hitXP > m_8hitTrack
vector of selected hit
NoKickRTSel(const std::string &fileName, bool outputHisto)
Constructor with input file for use specific cuts file and allows validation.
int m_Ncuts
number of times the cut is applied on a particle
void initHistoNoKick(bool outHisto)
This method initialize some validation histograms of the Training Sample Selection.
TH1F * m_momEff
histogram for efficiency
void hitXPBuilder(const RecoTrack &track)
this method build a vector of hitXP from a track.
bool segmentSelector(const hitXP &hit1, const hitXP &hit2, const std::vector< double > &selCut, NoKickCuts::EParameters par, bool is0=false)
This method return true if a couple of hits resects the cuts constraints.
TTree * m_noKickTree
TTree to which the information is written.
void initNoKickRTSel()
Initialize the class cleaning the member vectors.
TH1F * m_PDGIDCut
histogram for PDGID of cut track
TH1F * m_PDGIDSel
histogram for PDGID of selected track
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).
NoKickRTSel()
Empty Constructor that uses the defaults cuts file.
double m_pMag
momentum magnitut
TH1F * m_PDGIDEff
histogram for efficiency for each PDGID
TH1F * m_momCut
histogram of cut tracks
std::set< hitXP, hitXP::timeCompare > m_setHitXP
set of hit to order the hit in time
bool trackSelector(const RecoTrack &track)
This method return true if every segment (see segmentSelector) of the input track respects the cuts c...
void produceHistoNoKick()
This method produce the validation histograms (to be used the endrun combined with the filling in tra...
bool m_isCutted
Indicator if cut is applied.
bool m_outputFlag
true=produce validation output
TH1F * m_nCutHit
histogram for number of cut hist per track
ClassDef(NoKickRTSel, 2)
Making this class a ROOT class.
std::vector< hitXP > m_hitXP
vector of hit, to convert the track
TH1F * m_momSel
histogram of selected tracks
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 ...
double m_pt
transverse momentum
This is the Reconstruction Event-Data Model Track.
This class collects some information of a TrueHit, using SVDCLuster and MCParticle information too.
Abstract base class for different kinds of events.