Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to cvs head-V00-02-30 patch #168

Merged
merged 3 commits into from
Aug 16, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Class to fill Event Generator dqm monitor elements; works on HepMCProduct
*
* $Date: 2011/12/29 10:53:10 $
* $Revision: 1.3 $
* $Date: 2010/07/02 13:34:22 $
* $Revision: 1.2 $
*
*/

Expand Down
4 changes: 2 additions & 2 deletions Validation/EventGenerator/interface/BasicHepMCValidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Class to fill Event Generator dqm monitor elements; works on HepMCProduct
*
* $Date: 2011/12/29 10:53:10 $
* $Revision: 1.6 $
* $Date: 2011/10/30 09:16:22 $
* $Revision: 1.5 $
*
*/

Expand Down
2 changes: 1 addition & 1 deletion Validation/EventGenerator/interface/CaloCellId.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Simple eta-phi cell identifier, mimic calorimetric tower structure
* phi is stored in radians
*
* $Date: 2010/05/25 16:50:50 $
* $Date: 2010/05/25 09:45:03 $
* $Revision: 1.1 $
*
*/
Expand Down
2 changes: 1 addition & 1 deletion Validation/EventGenerator/interface/CaloCellManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Simple eta-phi cell structure manager, mimic calorimetric tower structure
*
* $Date: 2010/05/25 16:50:50 $
* $Date: 2010/05/25 09:45:03 $
* $Revision: 1.1 $
*
*/
Expand Down
4 changes: 2 additions & 2 deletions Validation/EventGenerator/interface/DrellYanValidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Class to fill Event Generator dqm monitor elements; works on HepMCProduct
*
* $Date: 2011/12/29 10:53:10 $
* $Revision: 1.3 $
* $Date: 2010/07/02 13:34:23 $
* $Revision: 1.2 $
*
*/

Expand Down
4 changes: 2 additions & 2 deletions Validation/EventGenerator/interface/DuplicationChecker.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Class to monitor duplication of events
*
* $Date: 2012/08/24 21:47:01 $
* $Revision: 1.3 $
* $Date: 2011/12/29 10:53:10 $
* $Revision: 1.2 $
*
*/

Expand Down
2 changes: 1 addition & 1 deletion Validation/EventGenerator/interface/HiggsValidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Class to fill Event Generator dqm monitor elements; works on HepMCProduct
*
* $Date: 2012/08/12 16:13:28 $
* $Date: 2012/06/25 14:51:48 $
* $Revision: 1.1 $
*
*/
Expand Down
4 changes: 2 additions & 2 deletions Validation/EventGenerator/interface/MBUEandQCDValidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Class to fill Event Generator dqm monitor elements; works on HepMCProduct
*
* $Date: 2011/12/29 10:53:10 $
* $Revision: 1.3 $
* $Date: 2010/07/02 12:32:05 $
* $Revision: 1.2 $
*
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// Original Author: Martijn Gosselink,,,
// Created: Thu Jan 19 18:40:35 CET 2012
// $Id: TTbarSpinCorrHepMCAnalyzer.h,v 1.3 2012/10/16 15:08:10 inugent Exp $
// $Id: TTbarSpinCorrHepMCAnalyzer.h,v 1.2 2012/10/12 15:15:20 wdd Exp $
//
//
// Added to: Validation/EventGenerator by Ian M. Nugent Oct 9, 2012
Expand Down
2 changes: 1 addition & 1 deletion Validation/EventGenerator/interface/TTbar_GenJetAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// Original Author: Martijn Gosselink,,,
// Created: Thu May 10 17:15:16 CEST 2012
// $Id: TTbar_GenJetAnalyzer.h,v 1.2 2012/08/24 21:47:01 wdd Exp $
// $Id: TTbar_GenJetAnalyzer.h,v 1.1 2012/07/04 18:24:21 inugent Exp $
//
//
// Added to: Validation/EventGenerator by Ian M. Nugent June 28, 2012
Expand Down
2 changes: 1 addition & 1 deletion Validation/EventGenerator/interface/TTbar_GenLepAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// Original Author: Martijn Gosselink,,,
// Created: Thu May 10 17:15:16 CEST 2012
// $Id: TTbar_GenLepAnalyzer.h,v 1.1 2012/07/04 18:24:21 inugent Exp $
// $Id: TTbar_GenLepAnalyzer.cc,v 1.3 2012/05/24 18:20:45 mgosseli Exp $
//
//
// Added to: Validation/EventGenerator by Ian M. Nugent June 28, 2012
Expand Down
2 changes: 1 addition & 1 deletion Validation/EventGenerator/interface/TTbar_Kinematics.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// Original Author: Martijn Gosselink,,,
// Created: Thu Jan 19 18:40:35 CET 2012
// $Id: TTbar_Kinematics.h,v 1.3 2012/08/24 21:47:01 wdd Exp $
// $Id: TTbar_Kinematics.h,v 1.2 2012/07/30 19:34:44 inugent Exp $
//
//
// Added to: Validation/EventGenerator by Ian M. Nugent June 28, 2012
Expand Down
2 changes: 1 addition & 1 deletion Validation/EventGenerator/interface/TTbar_P4Violation.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// Original Author: Martijn Gosselink,,,
// Created: Fri Jan 20 12:52:00 CET 2012
// $Id: TTbar_P4Violation.h,v 1.3 2013/03/06 16:40:19 inugent Exp $
// $Id: TTbar_P4Violation.h,v 1.2 2013/02/27 13:28:57 muzaffar Exp $
//
//
// Added to: Validation/EventGenerator by Ian M. Nugent June 28, 2012
Expand Down
2 changes: 1 addition & 1 deletion Validation/EventGenerator/interface/TauDecay.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//
// Original Author: Ian Nugent
// Created: Fri Nov 18 13:49:02 CET 2011
// $Id: TauDecay.h,v 1.2 2012/12/10 14:59:52 inugent Exp $
// $Id: TauDecay.h,v 1.1 2012/02/10 10:08:13 inugent Exp $
//
//
#ifndef TauDecay_h
Expand Down
2 changes: 1 addition & 1 deletion Validation/EventGenerator/interface/TauDecay_CMSSW.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// Original Author: Ian Nugent
// Created: Fri Nov 18 13:49:02 CET 2011
// $Id: TauDecay_CMSSW.h,v 1.1 2012/02/10 10:08:22 inugent Exp $
// $Id: TauDecay_CMSSW.h,v 1.1 2011/12/01 13:51:23 cherepan Exp $
//
//
#ifndef TauDecay_CMSSW_h
Expand Down
4 changes: 2 additions & 2 deletions Validation/EventGenerator/interface/TauValidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Class to fill Event Generator dqm monitor elements; works on HepMCProduct
*
* $Date: 2013/03/06 01:51:10 $
* $Revision: 1.19 $
* $Date: 2013/02/20 12:02:32 $
* $Revision: 1.18 $
*
*/

