17 #include <CLHEP/Vector/LorentzVector.h>
176 std::vector<reco::LeafCandidate>
muons;
177 typename std::vector<T>::const_iterator track;
178 for( track = tracks.begin(); track != tracks.end(); ++track ) {
187 <<
": initial value Pt = " << mu.Pt() << std::endl;
195 muons.push_back (
muon);
207 tracks.push_back(*(muon->globalTrack()));
209 tracks.push_back(*(muon->outerTrack()));
211 tracks.push_back(*(muon->innerTrack()));
213 else if(
theMuonType_ == 10 && !(muon->isStandAloneMuon()) )
214 tracks.push_back(*(muon->innerTrack()));
216 tracks.push_back(*(muon->innerTrack()));
218 tracks.push_back(*(muon->innerTrack()));
void selectMuons(const edm::Event &event)
virtual edm::EDLooper::Status endOfLoop(const edm::EventSetup &eventSetup, unsigned int iLoop)
double maxResMass_hwindow[6]
bool selGlobalMuon(const pat::Muon *aMuon)
Function for onia selections.
std::string triggerResultsProcess_
virtual void duringFastLoop()
bool selTrackerMuon(const pat::Muon *aMuon)
edm::InputTag simTracksCollection_
void fillComparisonHistograms(const reco::Particle::LorentzVector &genMu, const reco::Particle::LorentzVector &recoMu, const std::string &inputName, const int charge)
Fill the reco vs gen and reco vs sim comparison histograms.
std::vector< reco::LeafCandidate > fillMuonCollection(const std::vector< T > &tracks)
MuonServiceProxy * theService
std::string outputRootTreeFileName_
virtual void startingNewLoop(unsigned int iLoop)
reco::Particle::LorentzVector recMu2
double minResMass_hwindow[6]
reco::Particle::LorentzVector recMu1
unsigned int maxLoopNumber
std::string genParticlesName_
MuScleFit(const edm::ParameterSet &pset)
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
void beginOfJobInConstructor()
void applySmearing(reco::Particle::LorentzVector &mu)
Apply the smearing if needed using the function in MuScleFitUtils.
std::string triggerResultsLabel_
std::string inputRootTreeFileName_
bool checkDeltaR(reco::Particle::LorentzVector &genMu, reco::Particle::LorentzVector &recMu)
Check if two lorentzVector are near in deltaR.
std::auto_ptr< MuScleFitMuonSelector > muonSelector_
int maxEventsFromRootTree_
void takeSelectedMuonType(const T &muon, std::vector< reco::Track > &tracks)
Template method used to fill the track collection starting from reco::muons or pat::muons.
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Analysis-level muon class.
void applyBias(reco::Particle::LorentzVector &mu, const int charge)
Apply the bias if needed using the function in MuScleFitUtils.
MuScleFitPlotter * plotter
virtual edm::EDLooper::Status duringLoop(const edm::Event &event, const edm::EventSetup &eventSetup)
virtual void endOfFastLoop(const unsigned int iLoop)