CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DuplicationChecker.h
Go to the documentation of this file.
1 #ifndef DUPLICATIONCHECKER_H
2 #define DUPLICATIONCHECKER_H
3 
4 /*class DuplicationChecker
5  *
6  * Class to monitor duplication of events
7  *
8  *
9  */
10 
11 // framework & common header files
16 
21 
22 //DQM services
26 
28 
29 #include <map>
30 #include <vector>
31 
35 
37 
39 {
40 
41  public:
42 
43  typedef std::multimap<double,edm::EventID> associationMap;
44  typedef std::vector<associationMap::iterator> itemList;
45 
46  explicit DuplicationChecker(const edm::ParameterSet&);
47  virtual ~DuplicationChecker();
48  void beginJob();
49  void endJob();
50  void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup);
51  virtual void beginRun(const edm::Run&, const edm::EventSetup&){ return;}
52  virtual void endRun(const edm::Run&, const edm::EventSetup&){ return;}
53  void findValuesAssociatedWithKey(associationMap &mMap, double &key, itemList &theObjects);
54 
55  private:
57 
60 
62 
64 
66 
68 
71 
72 };
73 
74 #endif
edm::EDGetTokenT< LHEEventProduct > lheEventProductToken_
edm::InputTag generatedCollection_
edm::EDGetTokenT< edm::HepMCProduct > generatedCollectionToken_
virtual void endRun(const edm::Run &, const edm::EventSetup &)
std::vector< associationMap::iterator > itemList
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup)
associationMap xBjorkenHistory
int iEvent
Definition: GenABIO.cc:243
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
WeightManager wmanager_
std::multimap< double, edm::EventID > associationMap
MonitorElement * xBjorkenME
edm::InputTag lheEventProduct_
DuplicationChecker(const edm::ParameterSet &)
list key
Definition: combine.py:13
void findValuesAssociatedWithKey(associationMap &mMap, double &key, itemList &theObjects)
Definition: Run.h:41