Expand Down
173 changes: 173 additions & 0 deletions Validation/EventGenerator/interface/VVVValidation.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
#ifndef VVVVALIDATION_H
#define VVVVALIDATION_H


// framework & common header files
#include "TLorentzVector.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/Run.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/InputTag.h"

#include "FWCore/MessageLogger/interface/MessageLogger.h"

//DQM services
#include "DQMServices/Core/interface/DQMStore.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "DQMServices/Core/interface/MonitorElement.h"

#include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
#include "HepMC/GenParticle.h"
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
#include "DataFormats/JetReco/interface/GenJetCollection.h"

#include "SimGeneral/HepPDTRecord/interface/ParticleDataTable.h"

#include "Validation/EventGenerator/interface/WeightManager.h"
class VVVValidation : public edm::EDAnalyzer
{
public:
explicit VVVValidation(const edm::ParameterSet&);
virtual ~VVVValidation();
virtual void beginJob();
virtual void endJob();
virtual void analyze(const edm::Event&, const edm::EventSetup&);
virtual void beginRun(const edm::Run&, const edm::EventSetup&);
virtual void endRun(const edm::Run&, const edm::EventSetup&);

bool matchParticles(const HepMC::GenParticle*&, const reco::GenParticle*&);
int getParentBarcode(HepMC::GenParticle* it);

private:

WeightManager _wmanager;

edm::InputTag hepmcCollection_;
edm::InputTag genparticleCollection_;
edm::InputTag genjetCollection_;
double matchPr_;
double _lepStatus;
double _motherStatus;

unsigned int verbosity_;

/// PDT table
edm::ESHandle<HepPDT::ParticleDataTable> fPDGTable ;

///ME's "container"
DQMStore *dbe;

MonitorElement *nEvt;

// Basic reco::GenParticle test

// Basci GenJets analysis
MonitorElement * mll;
MonitorElement * ptll;
MonitorElement * mlll;
MonitorElement * ptlll;
MonitorElement * mlllnununu;
MonitorElement * mtlllnununu;
MonitorElement * ptlllnununu;
MonitorElement * leading_l_pt ;
MonitorElement * subleading_l_pt ;
MonitorElement * subsubleading_l_pt;
MonitorElement * leading_l_eta ;
MonitorElement * subleading_l_eta ;
MonitorElement * subsubleading_l_eta;
MonitorElement *genJetMult;
MonitorElement *genJetEnergy;
MonitorElement *genJetPt;
MonitorElement *genJetEta;
MonitorElement *genJetPhi;
MonitorElement *genJetDeltaEtaMin;
MonitorElement *h_dr;
MonitorElement *genJetPto1;
MonitorElement *genJetPto30;
MonitorElement *genJetPto50;
MonitorElement *genJetPto100;
MonitorElement *genJetCentral;

MonitorElement *genJetTotPt;
MonitorElement *WW_TwoJEt_JetsM;

MonitorElement *h_l_jet_eta;
MonitorElement *h_l_jet_pt;
MonitorElement *h_sl_jet_eta;
MonitorElement *h_sl_jet_pt;
MonitorElement *h_ssl_jet_eta;
MonitorElement *h_ssl_jet_pt;

MonitorElement *h_mWplus ;
MonitorElement *h_phiWplus;
MonitorElement *h_ptWplus ;
MonitorElement *h_yWplus;

MonitorElement *h_mWminus;
MonitorElement *h_phiWminus;
MonitorElement *h_ptWminus;
MonitorElement *h_yWminus;

MonitorElement *h_mZ;
MonitorElement *h_phiZ;
MonitorElement *h_ptZ;
MonitorElement *h_yZ;
MonitorElement *h_mWplus_3b ;
MonitorElement *h_phiWplus_3b;
MonitorElement *h_ptWplus_3b ;
MonitorElement *h_yWplus_3b;

MonitorElement *h_mWminus_3b;
MonitorElement *h_phiWminus_3b;
MonitorElement *h_ptWminus_3b;
MonitorElement *h_yWminus_3b;

MonitorElement *h_mZ_3b;
MonitorElement *h_phiZ_3b;
MonitorElement *h_ptZ_3b;
MonitorElement *h_yZ_3b;

MonitorElement *h_mWW;
MonitorElement *h_phiWW;
MonitorElement *h_ptWW;
MonitorElement *h_yWW;

MonitorElement *h_mWZ;
MonitorElement *h_phiWZ;
MonitorElement *h_ptWZ;
MonitorElement *h_yWZ;

MonitorElement *h_mZZ;
MonitorElement *h_phiZZ;
MonitorElement *h_ptZZ;
MonitorElement *h_yZZ;

MonitorElement *h_mWWW;
MonitorElement *h_phiWWW;
MonitorElement *h_ptWWW;
MonitorElement *h_yWWW;

MonitorElement *h_mWWZ;
MonitorElement *h_phiWWZ;
MonitorElement *h_ptWWZ;
MonitorElement *h_yWWZ;

MonitorElement *h_mWZZ;
MonitorElement *h_phiWZZ;
MonitorElement *h_ptWZZ;
MonitorElement *h_yWZZ;

MonitorElement *h_mZZZ;
MonitorElement *h_phiZZZ;
MonitorElement *h_ptZZZ;
MonitorElement *h_yZZZ;


};

