LDMX Software
tracking::reco::SeedFinderProcessor Class Reference

Public Member Functions

 SeedFinderProcessor (const std::string &name, framework::Process &process)
 Constructor.
 
virtual ~SeedFinderProcessor ()=default
 Destructor.
 
void onProcessStart () override
 Callback for the EventProcessor to take any necessary action when the processing of events starts, such as creating histograms.
 
void onProcessEnd () override
 Callback for the EventProcessor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities.
 
void configure (framework::config::Parameters &parameters) override
 Configure the processor using the given user specified parameters.
 
void produce (framework::Event &event) override
 Run the processor and create a collection of results which indicate if a charge particle can be found by the recoil tracker.
 
bool groupStrips (const std::vector< ldmx::Measurement > &measurements, const std::vector< int > strategy)
 
void findSeedsFromMap (std::vector< ldmx::Track > &seeds, const ldmx::Measurements &pmeas, const ldmx::Measurements &fit_constraints)
 
- Public Member Functions inherited from tracking::reco::TrackingGeometryUser
 TrackingGeometryUser (const std::string &name, framework::Process &p)
 
- Public Member Functions inherited from framework::Producer
 Producer (const std::string &name, Process &process)
 Class constructor.
 
virtual void process (Event &event) final
 Processing an event for a Producer is calling produce.
 
- Public Member Functions inherited from framework::EventProcessor
 DECLARE_FACTORY (EventProcessor, EventProcessor *, const std::string &, Process &)
 declare that we have a factory for this class
 
 EventProcessor (const std::string &name, Process &process)
 Class constructor.
 
virtual ~EventProcessor ()=default
 Class destructor.
 
virtual void beforeNewRun (ldmx::RunHeader &run_header)
 Callback for Producers to add parameters to the run header before conditions are initialized.
 
virtual void onNewRun (const ldmx::RunHeader &run_header)
 Callback for the EventProcessor to take any necessary action when the run being processed changes.
 
virtual void onFileOpen (EventFile &event_file)
 Callback for the EventProcessor to take any necessary action when a new event input ROOT file is opened.
 
virtual void onFileClose (EventFile &event_file)
 Callback for the EventProcessor to take any necessary action when a event input ROOT file is closed.
 
template<class T >
const T & getCondition (const std::string &condition_name)
 Access a conditions object for the current event.
 
TDirectory * getHistoDirectory ()
 Access/create a directory in the histogram file for this event processor to create histograms and analysis tuples.
 
void setStorageHint (framework::StorageControl::Hint hint)
 Mark the current event as having the given storage control hint from this module_.
 
void setStorageHint (framework::StorageControl::Hint hint, const std::string &purposeString)
 Mark the current event as having the given storage control hint from this module and the given purpose string.
 
int getLogFrequency () const
 Get the current logging frequency from the process.
 
int getRunNumber () const
 Get the run number from the process.
 
std::string getName () const
 Get the processor name.
 
void createHistograms (const std::vector< framework::config::Parameters > &histos)
 Internal function which is used to create histograms passed from the python configuration @parma histos vector of Parameters that configure histograms to create.
 

Private Member Functions

ldmx::Track seedTracker (const ldmx::Measurements &vmeas, double xOrigin, const Acts::Vector3 &perigee_location, const ldmx::Measurement *constraint)
 Fit the strips plus an optional target constraint (nullptr = none)
 
void lineParabolaToHelix (const Acts::Vector< 5 > parameters, Acts::Vector< 5 > &helix_parameters, Acts::Vector3 ref)
 

Private Attributes

Acts::Vector3 b_field_
 
std::shared_ptr< tracking::sim::SeedToTrackParamMaker > seed_to_track_maker_
 
double processing_time_ {0.}
 
long nevents_ {0}
 
unsigned int ntracks_ {0}
 
std::vector< double > inflate_factors_ {1., 1., 1., 1., 1.}
 
std::string out_seed_collection_ {"SeedTracks"}
 The name of the output collection of seeds to be stored.
 
std::string input_hits_collection_ {"TaggerSimHits"}
 The name of the input hits collection to use in finding seeds..
 
std::string tagger_trks_collection_ {"TaggerTracks"}
 The name of the tagger Tracks (only for Recoil Seeding)
 
std::string input_pass_name_ {""}
 
std::string sim_particles_coll_name_
 
std::string sim_particles_passname_
 
std::string tagger_trks_event_collection_passname_
 
std::string sim_particles_event_passname_
 
std::vector< double > perigee_location_ {-700., 0., 0}
 Location of the perigee for the helix track parameters.
 
double pmin_ {0.05}
 Minimum cut on the momentum of the seeds.
 
double pmax_ {8}
 Maximum cut on the momentum of the seeds.
 
double d0max_ {20.}
 Max d0 allowed for the seeds.
 
double d0min_ {20.}
 Min d0 allowed for the seeds.
 
double z0max_ {60.}
 Max z0 allowed for the seeds.
 
double piover2_ {1.5708}
 
double phicut_ {0.1}
 PhiRange.
 
double thetacut_ {0.2}
 ThetaRange.
 
double loc0cut_ {0.1}
 loc0 / loc1 cuts
 
double loc1cut_ {0.3}
 
std::vector< std::string > strategies_ {}
 List of stragies for seed finding.
 
std::vector< std::vector< int > > strategy_layers_ {}
 Layer lists parsed from strategies_, one per strategy.
 
bool use_target_constraint_ {false}
 Put tagger track positions at the target into the seed fit.
 
bool use_beamspot_constraint_ {false}
 Put the beam spot into the seed fit when no tagger track exists.
 
std::vector< double > beamspot_sigma_ {5.77, 23.1}
 Beam spot sigma at the target in local (u, v) [mm].
 
std::shared_ptr< Acts::Surface > target_surface_
 Target surface the constraints live on.
 
bool warned_ambiguous_tagger_ {false}
 Warn only once about several tagger track collections.
 
double bfield_ {1.5}
 
std::vector< float > xhit_
 
std::vector< float > yhit_
 
std::vector< float > zhit_
 
std::vector< float > b0_
 
std::vector< float > b1_
 
std::vector< float > b2_
 
std::vector< float > b3_
 
std::vector< float > b4_
 
long ndoubles_ {0}
 
long nmissing_ {0}
 
long nfailpmin_ {0}
 
long nfailpmax_ {0}
 
long nfaild0min_ {0}
 
long nfaild0max_ {0}
 
long nfailz0max_ {0}
 
long nfailphi_ {0}
 
long nfailtheta_ {0}
 
std::map< int, std::vector< const ldmx::Measurement * > > groups_map_
 
std::shared_ptr< tracking::sim::TruthMatchingTool > truth_matching_tool_
 
