CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackingTruthAccumulator.h
Go to the documentation of this file.
1 #ifndef TrackingAnalysis_TrackingTruthAccumulator_h
2 #define TrackingAnalysis_TrackingTruthAccumulator_h
3 
6 #include <memory> // required for std::auto_ptr
9 
10 
11 // Forward declarations
12 namespace edm
13 {
14  class ParameterSet;
15  class ConsumesCollector;
16  namespace one {
17  class EDProducerBase;
18  }
19  class Event;
20  class EventSetup;
21  class StreamID;
22 }
24 class PSimHit;
25 
26 
27 
69 {
70 public:
72 private:
73  virtual void initializeEvent( const edm::Event& event, const edm::EventSetup& setup );
74  virtual void accumulate( const edm::Event& event, const edm::EventSetup& setup );
75  virtual void accumulate( const PileUpEventPrincipal& event, const edm::EventSetup& setup, edm::StreamID const& );
76  virtual void finalizeEvent( edm::Event& event, const edm::EventSetup& setup );
77 
79  template<class T> void accumulateEvent( const T& event, const edm::EventSetup& setup, const edm::Handle< edm::HepMCProduct >& hepMCproduct );
80 
82  template<class T> void fillSimHits( std::vector<const PSimHit*>& returnValue, const T& event, const edm::EventSetup& setup );
83 
85 
86  const double volumeRadius_;
87  const double volumeZ_;
89  const double vertexDistanceCut_;
91 
94  const unsigned int maximumPreviousBunchCrossing_;
97  const unsigned int maximumSubsequentBunchCrossing_;
102  const bool addAncestors_;
103 
105  const bool removeDeadModules_;
108  std::vector<edm::InputTag> collectionTags_;
112 
119 
128 public:
129  // These always go hand in hand, and I need to pass them around in the internal
130  // functions, so I might as well package them up in a struct.
132  {
133  std::auto_ptr<TrackingParticleCollection> pTrackingParticles;
134  std::auto_ptr<TrackingVertexCollection> pTrackingVertices;
137  };
138 private:
141 };
142 
143 #endif // end of "#ifndef TrackingAnalysis_TrackingTruthAccumulator_h"
virtual void initializeEvent(const edm::Event &event, const edm::EventSetup &setup)
const bool removeDeadModules_
As of 11/Feb/2013 this option hasn&#39;t been implemented yet.
const bool addAncestors_
Whether or not to add the full parentage of any TrackingParticle that is inserted in the collection...
const double vertexDistanceCut_
maximum distance for HepMC::GenVertex to be added to SimVertex
bool signalOnly_
Uses the same config as selector_, but can be used to drop out early since selector_ requires the Tra...
void fillSimHits(std::vector< const PSimHit * > &returnValue, const T &event, const edm::EventSetup &setup)
Fills the supplied vector with pointers to the SimHits, checking for bad modules if required...
const unsigned int maximumSubsequentBunchCrossing_
void accumulateEvent(const T &event, const edm::EventSetup &setup, const edm::Handle< edm::HepMCProduct > &hepMCproduct)
Both forms of accumulate() delegate to this templated method.
virtual void finalizeEvent(edm::Event &event, const edm::EventSetup &setup)
const std::string messageCategory_
The message category used to send messages to MessageLogger.
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
bool allowDifferentProcessTypeForDifferentDetectors_
When counting hits, allows hits in different detectors to have a different process type...
std::auto_ptr< TrackingParticleCollection > pTrackingParticles
virtual void accumulate(const edm::Event &event, const edm::EventSetup &setup)
std::auto_ptr< TrackingVertexCollection > pTrackingVertices
const unsigned int maximumPreviousBunchCrossing_
bool chargedOnly_
Uses the same config as selector_, but can be used to drop out early since selector_ requires the Tra...
const bool createUnmergedCollection_
If bremsstrahlung merging, whether to also add the unmerged collection to the event or not...
TrackingParticleSelector selector_
TrackingTruthAccumulator(const edm::ParameterSet &config, edm::one::EDProducerBase &mixMod, edm::ConsumesCollector &iC)
Replacement for TrackingTruthProducer in the new pileup mixing setup.
long double T
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
edm::InputTag hepMCproductLabel_
Needed to add HepMC::GenVertex to SimVertex.
std::vector< edm::InputTag > collectionTags_