Go to the documentation of this file.
18 : tfDnnLabel_(
cfg.getParameter<
std::
string>(
"tfDnnLabel")),
23 static const char*
name() {
return "TrackTfClassifier"; }
32 if (session_ ==
nullptr) {
44 tensorflow::Tensor
input1(tensorflow::DT_FLOAT, {1, 29});
45 tensorflow::Tensor
input2(tensorflow::DT_FLOAT, {1, 1});
47 input1.matrix<
float>()(0, 0) = trk.
pt();
57 input1.matrix<
float>()(0, 10) = trk.
dxy(bestVertex);
58 input1.matrix<
float>()(0, 11) = trk.
dz(bestVertex);
64 input1.matrix<
float>()(0, 17) = trk.
eta();
65 input1.matrix<
float>()(0, 18) = trk.
phi();
73 input1.matrix<
float>()(0, 26) =
75 input1.matrix<
float>()(0, 27) =
89 std::vector<tensorflow::Tensor>
outputs;
99 const tensorflow::Session* session_;
const math::XYZVector & outerMomentum() const
momentum vector at the outermost hit position
T const * product() const
const tensorflow::Session * getSession() const
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
int trackerLayersWithoutMeasurement(HitCategory category) const
double etaError() const
error on eta
std::pair< std::string, Tensor > NamedTensor
std::vector< Vertex > VertexCollection
collection of Vertex objects
TrackAlgorithm originalAlgo() const
double ndof() const
number of degrees of freedom of the fit
int trackerLayersTotallyOffOrBad(HitCategory category=TRACK_HITS) const
double dxyError() const
error on dxy
double pt() const
track transverse momentum
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
double phi() const
azimuthal angle of momentum vector
double eta() const
pseudorapidity of momentum vector
std::vector< NamedTensor > NamedTensorList
double dzError() const
error on dz
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
int numberOfValidStripHits() const
void run(Session *session, const NamedTensorList &inputs, const std::vector< std::string > &outputNames, std::vector< Tensor > *outputs, const thread::ThreadPoolOptions &threadPoolOptions)
int numberOfLostTrackerHits(HitCategory category) const
int numberOfValidPixelHits() const
double phiError() const
error on phi
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Point getBestVertex(reco::Track const &trk, reco::VertexCollection const &vertices, const size_t minNtracks=2)