double u_error_
 u error
 
double v_error_
 v error
 

Additional Inherited Members

- Protected Member Functions inherited from tracking::reco::TrackingGeometryUser
const Acts::GeometryContext & geometryContext ()
 
const Acts::MagneticFieldContext & magneticFieldContext ()
 
const Acts::CalibrationContext & calibrationContext ()
 
const geo::TrackersTrackingGeometry & geometry ()
 
void loadBField (const std::string &path, const BFieldDistortion &distortion={})
 Load the interpolated B-field map from path and cache it.
 
void loadBField (const BFieldDistortion &distortion={})
 Load B-field from the path recorded in the detector GDML.
 
std::shared_ptr< Acts::MagneticFieldProvider > bField () const
 Return the loaded B-field provider.
 
- Protected Member Functions inherited from framework::EventProcessor
void abortEvent ()
 Abort the event immediately.
 
- Static Protected Member Functions inherited from tracking::reco::TrackingGeometryUser
static BFieldDistortion bFieldDistortion (const framework::config::Parameters &parameters)
 Build a BFieldDistortion from processor configuration.
 
- Protected Attributes inherited from framework::EventProcessor
HistogramPool histograms_
 helper object for making and filling histograms
 
NtupleManager & ntuple_ {NtupleManager::getInstance()}
 Manager for any ntuples.
 
logging::logger the_log_
 The logger for this EventProcessor.
 

Detailed Description

Definition at line 27 of file SeedFinderProcessor.h.

Constructor & Destructor Documentation

◆ SeedFinderProcessor()

tracking::reco::SeedFinderProcessor::SeedFinderProcessor ( const std::string & name,
framework::Process & process )

Constructor.

Parameters
nameThe name of the instance of this object.
processThe process running this producer.

Definition at line 25 of file SeedFinderProcessor.cxx.

27 : TrackingGeometryUser(name, process) {
28 // TODO REMOVE FROM DEFAULT
29 /*
30 output_file_ = new TFile("seeder.root", "RECREATE");
31 output_tree_ = new TTree("seeder", "seeder");
32
33 output_tree_->Branch("nevents", &nevents_);
34 output_tree_->Branch("xhit", &xhit_);
35 output_tree_->Branch("yhit", &yhit_);
36 output_tree_->Branch("zhit", &zhit_);
37
38 output_tree_->Branch("b0", &b0_);
39 output_tree_->Branch("b1", &b1_);
40 output_tree_->Branch("b2", &b2_);
41 output_tree_->Branch("b3", &b3_);
42 output_tree_->Branch("b4", &b4_);
43 */
44}
virtual void process(Event &event) final
Processing an event for a Producer is calling produce.

Member Function Documentation

◆ configure()

void tracking::reco::SeedFinderProcessor::configure ( framework::config::Parameters & parameters)
overridevirtual

Configure the processor using the given user specified parameters.

Parameters
parametersSet of parameters used to configure this processor.

Reimplemented from framework::EventProcessor.

Definition at line 51 of file SeedFinderProcessor.cxx.

51 {
52 // Output seed name
53 out_seed_collection_ = parameters.get<std::string>("out_seed_collection",
54 getName() + "SeedTracks");
55
56 // Input strip hits
58 parameters.get<std::string>("input_hits_collection", "TaggerSimHits");
59
60 // Tagger tracks - only for Recoil Seed finding
62 parameters.get<std::string>("tagger_trks_collection", "TaggerTracks");
63
65 parameters.get<std::vector<double>>("perigee_location", {-700, 0., 0.});
66 pmin_ = parameters.get<double>("pmin", 0.05 * Acts::UnitConstants::GeV);
67 pmax_ = parameters.get<double>("pmax", 8 * Acts::UnitConstants::GeV);
68 d0max_ = parameters.get<double>("d0max", -15. * Acts::UnitConstants::mm);
69 d0min_ = parameters.get<double>("d0min", -45. * Acts::UnitConstants::mm);
70 z0max_ = parameters.get<double>("z0max", 60. * Acts::UnitConstants::mm);
71 phicut_ = parameters.get<double>("phicut", 0.1);
72 thetacut_ = parameters.get<double>("thetacut", 0.2);
73 loc0cut_ = parameters.get<double>("loc0cut", 0.1);
74 loc1cut_ = parameters.get<double>("loc1cut", 0.3);
76 parameters.get<std::vector<std::string>>("strategies", {"0,1,2,3,4"});
77 use_target_constraint_ = parameters.get<bool>("use_target_constraint", false);
79 parameters.get<bool>("use_beamspot_constraint", false);
81 parameters.get<std::vector<double>>("beamspot_sigma", {5.77, 23.1});
82
84 EXCEPTION_RAISE("BadConf",
85 "use_target_constraint needs a tagger_trks_collection");
86 }
87
88 // 5 fit parameters: one equation per strip, two per target constraint
89 const size_t min_layers =
91
92 // parse each "l0,l1,..." string into a layer list
93 strategy_layers_.clear();
94 for (const auto& strategy : strategies_) {
95 std::vector<int> layers;
96 std::stringstream ss(strategy);
97 std::string token;
98 while (std::getline(ss, token, ',')) {
99 if (!token.empty()) layers.push_back(std::stoi(token));
100 }
101 std::set<int> distinct(layers.begin(), layers.end());
102 if (distinct.size() < min_layers) {
103 EXCEPTION_RAISE("BadConf",
104 "Seeding strategy '" + strategy + "' has fewer than " +
105 std::to_string(min_layers) + " distinct layers");
106 }
107 strategy_layers_.push_back(layers);
108 }
109 inflate_factors_ = parameters.get<std::vector<double>>(
110 "inflate_factors", {10., 10., 10., 10., 10., 10.});
111 bfield_ = parameters.get<double>("bfield", 1.5);
112 input_pass_name_ = parameters.get<std::string>("input_pass_name");
113 sim_particles_coll_name_ =
114 parameters.get<std::string>("sim_particles_coll_name");
115 sim_particles_passname_ =
116 parameters.get<std::string>("sim_particles_passname");
117 tagger_trks_event_collection_passname_ =
118 parameters.get<std::string>("tagger_trks_event_collection_passname");
119 sim_particles_event_passname_ =
120 parameters.get<std::string>("sim_particles_event_passname");
121 u_error_ = parameters.get<double>("u_error");
122 v_error_ = parameters.get<double>("v_error");
123}
std::string getName() const
Get the processor name.
const T & get(const std::string &name) const
Retrieve the parameter of the given name.
Definition Parameters.h:75
std::vector< std::vector< int > > strategy_layers_
Layer lists parsed from strategies_, one per strategy.
bool use_beamspot_constraint_
Put the beam spot into the seed fit when no tagger track exists.
std::string out_seed_collection_
The name of the output collection of seeds to be stored.
double pmax_
Maximum cut on the momentum of the seeds.
std::vector< std::string > strategies_
List of stragies for seed finding.
bool use_target_constraint_
Put tagger track positions at the target into the seed fit.
std::string input_hits_collection_
The name of the input hits collection to use in finding seeds..
std::vector< double > beamspot_sigma_
Beam spot sigma at the target in local (u, v) [mm].
double pmin_
Minimum cut on the momentum of the seeds.
std::string tagger_trks_collection_
The name of the tagger Tracks (only for Recoil Seeding)
std::vector< double > perigee_location_
Location of the perigee for the helix track parameters.
double d0max_
Max d0 allowed for the seeds.
double d0min_
Min d0 allowed for the seeds.
double z0max_
Max z0 allowed for the seeds.

