Public Member Functions |
Protected Member Functions |
Protected Attributes |
Private Attributes |
Friends
TriggerUA5 Class Reference Access to the min bias triggers used by UA5. More...
Detailed DescriptionAccess to the min bias triggers used by UA5. Definition at line 14 of file TriggerUA5.hh. Constructor & Destructor Documentation
Default constructor. Definition at line 11 of file TriggerUA5.cc. { setName("TriggerUA5"); addProjection(Beam(), "Beam"); addProjection(ChargedFinalState(-5.6, 5.6), "CFS"); } Member Function Documentation
Non-templated version of string-based applyProjection, to work around header dependency issue. Definition at line 22 of file ProjectionApplier.cc. { return evt.applyProjection(getProjection(name)); }
Non-templated version of proj-based applyProjection, to work around header dependency issue. Definition at line 28 of file ProjectionApplier.cc. {
return evt.applyProjection(proj);
}
Untemplated function to do the work... Definition at line 34 of file ProjectionApplier.cc. { if (!_allowProjReg) { cerr << "Trying to register projection '" << proj.name() << "' before init phase in '" << this->name() << "'." << endl; exit(2); } const Projection& reg = getProjHandler().registerProjection(*this, proj, name); return reg; }
Add a colliding beam pair. Definition at line 108 of file Projection.hh. { _beamPairs.insert(PdgIdPair(beam1, beam2)); return *this; }
Register a contained projection (user-facing version)
Definition at line 157 of file ProjectionApplier.hh. { return declareProjection(proj, name); }
Apply the supplied projection on event evt (user-facing alias).
Definition at line 80 of file ProjectionApplier.hh. { return applyProjection<PROJ>(evt, proj); }
Apply the supplied projection on event evt (user-facing alias).
Definition at line 92 of file ProjectionApplier.hh. { return applyProjection<PROJ>(evt, proj); }
Apply the supplied projection on event evt (user-facing alias).
Definition at line 104 of file ProjectionApplier.hh. { return applyProjection<PROJ>(evt, name); }
Apply the supplied projection on event evt.
Definition at line 74 of file ProjectionApplier.hh. { return pcast<PROJ>(_applyProjection(evt, proj)); }
Apply the supplied projection on event evt.
Definition at line 86 of file ProjectionApplier.hh. { return pcast<PROJ>(_applyProjection(evt, proj)); }
Apply the named projection on event evt.
Definition at line 98 of file ProjectionApplier.hh. { return pcast<PROJ>(_applyProjection(evt, name)); } Return the allowed beam pairs on which this projection can operate, not including recursion. Derived classes should ensure that all contained projections are registered in the _projections set for the beam constraint chaining to work.
Definition at line 35 of file Projection.cc. { set<PdgIdPair> ret = _beamPairs; set<ConstProjectionPtr> projs = getProjections(); for (set<ConstProjectionPtr>::const_iterator ip = projs.begin(); ip != projs.end(); ++ip) { ConstProjectionPtr p = *ip; getLog() << Log::TRACE << "Proj addr = " << p << endl; if (p) ret = intersection(ret, p->beamPairs()); } return ret; }
Determine whether this object should be ordered before the object p given as argument. If p is of a different class than this, the before() function of the corresponding type_info objects is used. Otherwise, if the objects are of the same class, the virtual compare(const Projection &) will be returned. Definition at line 24 of file Projection.cc.
Clone on the heap. Implemented in JetAlg, AxesDefinition, and ParticleFinder.
This function is used to define a unique ordering between different Projection objects of the same class. If this is considered to be equivalent to the Projector object, p, in the argument the function should return 0. If this object should be ordered before p a negative value should be returned, otherwise a positive value should be returned. This function must never be called explicitly, but should only be called from the operator<(const Projection &). When implementing the function in concrete sub-classes, it is then guaranteed that the Projection object p in the argument is of the same class as the sub-class and can be safely dynamically casted to that class. When implementing this function in a sub-class, the immediate base class version of the function should be called first. If the base class function returns a non-zero value, that value should be returned immediately. Only if zero is returned should this function check the member variables of the sub-class to determine whether this should be ordered before or after p, or if it is equivalent with p. Implemented in FastJets, JetAlg, ParticleFinder, JetShape, VetoedFinalState, IdentifiedFinalState, WFinder, ZFinder, Hemispheres, DressedLeptons, PartonicTops, HeavyHadrons, MissingMomentum, SmearedJets, Sphericity, InvMassFinalState, Thrust, LossyFinalState< FILTER >, LossyFinalState< ConstRandomFilter >, LeadingParticlesFinalState, ParisiTensor, FoxWolframMoments, Spherocity, NeutralFinalState, PromptFinalState, SmearedParticles, VisibleFinalState, TauFinder, SmearedMET, InitialQuarks, NonPromptFinalState, FinalState, DISFinalState, NonHadronicFinalState, HadronicFinalState, DISKinematics, DISLepton, MergedFinalState, ChargedFinalState, BeamThrust, CentralEtHCM, ChargedLeptons, and FParameter.
Register a contained projection (user-facing version)
Definition at line 151 of file ProjectionApplier.hh. { return declareProjection(proj, name); }
Register a contained projection. The type of the argument is used to instantiate a new projection internally: this new object is applied to events rather than the argument object. Hence you are advised to only use locally-scoped Projection objects in your Projection and Analysis constructors, and to avoid polymorphism (e.g. handling
Definition at line 142 of file ProjectionApplier.hh. { const Projection& reg = _declareProjection(proj, name); const PROJ& rtn = dynamic_cast<const PROJ&>(reg); return rtn; } Clone on the heap.
Get the named projection, specifying return type via a template argument (user-facing alias).
Definition at line 57 of file ProjectionApplier.hh. { return getProjection<PROJ>(name); } Get a Log object based on the getName() property of the calling projection object. Reimplemented from ProjectionApplier. Definition at line 115 of file Projection.hh. { string logname = "Rivet.Projection." + name(); return Log::getLog(logname); }
Get the named projection, specifying return type via a template argument.
Definition at line 50 of file ProjectionApplier.hh. { const Projection& p = getProjHandler().getProjection(*this, name); return pcast<PROJ>(p); }
Get the named projection (non-templated, so returns as a reference to a Projection base class). Definition at line 61 of file ProjectionApplier.hh. { return getProjHandler().getProjection(*this, name); }
Get the contained projections, including recursion. Definition at line 43 of file ProjectionApplier.hh. { return getProjHandler().getChildProjections(*this, ProjectionHandler::DEEP); }
Get a reference to the ProjectionHandler for this thread. Definition at line 122 of file ProjectionApplier.hh. { return _projhandler; }
Mark object as owned by the _projhandler
Definition at line 111 of file ProjectionApplier.hh. { _owned = true; }
Shortcut to make a named Cmp<Projection> comparison with the Definition at line 47 of file Projection.cc. { return pcmp(*this, otherparent, pname); }
Shortcut to make a named Cmp<Projection> comparison with the
Definition at line 51 of file Projection.cc. { return pcmp(*this, otherparent, pname); }
Get the name of the projection. Implements ProjectionApplier. Definition at line 102 of file Projection.hh. { return _name; }
The trigger result for non-single diffractive (2 arm) trigger with special ">= 2" trigger for ppbar bg rejection Definition at line 36 of file TriggerUA5.hh. { return _decision_nsd_2; }
The trigger result for non-single diffractive (2 arm) trigger. Definition at line 30 of file TriggerUA5.hh. { return _decision_nsd_1; }
Number of hits in <-,+> eta hodoscopes. Definition at line 46 of file TriggerUA5.hh. Project on to the event. Implements Projection. Definition at line 19 of file TriggerUA5.cc. { _n_plus = 0; _n_minus = 0; // Start with the assumption that the trigger fails _decision_sd = false; _decision_nsd_1 = false; _decision_nsd_2 = false; // Triggers can be different for pp and ppbar running const Beam& b = applyProjection<Beam>(evt, "Beam"); _samebeams = (b.beams().first.pid() == b.beams().second.pid()); // Count hodoscope hits const ChargedFinalState& cfs = applyProjection<ChargedFinalState>(evt, "CFS"); foreach (const Particle& p, cfs.particles()) { if (inRange(p.eta(), -5.6, -2.0)) _n_minus++; else if (inRange(p.eta(), 2.0, 5.6)) _n_plus++; } MSG_DEBUG("Trigger -: " << _n_minus << ", Trigger +: " << _n_plus); // Common SD/NSD trigger requirement: must activate at least one hodoscope if (_n_minus == 0 && _n_plus == 0) return; _decision_sd = true; // Extra NSD trigger requirements if (_n_minus == 0 || _n_plus == 0) return; _decision_nsd_1 = true; if (_n_minus < 2 || _n_plus < 2) return; _decision_nsd_2 = true; }
The trigger result for non-single diffractive (2 arm) trigger. Definition at line 25 of file TriggerUA5.hh. { return _decision_sd; }
Used by derived classes to set their name. Definition at line 121 of file Projection.hh. Friends And Related Function Documentation
The Cmp specialization for Projection is a friend. Definition at line 36 of file Projection.hh.
Event is a friend. Definition at line 33 of file Projection.hh. Member Data Documentation
Flag to forbid projection registration in analyses until the init phase. Definition at line 176 of file ProjectionApplier.hh.
Definition at line 65 of file TriggerUA5.hh.
Definition at line 65 of file TriggerUA5.hh.
The min bias trigger decisions. Definition at line 65 of file TriggerUA5.hh.
Definition at line 71 of file TriggerUA5.hh.
Number of hits in hodoscopes. Definition at line 71 of file TriggerUA5.hh.
Is it a pp collision? Definition at line 68 of file TriggerUA5.hh. The documentation for this class was generated from the following files: Generated on Tue Dec 13 2016 16:32:50 for The Rivet MC analysis system by ![]() |