#endif
4 changes: 2 additions & 2 deletions Validation/EventGenerator/interface/WValidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* Class to fill Event Generator dqm monitor elements; works on HepMCProduct
*
* $Date: 2011/12/29 10:53:10 $
* $Revision: 1.3 $
* $Date: 2010/07/02 13:34:23 $
* $Revision: 1.2 $
*
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
*
* Class to fill dqm monitor elements from existing EDM file
*
* $Date: 2011/12/29 10:53:11 $
* $Revision: 1.3 $
* $Date: 2010/07/02 13:34:23 $
* $Revision: 1.2 $
*/

#include "Validation/EventGenerator/interface/BasicGenParticleValidation.h"
Expand Down
4 changes: 2 additions & 2 deletions Validation/EventGenerator/plugins/BasicHepMCValidation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
*
* Class to fill dqm monitor elements from existing EDM file
*
* $Date: 2011/12/29 10:53:11 $
* $Revision: 1.8 $
* $Date: 2011/10/30 09:16:22 $
* $Revision: 1.7 $
*/

#include "Validation/EventGenerator/interface/BasicHepMCValidation.h"
Expand Down
4 changes: 2 additions & 2 deletions Validation/EventGenerator/plugins/DrellYanValidation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
*
* Class to fill dqm monitor elements from existing EDM file
*
* $Date: 2011/12/29 10:53:11 $
* $Revision: 1.5 $
* $Date: 2011/01/24 18:27:40 $
* $Revision: 1.4 $
*/

#include "Validation/EventGenerator/interface/DrellYanValidation.h"
Expand Down
4 changes: 2 additions & 2 deletions Validation/EventGenerator/plugins/DuplicationChecker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
*
* Class to monitor duplication of events
*
* $Date: 2012/10/16 14:49:03 $
* $Revision: 1.4 $
* $Date: 2012/08/24 21:47:06 $
* $Revision: 1.3 $
*
*/

Expand Down
2 changes: 1 addition & 1 deletion Validation/EventGenerator/plugins/HiggsValidation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Class to fill dqm monitor elements from existing EDM file
*
* $Date: 2012/08/12 16:13:29 $
* $Date: 2012/06/25 14:51:48 $
* $Revision: 1.1 $
*/

Expand Down
Loading