References beamspot_sigma_, d0max_, d0min_, framework::config::Parameters::get(), framework::EventProcessor::getName(), input_hits_collection_, loc0cut_, out_seed_collection_, perigee_location_, phicut_, pmax_, pmin_, strategies_, strategy_layers_, tagger_trks_collection_, thetacut_, u_error_, use_beamspot_constraint_, use_target_constraint_, v_error_, and z0max_.

◆ findSeedsFromMap()

void tracking::reco::SeedFinderProcessor::findSeedsFromMap ( std::vector< ldmx::Track > & seeds,
const ldmx::Measurements & pmeas,
const ldmx::Measurements & fit_constraints )

Definition at line 522 of file SeedFinderProcessor.cxx.

524 {
525 std::map<int, std::vector<const ldmx::Measurement*>>::iterator groups_iter =
526 groups_map_.begin();
527 // Vector of iterators, one per grouped layer
528 const int k = groups_map_.size();
529 if (k < 1) return;
530 std::vector<std::vector<const ldmx::Measurement*>::iterator> it;
531 it.resize(k);
532
533 unsigned int ikey = 0;
534 for (auto& key : groups_map_) {
535 it[ikey] = key.second.begin();
536 ikey++;
537 }
538
539 // K vectors in an array v[0],v[1].... v[K-1]
540
541 // Loop over all combinations
542 while (it[0] != groups_iter->second.end()) {
543 // process the pointed-to elements
544
545 /*
546 for (int j=0; j<K; j++) {
547 const ldmx::Measurement* meas = (*(it[j]));
548 std::cout<<meas->getGlobalPosition()[0]<<","
549 <<meas->getGlobalPosition()[1]<<","
550 <<meas->getGlobalPosition()[2]<<","<<std::endl;
551 }
552 */
553
554 std::vector<ldmx::Measurement> meas_for_seeds;
555 meas_for_seeds.reserve(k);
556
557 ldmx_log(debug) << " Grouping ";
558
559 for (int j = 0; j < k; j++) {
560 const ldmx::Measurement* meas = (*(it[j]));
561 meas_for_seeds.push_back(*meas);
562 }
563
564 std::sort(meas_for_seeds.begin(), meas_for_seeds.end(),
565 [](const ldmx::Measurement& m1, const ldmx::Measurement& m2) {
566 return m1.getGlobalPosition()[0] < m2.getGlobalPosition()[0];
567 });
568
569 if (meas_for_seeds.size() < k) {
570 nmissing_++;
571 return;
572 }
573
574 ldmx_log(debug) << "making seedTrack";
575
576 Acts::Vector3 perigee{perigee_location_[0], perigee_location_[1],
578
579 // one seed per constraint; nullptr is the unconstrained fit
580 std::vector<const ldmx::Measurement*> constraints;
581 for (const auto& c : fit_constraints) constraints.push_back(&c);
582 if (constraints.empty()) constraints.push_back(nullptr);
583
584 for (const auto* constraint : constraints) {
585 // 5 parameters need 5 equations: one per strip, two per constraint
586 if (meas_for_seeds.size() + (constraint ? 2 : 0) < 5) {
587 nmissing_++;
588 continue;
589 }
590
591 ldmx::Track seed_track = seedTracker(
592 meas_for_seeds, meas_for_seeds.at(k / 2).getGlobalPosition()[0],
593 perigee, constraint);
594
595 bool fail = false;
596
597 // Remove failed fits
598 if (1. / abs(seed_track.getQoP()) < pmin_) {
599 nfailpmin_++;
600 fail = true;
601 } else if (1. / abs(seed_track.getQoP()) > pmax_) {
602 nfailpmax_++;
603 fail = true;
604 }
605
606 // Remove large part of fake tracks and duplicates with the following cuts
607 // for various compatibility checks.
608
609 else if (abs(seed_track.getZ0()) > z0max_) {
610 nfailz0max_++;
611 fail = true;
612 } else if (seed_track.getD0() < d0min_) {
613 nfaild0min_++;
614 fail = true;
615 } else if (seed_track.getD0() > d0max_) {
616 nfaild0max_++;
617 fail = true;
618 } else if (abs(seed_track.getPhi()) > phicut_) {
619 fail = true;
620 nfailphi_++;
621 } else if (abs(seed_track.getTheta() - piover2_) > thetacut_) {
622 fail = true;
623 nfailtheta_++;
624 }
625
626 // If I didn't use the target pseudo measurements in the track finding
627 // I can use them for compatibility with the tagger track
628
629 // the tagger seeder has no tagger_trks_collection, so pmeas is empty
630 if (pmeas.size() > 0) {
631 // I can have multiple target pseudo measurements
632 // A seed is rejected if it is found incompatible with all the target
633 // extrapolations
634
635 // This is set but unused, eventually we will use tagger track position
636 // at target to inform recoil tracking bool tgt_compatible = false;
637 for (auto tgt_pseudomeas : pmeas) {
638 // The d0/z0 are in a frame with the same orientation of the target
639 // surface
640 double delta_loc0 =
641 seed_track.getD0() - tgt_pseudomeas.getLocalPosition()[0];
642 double delta_loc1 =
643 seed_track.getZ0() - tgt_pseudomeas.getLocalPosition()[1];
644
645 if (abs(delta_loc0) < loc0cut_ && abs(delta_loc1) < loc1cut_) {
646 // found at least 1 compatible target location
647 // tgt_compatible = true;
648 break;
649 }
650 }
651 } // pmeas > 0
652
653 if (!fail) {
654 if (truth_matching_tool_->configured()) {
655 auto truth_info = truth_matching_tool_->truthMatch(meas_for_seeds);
656 seed_track.setTrackID(truth_info.track_id_);
657 seed_track.setPdgID(truth_info.pdg_id_);
658 seed_track.setTruthProb(truth_info.truth_prob_);
659 }
660
661 seeds.push_back(seed_track);
662 }
663
664 else {
665 b0_.pop_back();
666 b1_.pop_back();
667 b2_.pop_back();
668 b3_.pop_back();
669 b4_.pop_back();
670 }
671 } // constraints
672
673 // Go to next combination
674 ldmx_log(debug) << "Go to the next combination";
675
676 ++it[k - 1];
677 for (int i = k - 1;
678 (i > 0) && (it[i] == (std::next(groups_iter, i))->second.end()); --i) {
679 it[i] = std::next(groups_iter, i)->second.begin();
680 ++it[i - 1];
681 }
682 }
683} // find seeds
Implementation of a track object.
Definition Track.h:54
ldmx::Track seedTracker(const ldmx::Measurements &vmeas, double xOrigin, const Acts::Vector3 &perigee_location, const ldmx::Measurement *constraint)
Fit the strips plus an optional target constraint (nullptr = none)

◆ groupStrips()

bool tracking::reco::SeedFinderProcessor::groupStrips ( const std::vector< ldmx::Measurement > & measurements,
const std::vector< int > strategy )

Definition at line 492 of file SeedFinderProcessor.cxx.

494 {
495 // std::cout<<"Using stratedy"<<std::endl;
496 // for (auto& e : strategy) {
497 // std::cout<<e<<" ";
498 //}
499 // std::cout<<std::endl;
500
501 for (auto& meas : measurements) {
502 ldmx_log(trace) << meas;
503
504 if (std::find(strategy.begin(), strategy.end(), meas.getLayer()) !=
505 strategy.end()) {
506 ldmx_log(debug) << "Adding measurement from layer_ = " << meas.getLayer();
507 groups_map_[meas.getLayer()].push_back(&meas);
508 }
509
510 } // loop meas
511
512 if (groups_map_.size() < strategy.size())
513 return false;
514 else
515 return true;
516}

◆ onProcessEnd()

void tracking::reco::SeedFinderProcessor::onProcessEnd ( )
overridevirtual

Callback for the EventProcessor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities.

Reimplemented from framework::EventProcessor.

Definition at line 469 of file SeedFinderProcessor.cxx.

469 {
470 // output_file_->cd();
471 // output_tree_->Write();
472 // output_file_->Close();
473 ldmx_log(info) << "AVG Time/Event: " << std::fixed << std::setprecision(1)
474 << processing_time_ / nevents_ << " ms";
475 ldmx_log(info) << "Total Seeds/Events: " << ntracks_ << "/" << nevents_;
476 ldmx_log(info) << "Seeds discarded due to multiple hits on layers "
477 << ndoubles_;
478 ldmx_log(info) << "not enough seed points " << nmissing_;
479 ldmx_log(info) << " nfailpmin=" << nfailpmin_;
480 ldmx_log(info) << " nfailpmax=" << nfailpmax_;
481 ldmx_log(info) << " nfaild0max=" << nfaild0max_;
482 ldmx_log(info) << " nfaild0min=" << nfaild0min_;
483 ldmx_log(info) << " nfailphicut=" << nfailphi_;
484 ldmx_log(info) << " nfailthetacut=" << nfailtheta_;
485 ldmx_log(info) << " nfailz0max=" << nfailz0max_;
486}

◆ onProcessStart()

void tracking::reco::SeedFinderProcessor::onProcessStart ( )
overridevirtual

Callback for the EventProcessor to take any necessary action when the processing of events starts, such as creating histograms.

Reimplemented from framework::EventProcessor.

Definition at line 46 of file SeedFinderProcessor.cxx.

46 {
47 truth_matching_tool_ = std::make_shared<tracking::sim::TruthMatchingTool>();
48 target_surface_ = tracking::sim::utils::unboundSurface(0.);
49}
std::shared_ptr< Acts::Surface > target_surface_
Target surface the constraints live on.

References target_surface_.

◆ produce()

void tracking::reco::SeedFinderProcessor::produce ( framework::Event & event)
overridevirtual

Run the processor and create a collection of results which indicate if a charge particle can be found by the recoil tracker.

Parameters
eventThe event to process.

Implements framework::Producer.

Definition at line 125 of file SeedFinderProcessor.cxx.

125 {
126 // tg is unused, should it be? FIXME
127 // const auto& tg{geometry()};
128 auto start = std::chrono::high_resolution_clock::now();
129 std::vector<ldmx::Track> seed_tracks;
130
131 nevents_++;
132
133 // check if SimParticleMap is available for truth matching
134 std::map<int, ldmx::SimParticle> particle_map;
135
136 const auto& measurements = event.getCollection<ldmx::Measurement>(
137 input_hits_collection_, input_pass_name_);
138
139 // tagger tracks give the target position; an empty name disables it
140 std::vector<ldmx::Track> tagger_tracks;
141 if (!tagger_trks_collection_.empty()) {
142 // prefer this pass so a re-reco does not see two copies
143 std::string pass = tagger_trks_event_collection_passname_;
144 if (pass.empty() &&
146 pass = event.getPassName();
147 }
148 if (event.exists(tagger_trks_collection_, pass)) {
149 tagger_tracks =
150 event.getCollection<ldmx::Track>(tagger_trks_collection_, pass);
151 } else if (!warned_ambiguous_tagger_ &&
152 event.exists(tagger_trks_collection_, pass, false)) {
153 ldmx_log(warn) << "Several '" << tagger_trks_collection_
154 << "' collections found, set "
155 "tagger_trks_event_collection_passname to pick one";
157 }
158 }
159
160 const auto& tgt_surf = target_surface_;
161
162 // Create the pseudomeasurements at the target
163
164 ldmx::Measurements target_pseudo_meas;
165
166 for (auto tagtrk : tagger_tracks) {
167 // For Track, the perigee parameters are stored at the target surface.
168 // Use d0/z0 as local position and the perigee covariance for the
169 // pseudo measurement. Only create the pseudo measurement if cov is
170 // available.
171
172 // The covariance matrix passed to the pseudo measurement is considered as
173 // uncorrelated. This is an approx that considers that loc-u and loc-v from
174 // the track have small correlation.
175
176 const auto& perigee_cov = tagtrk.getPerigeeCov();
177 if (!perigee_cov.empty()) {
178 Acts::BoundMatrix cov = tracking::sim::utils::unpackCov(perigee_cov);
179 double locu = tagtrk.getD0();
180 double locv = tagtrk.getZ0();
181 double covuu =
182 cov(Acts::BoundIndices::eBoundLoc0, Acts::BoundIndices::eBoundLoc0);
183 double covvv =
184 cov(Acts::BoundIndices::eBoundLoc1, Acts::BoundIndices::eBoundLoc1);
185
186 ldmx::Measurement pseudo_meas;
187 pseudo_meas.setLocalPosition(locu, locv);
188 Acts::Vector3 dummy{0., 0., 0.};
189 Acts::Vector2 local_pos{locu, locv};
190 Acts::Vector3 global_pos =
191 tgt_surf->localToGlobal(geometryContext(), local_pos, dummy);
192
193 pseudo_meas.setGlobalPosition(global_pos(0), global_pos(1),
194 global_pos(2));
195 pseudo_meas.setTime(0.);
196 pseudo_meas.setLocalCovariance(covuu, covvv);
197
198 target_pseudo_meas.push_back(pseudo_meas);
199 }
200 }
201
202 // Constraints that enter the fit: tagger tracks, else the beam spot
203 ldmx::Measurements fit_constraints;
204 if (use_target_constraint_) fit_constraints = target_pseudo_meas;
205 if (fit_constraints.empty() && use_beamspot_constraint_) {
206 ldmx::Measurement beamspot;
207 beamspot.setLocalPosition(0., 0.);
208 Acts::Vector3 global_pos = tgt_surf->localToGlobal(
209 geometryContext(), Acts::Vector2{0., 0.}, Acts::Vector3{0., 0., 0.});
210 beamspot.setGlobalPosition(global_pos(0), global_pos(1), global_pos(2));
211 beamspot.setTime(0.);
214 fit_constraints.push_back(beamspot);
215 }
216
217 if (event.exists(sim_particles_coll_name_, sim_particles_event_passname_)) {
218 particle_map = event.getMap<int, ldmx::SimParticle>(
219 sim_particles_coll_name_, sim_particles_passname_);
220 truth_matching_tool_->setup(particle_map, measurements);
221 }
222
223 ldmx_log(debug) << "Preparing the strategies";
224
225 // a strategy is a list of layers from which to make the seed
226 // layer_ numbering starts at 0
227 for (const auto& strategy : strategy_layers_) {
228 groups_map_.clear();
229 if (groupStrips(measurements, strategy))
230 findSeedsFromMap(seed_tracks, target_pseudo_meas, fit_constraints);
231 }
232
233 groups_map_.clear();
234 // output_tree_->Fill();
235 ntracks_ += seed_tracks.size();
236 event.add(out_seed_collection_, seed_tracks);
237
238 auto end = std::chrono::high_resolution_clock::now();
239
240 // long long microseconds =
241 // std::chrono::duration_cast<std::chrono::microseconds>(end-start).count();
242
243 auto diff = end - start;
244 processing_time_ += std::chrono::duration<double, std::milli>(diff).count();
245
246 // Seed finding using 2D Hits
247 // - The hits should keep track if they are already associated to a track or
248 // not. This can be used for subsequent passes of seed-finding
249
250 // This should go into a digitization producer, which takes care of producing
251 // measurements from:
252 // - raw hits in data
253 // - sim hits in MC
254 // Step 0: Get the sim hits and project them on the surfaces to mimic 2d
255 // hits Step 1: Smear the hits and associate an uncertainty to those
256 // measurements.
257
258 xhit_.clear();
259 yhit_.clear();
260 zhit_.clear();
261
262 b0_.clear();
263 b1_.clear();
264 b2_.clear();
265 b3_.clear();
266 b4_.clear();
267
268} // produce
bool exists(const std::string &name, const std::string &passName, bool unique=true) const
Check for the existence of an object or collection with the given name and pass name in the event.
Definition Event.cxx:107
std::string getPassName()
Get the current/default pass name.
Definition Event.h:492
void setLocalPosition(const float &meas_u, const float &meas_v)
Set the local position i.e.
Definition Measurement.h:61
void setGlobalPosition(const float &meas_x, const float &meas_y, const float &meas_z)
Set the global position i.e.
Definition Measurement.h:42
void setLocalCovariance(const float &cov_uu, const float &cov_vv)
Set cov(U,U) and cov(V, V).
Definition Measurement.h:77
void setTime(const float &meas_t)
Set the measurement time in ns.
Definition Measurement.h:93
Class representing a simulated particle.
Definition SimParticle.h:25
bool warned_ambiguous_tagger_
Warn only once about several tagger track collections.

References beamspot_sigma_, framework::Event::exists(), framework::Event::getPassName(), input_hits_collection_, out_seed_collection_, ldmx::Measurement::setGlobalPosition(), ldmx::Measurement::setLocalCovariance(), ldmx::Measurement::setLocalPosition(), ldmx::Measurement::setTime(), strategy_layers_, tagger_trks_collection_, target_surface_, use_beamspot_constraint_, use_target_constraint_, and warned_ambiguous_tagger_.

◆ seedTracker()

ldmx::Track tracking::reco::SeedFinderProcessor::seedTracker ( const ldmx::Measurements & vmeas,
double xOrigin,
const Acts::Vector3 & perigee_location,
const ldmx::Measurement * constraint )
private

Fit the strips plus an optional target constraint (nullptr = none)

Definition at line 279 of file SeedFinderProcessor.cxx.

282 {
283 // Fit a straight line in the non-bending plane and a parabola in the bending
284 // plane
285
286 // Each measurement is treated as a 3D point, where the v direction is in the
287 // center of the strip with sigma equal to the length of the strip / sqrt(12).
288 // In this way it's easier to incorporate the tagger track extrapolation to
289 // the fit
290
291 Acts::Matrix<5, 5> a = Acts::Matrix<5, 5>::Zero();
292 Acts::Vector<5> y = Acts::Vector<5>::Zero();
293
294 // accumulate one 2D point on a surface into the normal equations
295 auto add_point = [&](const Acts::Surface& surface, const Acts::Vector2& loc,
296 double xmeas, double var_u, double var_v) {
297 auto rot = surface.localToGlobalTransform(geometryContext()).rotation();
298 auto tr = surface.localToGlobalTransform(geometryContext()).translation();
299 auto rotl2g = rot.transpose();
300
301 Acts::Matrix<2, 5> a_i;
302 a_i(0, 0) = rotl2g(0, 1);
303 a_i(0, 1) = rotl2g(0, 1) * xmeas;
304 a_i(0, 2) = rotl2g(0, 1) * xmeas * xmeas;
305 a_i(0, 3) = rotl2g(0, 2);
306 a_i(0, 4) = rotl2g(0, 2) * xmeas;
307
308 a_i(1, 0) = rotl2g(1, 1);
309 a_i(1, 1) = rotl2g(1, 1) * xmeas;
310 a_i(1, 2) = rotl2g(1, 1) * xmeas * xmeas;
311 a_i(1, 3) = rotl2g(1, 2);
312 a_i(1, 4) = rotl2g(1, 2) * xmeas;
313
314 Acts::Vector2 offset = (rot.transpose() * tr).topRows<2>();
315 Acts::Vector2 xoffset = {rotl2g(0, 0) * xmeas, rotl2g(1, 0) * xmeas};
316
317 Acts::Matrix<2, 2> w_i = Acts::Matrix<2, 2>::Zero();
318 w_i(0, 0) = 1. / var_u;
319 w_i(1, 1) = 1. / var_v;
320
321 Acts::Vector2 yprime_i = loc + offset - xoffset;
322 y += (a_i.transpose()) * w_i * yprime_i;
323 a += a_i.transpose() * (w_i * a_i);
324 };
325
326 for (auto meas : vmeas) {
327 double xmeas = meas.getGlobalPosition()[0] - xOrigin;
328 const Acts::Surface* hit_surface = geometry().getSurface(meas.getLayerID());
329
330 xhit_.push_back(xmeas);
331 yhit_.push_back(meas.getGlobalPosition()[1]);
332 zhit_.push_back(meas.getGlobalPosition()[2]);
333
334 // strips measure u only; v sits at the strip center
335 Acts::Vector2 loc{meas.getLocalPosition()[0], 0.};
336 add_point(*hit_surface, loc, xmeas, u_error_ * u_error_,
338 }
339
340 if (constraint) {
341 double xmeas = constraint->getGlobalPosition()[0] - xOrigin;
342 Acts::Vector2 loc{constraint->getLocalPosition()[0],
343 constraint->getLocalPosition()[1]};
344 auto cov = constraint->getLocalCovariance();
345 // floor at (1 um)^2 so a missing covariance cannot blow up the weight
346 add_point(*target_surface_, loc, xmeas, std::max<double>(cov[0], 1e-6),
347 std::max<double>(cov[1], 1e-6));
348 }
349
350 Acts::Vector<5> b;
351 b = a.inverse() * y;
352
353 b0_.push_back(b(0));
354 b1_.push_back(b(1));
355 b2_.push_back(b(2));
356 b3_.push_back(b(3));
357 b4_.push_back(b(4));
358
359 // Acts::Vector<5> hlx = Acts::Vector<5>::Zero();
360 Acts::Vector<3> ref{0., 0., 0.};
361
362 // relative_perigee_x is the perigee position in the fit frame (fit-x = ACTS x
363 // - xOrigin). It is used only for evaluating the fitted curve (y, z, slopes).
364 // The PerigeeSurface and seed_pos must use the absolute ACTS x coordinate,
365 // which is perigee_location(0) directly.
366 double relative_perigee_x = perigee_location(0) - xOrigin;
367
368 std::shared_ptr<const Acts::PerigeeSurface> seed_perigee =
369 Acts::Surface::makeShared<Acts::PerigeeSurface>(Acts::Vector3(
370 perigee_location(0), perigee_location(1), perigee_location(2)));
371
372 // in mm — x is absolute ACTS x; y and z evaluated at fit-x =
373 // relative_perigee_x
374 Acts::Vector3 seed_pos{perigee_location(0),
375 b(0) + b(1) * relative_perigee_x +
376 b(2) * relative_perigee_x * relative_perigee_x,
377 b(3) + b(4) * relative_perigee_x};
378 Acts::Vector3 dir{1, b(1) + 2 * b(2) * relative_perigee_x, b(4)};
379 dir /= dir.norm();
380
381 // Momentum at xmeas
382 // R in meters, p in GeV
383 double p = 0.3 * bfield_ * (1. / (2. * abs(b(2)))) * 0.001;
384 // std::cout<<"Momentum "<< p*dir << std::endl;
385
386 // Convert it to MeV since that's what TrackUtils assumes
387 Acts::Vector3 seed_mom = p * dir / Acts::UnitConstants::MeV;
388 double q =
389 b(2) < 0 ? -1 * Acts::UnitConstants::e : +1 * Acts::UnitConstants::e;
390
391 // Linear intersection with the perigee line. TODO:: Use propagator instead
392 // Project the position on the surface.
393 // This is mainly necessary for the perigee surface, where
394 // the mean might not fulfill the perigee condition.
395
396 // mg Aug 2024 .. interect has changed, but just remove boundary check
397 // and change intersection to intersections
398 // auto intersection =
399 // (*seed_perigee).intersect(geometry_context(), seed_pos, dir, false);
400
401 // Acts::FreeVector seed_free = tracking::sim::utils::toFreeParameters(
402 // intersection.intersection.position, seed_mom, q);
403
404 auto intersection =
405 (*seed_perigee).intersect(geometryContext(), seed_pos, dir);
406
407 Acts::FreeVector seed_free = tracking::sim::utils::toFreeParameters(
408 intersection[0].position(), seed_mom, q);
409
410 auto bound_params = Acts::transformFreeToBoundParameters(
411 seed_free, *seed_perigee, geometryContext())
412 .value();
413
414 ldmx_log(trace) << "bound parameters at perigee location" << bound_params;
415
416 Acts::BoundVector stddev;
417 // sigma set to 75% of momentum
418 double sigma_p = 0.75 * p * Acts::UnitConstants::GeV;
419 stddev[Acts::eBoundLoc0] =
420 inflate_factors_[Acts::eBoundLoc0] * 2 * Acts::UnitConstants::mm;
421 stddev[Acts::eBoundLoc1] =
422 inflate_factors_[Acts::eBoundLoc1] * 5 * Acts::UnitConstants::mm;
423 stddev[Acts::eBoundPhi] =
424 inflate_factors_[Acts::eBoundPhi] * 5 * Acts::UnitConstants::degree;
425 stddev[Acts::eBoundTheta] =
426 inflate_factors_[Acts::eBoundTheta] * 5 * Acts::UnitConstants::degree;
427 stddev[Acts::eBoundQOverP] =
428 inflate_factors_[Acts::eBoundQOverP] * (1. / p) * (1. / p) * sigma_p;
429 stddev[Acts::eBoundTime] =
430 inflate_factors_[Acts::eBoundTime] * 1000 * Acts::UnitConstants::ns;
431
432 ldmx_log(debug)
433 << "Making covariance matrix as diagonal matrix with inflated terms";
434 Acts::BoundMatrix bound_cov = stddev.cwiseProduct(stddev).asDiagonal();
435
436 ldmx_log(debug) << "...now putting together the seed track ...";
437
438 ldmx::Track trk = ldmx::Track();
439 // Store the perigee surface position (absolute ACTS coordinates) converted to
440 // LDMX frame so CKFProcessor can reconstruct the same surface.
441 Acts::Vector3 perigee_ldmx =
442 tracking::sim::utils::acts2Ldmx(perigee_location);
443 trk.setPerigeeLocation(perigee_ldmx(0), perigee_ldmx(1), perigee_ldmx(2));
444 trk.setChi2(0.);
445 trk.setNhits(vmeas.size());
446 trk.setNdf(0);
447 trk.setNsharedHits(0);
448 trk.setCharge(q < 0 ? -1 : 1);
449 std::vector<double> v_seed_params(
450 (bound_params).data(),
451 bound_params.data() + bound_params.rows() * bound_params.cols());
452 std::vector<double> v_seed_cov;
453 tracking::sim::utils::flatCov(bound_cov, v_seed_cov);
454 trk.setPerigeeParameters(v_seed_params);
455 trk.setPerigeeCov(v_seed_cov);
456
457 ldmx_log(debug)
458 << "...making the ParticleHypothesis ...assume electron for now";
459 auto part_hypo{Acts::ParticleHypothesis::electron()};
460
461 ldmx_log(debug) << "Making BoundTrackParameters seedParameters";
462 Acts::BoundTrackParameters seed_parameters(
463 seed_perigee, std::move(bound_params), bound_cov, part_hypo);
464
465 ldmx_log(debug) << "Returning seed track";
466 return trk;
467}
std::array< float, 3 > getGlobalPosition() const
Definition Measurement.h:50
std::array< float, 2 > getLocalPosition() const
Definition Measurement.h:67
std::array< float, 2 > getLocalCovariance() const
Definition Measurement.h:84

References ldmx::Measurement::getGlobalPosition(), ldmx::Measurement::getLocalCovariance(), ldmx::Measurement::getLocalPosition(), target_surface_, u_error_, and v_error_.

Member Data Documentation

◆ b0_

std::vector<float> tracking::reco::SeedFinderProcessor::b0_
private

Definition at line 158 of file SeedFinderProcessor.h.

◆ b1_

std::vector<float> tracking::reco::SeedFinderProcessor::b1_
private

Definition at line 159 of file SeedFinderProcessor.h.

◆ b2_

std::vector<float> tracking::reco::SeedFinderProcessor::b2_
private

Definition at line 160 of file SeedFinderProcessor.h.

◆ b3_

std::vector<float> tracking::reco::SeedFinderProcessor::b3_
private

Definition at line 161 of file SeedFinderProcessor.h.

◆ b4_

std::vector<float> tracking::reco::SeedFinderProcessor::b4_
private

Definition at line 162 of file SeedFinderProcessor.h.

◆ b_field_

Acts::Vector3 tracking::reco::SeedFinderProcessor::b_field_
private

Definition at line 82 of file SeedFinderProcessor.h.

◆ beamspot_sigma_

std::vector<double> tracking::reco::SeedFinderProcessor::beamspot_sigma_ {5.77, 23.1}
private

Beam spot sigma at the target in local (u, v) [mm].

Definition at line 147 of file SeedFinderProcessor.h.

147{5.77, 23.1};

Referenced by configure(), and produce().

◆ bfield_

double tracking::reco::SeedFinderProcessor::bfield_ {1.5}
private

Definition at line 152 of file SeedFinderProcessor.h.

152{1.5};

◆ d0max_

double tracking::reco::SeedFinderProcessor::d0max_ {20.}
private

Max d0 allowed for the seeds.

Definition at line 118 of file SeedFinderProcessor.h.

118{20.};

Referenced by configure().

◆ d0min_

double tracking::reco::SeedFinderProcessor::d0min_ {20.}
private

Min d0 allowed for the seeds.

Definition at line 121 of file SeedFinderProcessor.h.

121{20.};

Referenced by configure().

◆ groups_map_

std::map<int, std::vector<const ldmx::Measurement*> > tracking::reco::SeedFinderProcessor::groups_map_
private

Definition at line 176 of file SeedFinderProcessor.h.

◆ inflate_factors_

std::vector<double> tracking::reco::SeedFinderProcessor::inflate_factors_ {1., 1., 1., 1., 1.}
private

Definition at line 95 of file SeedFinderProcessor.h.

95{1., 1., 1., 1., 1.};

◆ input_hits_collection_

std::string tracking::reco::SeedFinderProcessor::input_hits_collection_ {"TaggerSimHits"}
private

The name of the input hits collection to use in finding seeds..

Definition at line 100 of file SeedFinderProcessor.h.

100{"TaggerSimHits"};

Referenced by configure(), and produce().

◆ input_pass_name_

std::string tracking::reco::SeedFinderProcessor::input_pass_name_ {""}
private

Definition at line 103 of file SeedFinderProcessor.h.

103{""};

◆ loc0cut_

double tracking::reco::SeedFinderProcessor::loc0cut_ {0.1}
private

loc0 / loc1 cuts

Definition at line 135 of file SeedFinderProcessor.h.

135{0.1};

Referenced by configure().

◆ loc1cut_

double tracking::reco::SeedFinderProcessor::loc1cut_ {0.3}
private

Definition at line 136 of file SeedFinderProcessor.h.

136{0.3};

◆ ndoubles_

long tracking::reco::SeedFinderProcessor::ndoubles_ {0}
private

Definition at line 165 of file SeedFinderProcessor.h.

165{0};

◆ nevents_

long tracking::reco::SeedFinderProcessor::nevents_ {0}
private

Definition at line 92 of file SeedFinderProcessor.h.

92{0};

◆ nfaild0max_

long tracking::reco::SeedFinderProcessor::nfaild0max_ {0}
private

Definition at line 170 of file SeedFinderProcessor.h.

170{0};

◆ nfaild0min_

long tracking::reco::SeedFinderProcessor::nfaild0min_ {0}
private

Definition at line 169 of file SeedFinderProcessor.h.

169{0};

◆ nfailphi_

long tracking::reco::SeedFinderProcessor::nfailphi_ {0}
private

Definition at line 172 of file SeedFinderProcessor.h.

172{0};

◆ nfailpmax_

long tracking::reco::SeedFinderProcessor::nfailpmax_ {0}
private

Definition at line 168 of file SeedFinderProcessor.h.

168{0};

◆ nfailpmin_

long tracking::reco::SeedFinderProcessor::nfailpmin_ {0}
private

Definition at line 167 of file SeedFinderProcessor.h.

167{0};

◆ nfailtheta_

long tracking::reco::SeedFinderProcessor::nfailtheta_ {0}
private

Definition at line 173 of file SeedFinderProcessor.h.

173{0};

◆ nfailz0max_

long tracking::reco::SeedFinderProcessor::nfailz0max_ {0}
private

Definition at line 171 of file SeedFinderProcessor.h.

171{0};

◆ nmissing_

long tracking::reco::SeedFinderProcessor::nmissing_ {0}
private

Definition at line 166 of file SeedFinderProcessor.h.

166{0};

◆ ntracks_

unsigned int tracking::reco::SeedFinderProcessor::ntracks_ {0}
private

Definition at line 93 of file SeedFinderProcessor.h.

93{0};

◆ out_seed_collection_

std::string tracking::reco::SeedFinderProcessor::out_seed_collection_ {"SeedTracks"}
private

The name of the output collection of seeds to be stored.

Definition at line 98 of file SeedFinderProcessor.h.

98{"SeedTracks"};

Referenced by configure(), and produce().

◆ perigee_location_

std::vector<double> tracking::reco::SeedFinderProcessor::perigee_location_ {-700., 0., 0}
private

Location of the perigee for the helix track parameters.

Definition at line 110 of file SeedFinderProcessor.h.

110{-700., 0., 0};

Referenced by configure().

◆ phicut_

double tracking::reco::SeedFinderProcessor::phicut_ {0.1}
private

PhiRange.

Definition at line 129 of file SeedFinderProcessor.h.

129{0.1};

Referenced by configure().

◆ piover2_

double tracking::reco::SeedFinderProcessor::piover2_ {1.5708}
private

Definition at line 126 of file SeedFinderProcessor.h.

126{1.5708};

◆ pmax_

double tracking::reco::SeedFinderProcessor::pmax_ {8}
private

Maximum cut on the momentum of the seeds.

Definition at line 115 of file SeedFinderProcessor.h.

115{8};

Referenced by configure().

◆ pmin_

double tracking::reco::SeedFinderProcessor::pmin_ {0.05}
private

Minimum cut on the momentum of the seeds.

Definition at line 112 of file SeedFinderProcessor.h.

112{0.05};

Referenced by configure().

◆ processing_time_

double tracking::reco::SeedFinderProcessor::processing_time_ {0.}
private

Definition at line 91 of file SeedFinderProcessor.h.

91{0.};

◆ seed_to_track_maker_

std::shared_ptr<tracking::sim::SeedToTrackParamMaker> tracking::reco::SeedFinderProcessor::seed_to_track_maker_
private

Definition at line 89 of file SeedFinderProcessor.h.

◆ sim_particles_coll_name_

std::string tracking::reco::SeedFinderProcessor::sim_particles_coll_name_
private

Definition at line 105 of file SeedFinderProcessor.h.

◆ sim_particles_event_passname_

std::string tracking::reco::SeedFinderProcessor::sim_particles_event_passname_
private

Definition at line 108 of file SeedFinderProcessor.h.

◆ sim_particles_passname_

std::string tracking::reco::SeedFinderProcessor::sim_particles_passname_
private

Definition at line 106 of file SeedFinderProcessor.h.

◆ strategies_

std::vector<std::string> tracking::reco::SeedFinderProcessor::strategies_ {}
private

List of stragies for seed finding.

Definition at line 139 of file SeedFinderProcessor.h.

139{};

Referenced by configure().

◆ strategy_layers_

std::vector<std::vector<int> > tracking::reco::SeedFinderProcessor::strategy_layers_ {}
private

Layer lists parsed from strategies_, one per strategy.

Definition at line 141 of file SeedFinderProcessor.h.

141{};

Referenced by configure(), and produce().

◆ tagger_trks_collection_

std::string tracking::reco::SeedFinderProcessor::tagger_trks_collection_ {"TaggerTracks"}
private

The name of the tagger Tracks (only for Recoil Seeding)

Definition at line 102 of file SeedFinderProcessor.h.

102{"TaggerTracks"};

Referenced by configure(), and produce().

◆ tagger_trks_event_collection_passname_

std::string tracking::reco::SeedFinderProcessor::tagger_trks_event_collection_passname_
private

Definition at line 107 of file SeedFinderProcessor.h.

◆ target_surface_

std::shared_ptr<Acts::Surface> tracking::reco::SeedFinderProcessor::target_surface_
private

Target surface the constraints live on.

Definition at line 149 of file SeedFinderProcessor.h.

Referenced by onProcessStart(), produce(), and seedTracker().

◆ thetacut_

double tracking::reco::SeedFinderProcessor::thetacut_ {0.2}
private

ThetaRange.

Definition at line 132 of file SeedFinderProcessor.h.

132{0.2};

Referenced by configure().

◆ truth_matching_tool_

std::shared_ptr<tracking::sim::TruthMatchingTool> tracking::reco::SeedFinderProcessor::truth_matching_tool_
private
Initial value:
=
nullptr

Definition at line 179 of file SeedFinderProcessor.h.

◆ u_error_

double tracking::reco::SeedFinderProcessor::u_error_
private

u error

Definition at line 183 of file SeedFinderProcessor.h.

Referenced by configure(), and seedTracker().

◆ use_beamspot_constraint_

bool tracking::reco::SeedFinderProcessor::use_beamspot_constraint_ {false}
private

Put the beam spot into the seed fit when no tagger track exists.

Definition at line 145 of file SeedFinderProcessor.h.

145{false};

Referenced by configure(), and produce().

◆ use_target_constraint_

bool tracking::reco::SeedFinderProcessor::use_target_constraint_ {false}
private

Put tagger track positions at the target into the seed fit.

Definition at line 143 of file SeedFinderProcessor.h.

143{false};

Referenced by configure(), and produce().

◆ v_error_

double tracking::reco::SeedFinderProcessor::v_error_
private

v error

Definition at line 185 of file SeedFinderProcessor.h.

Referenced by configure(), and seedTracker().

◆ warned_ambiguous_tagger_

bool tracking::reco::SeedFinderProcessor::warned_ambiguous_tagger_ {false}
private

Warn only once about several tagger track collections.

Definition at line 151 of file SeedFinderProcessor.h.

151{false};

Referenced by produce().

◆ xhit_

std::vector<float> tracking::reco::SeedFinderProcessor::xhit_
private

Definition at line 154 of file SeedFinderProcessor.h.

◆ yhit_

std::vector<float> tracking::reco::SeedFinderProcessor::yhit_
private

Definition at line 155 of file SeedFinderProcessor.h.

◆ z0max_

double tracking::reco::SeedFinderProcessor::z0max_ {60.}
private

Max z0 allowed for the seeds.

Definition at line 124 of file SeedFinderProcessor.h.

124{60.};

Referenced by configure().

◆ zhit_

std::vector<float> tracking::reco::SeedFinderProcessor::zhit_
private

Definition at line 156 of file SeedFinderProcessor.h.


The documentation for this class was generated from the following files: