1 #ifndef RecoSelectors_CosmicTrackingParticleSelector_h
2 #define RecoSelectors_CosmicTrackingParticleSelector_h
36 typedef std::vector<const TrackingParticle *>
container;
42 double tip,
double lip,
int minHit,
bool chargedOnly,
43 std::vector<int>
pdgId = std::vector<int>()) :
49 ptMin_(cfg.getParameter<double>(
"ptMin")),
52 tip_(cfg.getParameter<double>(
"tip")),
53 lip_(cfg.getParameter<double>(
"lip")),
54 minHit_(cfg.getParameter<int>(
"minHit")),
56 pdgId_(cfg.getParameter<std::vector<int> >(
"pdgId")) { }
63 for( TrackingParticleCollection::const_iterator itp = c->begin();
64 itp != c->end(); ++ itp )
97 for(std::vector<PSimHit>::const_iterator it=simHits.begin(); it!=simHits.end(); ++it){
98 const GeomDet* tmpDet = tracker->idToDet(
DetId(it->detUnitId()) ) ;
116 if(!tsAtClosestApproach.
isValid()){
117 std::cout <<
"WARNING: tsAtClosestApproach is not valid" << std::endl;
129 fabs(vertex.
z()) <=
lip_
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
int charge() const
electric charge
std::vector< TrackingParticle > TrackingParticleCollection
void select(const edm::Handle< collection > &c, const edm::Event &event, const edm::EventSetup &setup)
const std::vector< PSimHit > & trackPSimHit() const
std::vector< int > pdgId_
CosmicTrackingParticleSelector(double ptMin, double minRapidity, double maxRapidity, double tip, double lip, int minHit, bool chargedOnly, std::vector< int > pdgId=std::vector< int >())
bool operator()(const TrackingParticle &tp, const reco::BeamSpot *bs, const edm::Event &iEvent, const edm::EventSetup &iSetup) const
CosmicTrackingParticleSelector(const edm::ParameterSet &cfg)
const_iterator begin() const
std::vector< const TrackingParticle * > container
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
GlobalVector momentum() const
FTS const & trackStateAtPCA() const
GlobalPoint position() const
const_iterator end() const
T const * product() const
TrackingParticleCollection collection
CosmicTrackingParticleSelector()
container::const_iterator const_iterator
T const * product() const
const BoundPlane & surface() const
The nominal surface of the GeomDet.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")