24 theNTracks(0),theNFailures(0){
37 <<
"The selected algorithm does not exist"
39 <<
"Possible choices are:"
41 <<
"Type = [Default, GlobalCosmicMuonsForAlignment, CosmicMuonsForAlignment]";
44 produces<vector<Trajectory> >(
"Refitted");
45 produces<TrajTrackAssociationCollection>(
"Refitted");
55 const string metname =
"Reco|TrackingTools|TracksToTrajectories";
58 LogWarning(metname) <<
"During the refit there were "
61 LogTrace(metname) <<
"Refit of the tracks done without any failure";
69 const string metname =
"Reco|TrackingTools|TracksToTrajectories";
74 auto_ptr<vector<Trajectory> > trajectoryCollection(
new vector<Trajectory>);
78 =
event.getRefBeforePut<vector<Trajectory> >(
"Refitted");
91 for (reco::TrackCollection::const_iterator newTrack = tracks->begin();
92 newTrack != tracks->end(); ++newTrack) {
98 if(!trajectoriesSM.empty()){
100 trajectoryCollection->push_back(trajectoriesSM.front());
103 trajTrackMap->insert(
Ref<vector<Trajectory> >(trajectoryCollectionRefProd,trajectoryIndex++),
107 LogTrace(metname) <<
"Error in the Track refitting. This should not happen";
111 LogTrace(metname)<<
"Load the Trajectory Collection";
112 event.put(trajectoryCollection,
"Refitted");
113 event.put(trajTrackMap,
"Refitted");
T getParameter(std::string const &) const
virtual ~TracksToTrajectories()
Destructor.
TracksToTrajectories(const edm::ParameterSet &)
Constructor.
const std::string metname
TrackTransformerBase * theTrackTransformer
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::InputTag theTracksLabel
virtual void produce(edm::Event &, const edm::EventSetup &)
Convert a reco::TrackCollection into std::vector<Trajectory>
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
ParameterSet const & parameterSet(Provenance const &provenance)
boost::remove_cv< typename boost::remove_reference< argument_type >::type >::type key_type