CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
PhotonAnalyzer Class Reference

EgammaCoreTools. More...

#include <PhotonAnalyzer.h>

Inheritance diagram for PhotonAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void endJob ()
 
virtual void endRun (const edm::Run &, const edm::EventSetup &)
 
 PhotonAnalyzer (const edm::ParameterSet &)
 
virtual ~PhotonAnalyzer ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

void book2DHistoVector (std::vector< std::vector< MonitorElement * > > &toFill, std::string histoType, std::string histoName, std::string title, int xbin, double xmin, double xmax, int ybin=1, double ymin=1, double ymax=2)
 
void book3DHistoVector (std::vector< std::vector< std::vector< MonitorElement * > > > &toFill, std::string histoType, std::string histoName, std::string title, int xbin, double xmin, double xmax, int ybin=1, double ymin=1, double ymax=2)
 
MonitorElementbookHisto (std::string histoName, std::string title, int bin, double min, double max)
 
void fill2DHistoVector (std::vector< std::vector< MonitorElement * > > &histoVector, double x, int cut, int type)
 
void fill2DHistoVector (std::vector< std::vector< MonitorElement * > > &histoVector, double x, double y, int cut, int type)
 
void fill3DHistoVector (std::vector< std::vector< std::vector< MonitorElement * > > > &histoVector, double x, int cut, int type, int part)
 
void fill3DHistoVector (std::vector< std::vector< std::vector< MonitorElement * > > > &histoVector, double x, double y, int cut, int type, int part)
 
float phiNormalization (float &a)
 
bool photonSelection (const reco::PhotonRef &p)
 

Private Attributes

edm::EDGetTokenT
< edm::SortedCollection
< EcalRecHit,
edm::StrictWeakOrdering
< EcalRecHit > > > 
barrelRecHit_token_
 
std::stringstream currentFolder_
 
double cutStep_
 
DQMStoredbe_
 
edm::EDGetTokenT
< edm::SortedCollection
< EcalRecHit,
edm::StrictWeakOrdering
< EcalRecHit > > > 
endcapRecHit_token_
 
bool excludeBkgHistos_
 
std::string fName_
 
std::vector< std::vector
< MonitorElement * > > 
h_chHadIsoBarrel_
 
std::vector< std::vector
< MonitorElement * > > 
h_chHadIsoEndcap_
 
MonitorElementh_convEt_Loose_
 
MonitorElementh_convEt_Tight_
 
MonitorElementh_convEta_Loose_
 
MonitorElementh_convEta_Tight_
 
std::vector< std::vector
< MonitorElement * > > 
h_convVtxR_
 
std::vector< std::vector
< MonitorElement * > > 
h_convVtxRvsZ_
 
std::vector< std::vector
< MonitorElement * > > 
h_convVtxYvsX_
 
std::vector< std::vector
< MonitorElement * > > 
h_convVtxZ_
 
std::vector< std::vector
< MonitorElement * > > 
h_convVtxZEndcap_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_dCotTracks_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_dEtaTracksAtEcal_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_dPhiTracksAtEcal_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_dPhiTracksAtVtx_
 
std::vector< std::vector
< MonitorElement * > > 
h_e1x5VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_e1x5VsEta_
 
std::vector< std::vector
< MonitorElement * > > 
h_e2x5VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_e2x5VsEta_
 
std::vector< std::vector
< MonitorElement * > > 
h_ecalSum_
 
std::vector< std::vector
< MonitorElement * > > 
h_ecalSumEBarrel_
 
std::vector< std::vector
< MonitorElement * > > 
h_ecalSumEEndcap_
 
std::vector< std::vector
< MonitorElement * > > 
h_ecalSumVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_ecalSumVsEta_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_eOverPTracks_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_h1OverE_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_h2OverE_
 
std::vector< std::vector
< MonitorElement * > > 
h_hcalSum_
 
std::vector< std::vector
< MonitorElement * > > 
h_hcalSumEBarrel_
 
std::vector< std::vector
< MonitorElement * > > 
h_hcalSumEEndcap_
 
std::vector< std::vector
< MonitorElement * > > 
h_hcalSumVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_hcalSumVsEta_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_hOverE_
 
MonitorElementh_invMassAllPhotons_
 
MonitorElementh_invMassOneWithTracks_
 
MonitorElementh_invMassPhotonsEBarrel_
 
MonitorElementh_invMassPhotonsEEndcap_
 
MonitorElementh_invMassTwoWithTracks_
 
MonitorElementh_invMassZeroWithTracks_
 
std::vector< std::vector
< MonitorElement * > > 
h_maxEXtalOver3x3VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_maxEXtalOver3x3VsEta_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_nConv_
 
std::vector< std::vector
< MonitorElement * > > 
h_nHadIsoBarrel_
 
std::vector< std::vector
< MonitorElement * > > 
h_nHadIsoEndcap_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_nPho_
 
MonitorElementh_nRecoVtx_
 
std::vector< std::vector
< MonitorElement * > > 
h_nTrackIsolHollow_
 
std::vector< std::vector
< MonitorElement * > > 
h_nTrackIsolHollowVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_nTrackIsolHollowVsEta_
 
std::vector< std::vector
< MonitorElement * > > 
h_nTrackIsolSolid_
 
std::vector< std::vector
< MonitorElement * > > 
h_nTrackIsolSolidVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_nTrackIsolSolidVsEta_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_phoConvE_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_phoConvEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_phoConvEta_
 
std::vector< std::vector
< MonitorElement * > > 
h_phoConvEtaForEfficiency_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_phoConvPhi_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_phoConvPhiForEfficiency_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_phoConvR9_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_phoE_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_phoEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_phoEt_BadChannels_
 
MonitorElementh_phoEt_Loose_
 
MonitorElementh_phoEt_postHLT_
 
MonitorElementh_phoEt_preHLT_
 
MonitorElementh_phoEt_Tight_
 
std::vector< std::vector
< MonitorElement * > > 
h_phoEta_
 
std::vector< std::vector
< MonitorElement * > > 
h_phoEta_BadChannels_
 
MonitorElementh_phoEta_Loose_
 
MonitorElementh_phoEta_postHLT_
 
MonitorElementh_phoEta_preHLT_
 
MonitorElementh_phoEta_Tight_
 
MonitorElementh_phoEta_Vertex_
 
std::vector< std::vector
< MonitorElement * > > 
h_phoIsoBarrel_
 
std::vector< std::vector
< MonitorElement * > > 
h_phoIsoEndcap_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_phoPhi_
 
std::vector< std::vector
< MonitorElement * > > 
h_phoPhi_BadChannels_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_phoSigmaEoverE_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_phoSigmaIetaIeta_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_pOverETracks_
 
std::vector< std::vector
< MonitorElement * > > 
h_r1x5VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_r1x5VsEta_
 
std::vector< std::vector
< MonitorElement * > > 
h_r2x5VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_r2x5VsEta_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_r9_
 
std::vector< std::vector
< MonitorElement * > > 
h_r9VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_r9VsEta_
 
std::vector< std::vector
< MonitorElement * > > 
h_scEta_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
h_scPhi_
 
std::vector< std::vector
< MonitorElement * > > 
h_sigmaIetaIetaVsEta_
 
std::vector< std::vector
< MonitorElement * > > 
h_tkChi2_
 
std::vector< std::vector
< MonitorElement * > > 
h_trackPtSumHollow_
 
std::vector< std::vector
< MonitorElement * > > 
h_trackPtSumHollowVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_trackPtSumHollowVsEta_
 
std::vector< std::vector
< MonitorElement * > > 
h_trackPtSumSolid_
 
std::vector< std::vector
< MonitorElement * > > 
h_trackPtSumSolidVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
h_trackPtSumSolidVsEta_
 
std::vector< std::vector
< MonitorElement * > > 
h_vertexChi2Prob_
 
int histo_index_conversions_
 
int histo_index_efficiency_
 
int histo_index_invMass_
 
int histo_index_photons_
 
double invMassEtCut_
 
bool isHeavyIon_
 
int isolationStrength_
 
bool minimalSetOfHistos_
 
double minPhoEtCut_
 
int nEntry_
 
int nEvt_
 
int numberOfSteps_
 
edm::EDGetTokenT
< reco::VertexCollection
offline_pvToken_
 
std::string outputFileName_
 
std::vector< std::vector
< MonitorElement * > > 
p_dCotTracksVsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_e1x5VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_e1x5VsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_e2x5VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_e2x5VsEta_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
p_ecalSumVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_ecalSumVsEta_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
p_hcalSumVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_hcalSumVsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_hOverEVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_hOverEVsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_maxEXtalOver3x3VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_maxEXtalOver3x3VsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_nHitsVsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_nTrackIsolHollowVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_nTrackIsolHollowVsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_nTrackIsolSolidVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_nTrackIsolSolidVsEta_
 
std::vector< std::vector
< std::vector< MonitorElement * > > > 
p_phoSigmaEoverEvsNVtx_
 
std::vector< std::vector
< MonitorElement * > > 
p_r1x5VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_r1x5VsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_r2x5VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_r2x5VsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_r9VsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_r9VsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_sigmaIetaIetaVsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_tkChi2VsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_trackPtSumHollowVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_trackPtSumHollowVsEta_
 
std::vector< std::vector
< MonitorElement * > > 
p_trackPtSumSolidVsEt_
 
std::vector< std::vector
< MonitorElement * > > 
p_trackPtSumSolidVsEta_
 
edm::ParameterSet parameters_
 
std::vector< std::string > parts_
 
edm::EDGetTokenT< std::vector
< reco::Photon > > 
photon_token_
 
edm::EDGetTokenT
< edm::ValueMap< bool > > 
PhotonIDLoose_token_
 
edm::EDGetTokenT
< edm::ValueMap< bool > > 
PhotonIDTight_token_
 
double photonMaxEta_
 
unsigned int prescaleFactor_
 
bool standAlone_
 
MonitorElementtotalNumberOfHistos_conversionsFolder
 
MonitorElementtotalNumberOfHistos_efficiencyFolder
 
MonitorElementtotalNumberOfHistos_invMassFolder
 
MonitorElementtotalNumberOfHistos_photonsFolder
 
edm::EDGetTokenT
< trigger::TriggerEvent
triggerEvent_token_
 
std::vector< std::string > types_
 
bool useBinning_
 
bool useTriggerFiltering_
 
int verbosity_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

EgammaCoreTools.

$Id: PhotonAnalyzer authors: Nancy Marinelli, U. of Notre Dame, US Jamie Antonelli, U. of Notre Dame, US

Definition at line 104 of file PhotonAnalyzer.h.

Constructor & Destructor Documentation

PhotonAnalyzer::PhotonAnalyzer ( const edm::ParameterSet pset)
explicit

Definition at line 21 of file PhotonAnalyzer.cc.

References edm::ParameterSet::getParameter(), and edm::ParameterSet::getUntrackedParameter().

22 {
23 
24  fName_ = pset.getParameter<string>("analyzerName");
25  verbosity_ = pset.getUntrackedParameter<int>("Verbosity");
26 
27  prescaleFactor_ = pset.getUntrackedParameter<int>("prescaleFactor",1);
28 
29  photon_token_ = consumes<vector<reco::Photon> >(pset.getParameter<edm::InputTag>("phoProducer"));
30 
31  barrelRecHit_token_ = consumes<edm::SortedCollection<EcalRecHit,edm::StrictWeakOrdering<EcalRecHit> > >(pset.getParameter<edm::InputTag>("barrelRecHitProducer"));
32 
33  PhotonIDLoose_token_ = consumes<edm::ValueMap<bool> >(pset.getParameter<edm::InputTag>("photonIDLoose"));
34  PhotonIDTight_token_ = consumes<edm::ValueMap<bool> >(pset.getParameter<edm::InputTag>("photonIDTight"));
35 
36  endcapRecHit_token_ = consumes<edm::SortedCollection<EcalRecHit,edm::StrictWeakOrdering<EcalRecHit> > >(pset.getParameter<edm::InputTag>("endcapRecHitProducer"));
37 
38  triggerEvent_token_ = consumes<trigger::TriggerEvent>(pset.getParameter<edm::InputTag>("triggerEvent"));
39 
40  offline_pvToken_ = consumes<reco::VertexCollection>(pset.getUntrackedParameter<edm::InputTag>("offlinePV", edm::InputTag("offlinePrimaryVertices")));
41 
42 
43  minPhoEtCut_ = pset.getParameter<double>("minPhoEtCut");
44  photonMaxEta_ = pset.getParameter<double>("maxPhoEta");
45  invMassEtCut_ = pset.getParameter<double>("invMassEtCut");
46  cutStep_ = pset.getParameter<double>("cutStep");
47  numberOfSteps_ = pset.getParameter<int>("numberOfSteps");
48 
49  useBinning_ = pset.getParameter<bool>("useBinning");
50  useTriggerFiltering_ = pset.getParameter<bool>("useTriggerFiltering");
51 
52  minimalSetOfHistos_ = pset.getParameter<bool>("minimalSetOfHistos");
53  excludeBkgHistos_ = pset.getParameter<bool>("excludeBkgHistos");
54 
55  standAlone_ = pset.getParameter<bool>("standAlone");
56  outputFileName_ = pset.getParameter<string>("OutputFileName");
57 
58  isolationStrength_ = pset.getParameter<int>("isolationStrength");
59 
60  isHeavyIon_ = pset.getUntrackedParameter<bool>("isHeavyIon",false);
61 
62  parameters_ = pset;
63 
68 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< reco::VertexCollection > offline_pvToken_
edm::EDGetTokenT< edm::SortedCollection< EcalRecHit, edm::StrictWeakOrdering< EcalRecHit > > > barrelRecHit_token_
edm::EDGetTokenT< edm::ValueMap< bool > > PhotonIDLoose_token_
int histo_index_conversions_
edm::EDGetTokenT< edm::ValueMap< bool > > PhotonIDTight_token_
std::string fName_
unsigned int prescaleFactor_
std::string outputFileName_
edm::EDGetTokenT< edm::SortedCollection< EcalRecHit, edm::StrictWeakOrdering< EcalRecHit > > > endcapRecHit_token_
edm::EDGetTokenT< trigger::TriggerEvent > triggerEvent_token_
edm::ParameterSet parameters_
edm::EDGetTokenT< std::vector< reco::Photon > > photon_token_
PhotonAnalyzer::~PhotonAnalyzer ( )
virtual

Definition at line 72 of file PhotonAnalyzer.cc.

72 {}

Member Function Documentation

void PhotonAnalyzer::analyze ( const edm::Event e,
const edm::EventSetup esup 
)
virtual

End loop over Reco photons

Implements edm::EDAnalyzer.

Definition at line 451 of file PhotonAnalyzer.cc.

References edm::SortedCollection< T, SORT >::begin(), ChiSquaredProbability(), conversions_cfi::conversions, GOODCOLL_filter_cfg::cut, deltaR(), reco::deltaR(), deltaRMax, edm::SortedCollection< T, SORT >::end(), HcalObjRepresent::Fill(), edm::Event::getByToken(), i, edm::EventBase::id(), edm::Ref< C, T, F >::isNonnull(), edm::HandleBase::isValid(), diffTwoXMLs::label, edm::Handle< T >::product(), hitfit::scalar(), edm::RefVector< C, T, F >::size(), python.multivaluedict::sort(), mathSSE::sqrt(), testEve_cfg::tracks, and funct::true.

452 {
453  using namespace edm;
454 
455  if (nEvt_% prescaleFactor_ ) return;
456  nEvt_++;
457  LogInfo(fName_) << "PhotonAnalyzer Analyzing event number: " << e.id() << " Global Counter " << nEvt_ <<"\n";
458 
459  // Get the trigger results
460  bool validTriggerEvent=true;
461  edm::Handle<trigger::TriggerEvent> triggerEventHandle;
462  trigger::TriggerEvent triggerEvent;
463  e.getByToken(triggerEvent_token_,triggerEventHandle);
464  if(!triggerEventHandle.isValid()) {
465  edm::LogInfo(fName_) << "Error! Can't get the product: triggerEvent_" << endl;
466  validTriggerEvent=false;
467  }
468  if(validTriggerEvent) triggerEvent = *(triggerEventHandle.product());
469 
470  // Get the reconstructed photons
471  // bool validPhotons=true;
472  Handle<reco::PhotonCollection> photonHandle;
473  reco::PhotonCollection photonCollection;
474  e.getByToken(photon_token_ , photonHandle);
475  if ( !photonHandle.isValid()) {
476  edm::LogInfo(fName_) << "Error! Can't get the product: photon_token_" << endl;
477  // validPhotons=false;
478  }
479  // if(validPhotons) photonCollection = *(photonHandle.product());
480 
481  // Get the PhotonId objects
482  bool validloosePhotonID=true;
483  Handle<edm::ValueMap<bool> > loosePhotonFlag;
484  edm::ValueMap<bool> loosePhotonID;
485  e.getByToken(PhotonIDLoose_token_, loosePhotonFlag);
486  if ( !loosePhotonFlag.isValid()) {
487  edm::LogInfo(fName_) << "Error! Can't get the product: PhotonIDLoose_token_" << endl;
488  validloosePhotonID=false;
489  }
490  if (validloosePhotonID) loosePhotonID = *(loosePhotonFlag.product());
491 
492  bool validtightPhotonID=true;
493  Handle<edm::ValueMap<bool> > tightPhotonFlag;
494  edm::ValueMap<bool> tightPhotonID;
495  e.getByToken(PhotonIDTight_token_, tightPhotonFlag);
496  if ( !tightPhotonFlag.isValid()) {
497  edm::LogInfo(fName_) << "Error! Can't get the product: PhotonIDTight_token_" << endl;
498  validtightPhotonID=false;
499  }
500  if (validtightPhotonID) tightPhotonID = *(tightPhotonFlag.product());
501 
502 
504  if ( !isHeavyIon_) {
505  e.getByToken(offline_pvToken_, vtxH);
506  h_nRecoVtx_ ->Fill (float(vtxH->size()));
507  }
508 
509  // Create array to hold #photons/event information
510  int nPho[100][3][3];
511 
512  for (int cut=0; cut!=100; ++cut){
513  for (unsigned int type=0; type!=types_.size(); ++type){
514  for (unsigned int part=0; part!=parts_.size(); ++part){
515  nPho[cut][type][part] = 0;
516  }
517  }
518  }
519  // Create array to hold #conversions/event information
520  int nConv[100][3][3];
521 
522  for (int cut=0; cut!=100; ++cut){
523  for (unsigned int type=0; type!=types_.size(); ++type){
524  for (unsigned int part=0; part!=parts_.size(); ++part){
525  nConv[cut][type][part] = 0;
526  }
527  }
528  }
529 
530 
531 
532  //Prepare list of photon-related HLT filter names
533 
534  vector<int> Keys;
535 
536  for(uint filterIndex=0;filterIndex<triggerEvent.sizeFilters();++filterIndex){ //loop over all trigger filters in event (i.e. filters passed)
537 
538  string label = triggerEvent.filterTag(filterIndex).label();
539 
540  if(label.find( "Photon" ) != string::npos ) { //get photon-related filters
541 
542  for(uint filterKeyIndex=0;filterKeyIndex<triggerEvent.filterKeys(filterIndex).size();++filterKeyIndex){ //loop over keys to objects passing this filter
543  Keys.push_back(triggerEvent.filterKeys(filterIndex)[filterKeyIndex]); //add keys to a vector for later reference
544  }
545 
546  }
547 
548  }
549 
550  // sort Keys vector in ascending order
551  // and erases duplicate entries from the vector
552  sort(Keys.begin(),Keys.end());
553  for ( uint i=0 ; i<Keys.size() ; )
554  {
555  if (i!=(Keys.size()-1))
556  {
557  if (Keys[i]==Keys[i+1]) Keys.erase(Keys.begin()+i+1) ;
558  else ++i ;
559  }
560  else ++i ;
561  }
562 
563  //We now have a vector of unique keys to TriggerObjects passing a photon-related filter
564 
565  // old int photonCounter = 0;
566 
568  for(unsigned int iPho=0; iPho < photonHandle->size(); iPho++) {
569  reco::PhotonRef aPho(reco::PhotonRef(photonHandle, iPho));
570  // for( reco::PhotonCollection::const_iterator iPho = photonCollection.begin(); iPho != photonCollection.end(); iPho++) {
571 
572 
573  //for HLT efficiency plots
574 
575  h_phoEta_preHLT_->Fill(aPho->eta());
576  h_phoEt_preHLT_->Fill( aPho->et());
577 
578 
579  double deltaR=1000.;
580  double deltaRMin=1000.;
581  double deltaRMax=0.05;//sets deltaR threshold for matching photons to trigger objects
582 
583 
584  for (vector<int>::const_iterator objectKey=Keys.begin();objectKey!=Keys.end();objectKey++){ //loop over keys to objects that fired photon triggers
585 
586  deltaR = reco::deltaR(triggerEvent.getObjects()[(*objectKey)].eta(),triggerEvent.getObjects()[(*objectKey)].phi(),aPho->superCluster()->eta(),aPho->superCluster()->phi());
587  if(deltaR < deltaRMin) deltaRMin = deltaR;
588 
589  }
590 
591  if(deltaRMin > deltaRMax) { //photon fails delta R cut
592  if(useTriggerFiltering_) continue; //throw away photons that haven't passed any photon filters
593  }
594 
595  if(deltaRMin <= deltaRMax) { //photon passes delta R cut
596  h_phoEta_postHLT_->Fill(aPho->eta() );
597  h_phoEt_postHLT_->Fill( aPho->et() );
598  }
599 
600  // if (aPho->et() < minPhoEtCut_) continue;
601  bool isLoosePhoton(false), isTightPhoton(false);
602  if ( photonSelection (aPho) ) isLoosePhoton=true ;
603 
604 
605  nEntry_++;
606 
607  // old edm::Ref<reco::PhotonCollection> photonref(photonHandle, photonCounter);
608  // old photonCounter++;
609 
610 
611  // old if ( !isHeavyIon_ ) {
612  // isLoosePhoton = (loosePhotonID)[photonref];
613  // isTightPhoton = (tightPhotonID)[photonref];
614  // }
615 
616 
617  //find out which part of the Ecal contains the photon
618  bool phoIsInBarrel=false;
619  bool phoIsInEndcap=false;
620  float etaPho = aPho->superCluster()->eta();
621  if ( fabs(etaPho) < 1.479 )
622  phoIsInBarrel=true;
623  else {
624  phoIsInEndcap=true;
625  }
626 
627  int part = 0;
628  if ( phoIsInBarrel ) part = 1;
629  if ( phoIsInEndcap ) part = 2;
630 
632  bool isIsolated=false;
633  if ( isolationStrength_ == 0) isIsolated = isLoosePhoton;
634  if ( isolationStrength_ == 1) isIsolated = isTightPhoton;
635 
636  int type=0;
637  if ( isIsolated ) type=1;
638  if ( !excludeBkgHistos_ && !isIsolated ) type=2;
639 
640 
641  //get rechit collection containing this photon
642  bool validEcalRecHits=true;
643  edm::Handle<EcalRecHitCollection> ecalRecHitHandle;
644  EcalRecHitCollection ecalRecHitCollection;
645  if ( phoIsInBarrel ) {
646  // Get handle to barrel rec hits
647  e.getByToken(barrelRecHit_token_, ecalRecHitHandle);
648  if (!ecalRecHitHandle.isValid()) {
649  edm::LogError(fName_) << "Error! Can't get the product: barrelRecHit_token_";
650  validEcalRecHits=false;
651  }
652  }
653  else if ( phoIsInEndcap ) {
654  // Get handle to endcap rec hits
655  e.getByToken(endcapRecHit_token_, ecalRecHitHandle);
656  if (!ecalRecHitHandle.isValid()) {
657  edm::LogError(fName_) << "Error! Can't get the product: endcapRecHit_token";
658  validEcalRecHits=false;
659  }
660  }
661  if (validEcalRecHits) ecalRecHitCollection = *(ecalRecHitHandle.product());
662 
663 
664  //if (aPho->isEBEEGap()) continue; //cut out gap photons
665 
666 
667  //filling histograms to make isolation efficiencies
668  if(isLoosePhoton){
669  h_phoEta_Loose_->Fill(aPho->eta());
670  h_phoEt_Loose_->Fill( aPho->et() );
671  }
672  if(isTightPhoton){
673  h_phoEta_Tight_->Fill(aPho->eta());
674  h_phoEt_Tight_->Fill( aPho->et() );
675  }
676 
677 
678 
679  for (int cut = 0; cut !=numberOfSteps_; ++cut) { //loop over different transverse energy cuts
680  double Et = aPho->et();
681  bool passesCuts = false;
682 
683  //sorting the photon into the right Et-dependant folder
684  if ( useBinning_ && Et > (cut+1)*cutStep_ && ( (Et < (cut+2)*cutStep_) | (cut == numberOfSteps_-1) ) ){
685  passesCuts = true;
686  }
687  else if ( !useBinning_ && Et > (cut+1)*cutStep_ ){
688  passesCuts = true;
689  }
690 
691  if (passesCuts){
692 
693  //filling isolation variable histograms
694 
695  //tracker isolation variables
696  fill2DHistoVector(h_nTrackIsolSolid_, aPho->nTrkSolidConeDR04(), cut,type);
697  fill2DHistoVector(h_nTrackIsolHollow_,aPho->nTrkHollowConeDR04(),cut,type);
698 
699  if (standAlone_) fill2DHistoVector(h_nTrackIsolSolidVsEta_, aPho->eta(),aPho->nTrkSolidConeDR04(), cut,type);
700  fill2DHistoVector(p_nTrackIsolSolidVsEta_, aPho->eta(),aPho->nTrkSolidConeDR04(), cut,type);
701  if (standAlone_) fill2DHistoVector(h_nTrackIsolHollowVsEta_,aPho->eta(),aPho->nTrkHollowConeDR04(),cut,type);
702  fill2DHistoVector(p_nTrackIsolHollowVsEta_,aPho->eta(),aPho->nTrkHollowConeDR04(),cut,type);
703 
704  if (standAlone_) fill2DHistoVector(h_nTrackIsolSolidVsEt_, aPho->et(), aPho->nTrkSolidConeDR04(), cut,type);
705  fill2DHistoVector(p_nTrackIsolSolidVsEt_, aPho->et(), aPho->nTrkSolidConeDR04(), cut,type);
706  if (standAlone_) fill2DHistoVector(h_nTrackIsolHollowVsEt_, aPho->et(), aPho->nTrkHollowConeDR04(),cut,type);
707  fill2DHistoVector(p_nTrackIsolHollowVsEt_, aPho->et(), aPho->nTrkHollowConeDR04(),cut,type);
708 
710  fill2DHistoVector(h_trackPtSumSolid_, aPho->trkSumPtSolidConeDR04(),cut,type);
711  fill2DHistoVector(h_trackPtSumHollow_,aPho->trkSumPtSolidConeDR04(),cut,type);
712 
713  if (standAlone_) fill2DHistoVector(h_trackPtSumSolidVsEta_, aPho->eta(),aPho->trkSumPtSolidConeDR04(), cut,type);
714  fill2DHistoVector(p_trackPtSumSolidVsEta_, aPho->eta(),aPho->trkSumPtSolidConeDR04(), cut,type);
715  if (standAlone_) fill2DHistoVector(h_trackPtSumHollowVsEta_,aPho->eta(),aPho->trkSumPtHollowConeDR04(),cut,type);
716  fill2DHistoVector(p_trackPtSumHollowVsEta_,aPho->eta(),aPho->trkSumPtHollowConeDR04(),cut,type);
717 
718  if (standAlone_) fill2DHistoVector(h_trackPtSumSolidVsEt_, aPho->et(), aPho->trkSumPtSolidConeDR04(), cut,type);
719  fill2DHistoVector(p_trackPtSumSolidVsEt_, aPho->et(), aPho->trkSumPtSolidConeDR04(), cut,type);
720  if (standAlone_) fill2DHistoVector(h_trackPtSumHollowVsEt_, aPho->et(), aPho->trkSumPtHollowConeDR04(),cut,type);
721  fill2DHistoVector(p_trackPtSumHollowVsEt_, aPho->et(), aPho->trkSumPtHollowConeDR04(),cut,type);
722  //calorimeter isolation variables
723 
724  fill2DHistoVector(h_ecalSum_,aPho->ecalRecHitSumEtConeDR04(),cut,type);
725  if(aPho->isEB()){fill2DHistoVector(h_ecalSumEBarrel_,aPho->ecalRecHitSumEtConeDR04(),cut,type);}
726  if(aPho->isEE()){fill2DHistoVector(h_ecalSumEEndcap_,aPho->ecalRecHitSumEtConeDR04(),cut,type);}
727  if (standAlone_) fill2DHistoVector(h_ecalSumVsEta_,aPho->eta(),aPho->ecalRecHitSumEtConeDR04(),cut,type);
728  fill2DHistoVector(p_ecalSumVsEta_,aPho->eta(),aPho->ecalRecHitSumEtConeDR04(),cut,type);
729  if (standAlone_) fill2DHistoVector(h_ecalSumVsEt_, aPho->et(), aPho->ecalRecHitSumEtConeDR04(),cut,type);
730  fill3DHistoVector(p_ecalSumVsEt_, aPho->et(), aPho->ecalRecHitSumEtConeDR04(),cut,type,part);
731 
733 
734  fill2DHistoVector(h_hcalSum_,aPho->hcalTowerSumEtConeDR04(),cut,type);
735  if(aPho->isEB()){fill2DHistoVector(h_hcalSumEBarrel_,aPho->hcalTowerSumEtConeDR04(),cut,type);}
736  if(aPho->isEE()){fill2DHistoVector(h_hcalSumEEndcap_,aPho->hcalTowerSumEtConeDR04(),cut,type);}
737  if (standAlone_) fill2DHistoVector(h_hcalSumVsEta_,aPho->eta(),aPho->hcalTowerSumEtConeDR04(),cut,type);
738  fill2DHistoVector(p_hcalSumVsEta_,aPho->eta(),aPho->hcalTowerSumEtConeDR04(),cut,type);
739  if (standAlone_) fill2DHistoVector(h_hcalSumVsEt_, aPho->et(), aPho->hcalTowerSumEtConeDR04(),cut,type);
740  fill3DHistoVector(p_hcalSumVsEt_, aPho->et(), aPho->hcalTowerSumEtConeDR04(),cut,type,part);
741 
742  fill3DHistoVector(h_hOverE_,aPho->hadronicOverEm(),cut,type,part);
743  fill2DHistoVector(p_hOverEVsEta_,aPho->eta(),aPho->hadronicOverEm(),cut,type);
744  fill2DHistoVector(p_hOverEVsEt_, aPho->et(), aPho->hadronicOverEm(),cut,type);
745 
746  fill3DHistoVector(h_h1OverE_,aPho->hadronicDepth1OverEm(),cut,type,part);
747  fill3DHistoVector(h_h2OverE_,aPho->hadronicDepth2OverEm(),cut,type,part);
748 
749 
750  // filling pf isolation variables
751  if(aPho->isEB()) {
752  fill2DHistoVector( h_phoIsoBarrel_, aPho->photonIso(),cut,type);
753  fill2DHistoVector( h_chHadIsoBarrel_, aPho->chargedHadronIso(),cut,type);
754  fill2DHistoVector( h_nHadIsoBarrel_, aPho->neutralHadronIso(),cut,type);
755  }
756  if(aPho->isEE()) {
757  fill2DHistoVector( h_phoIsoEndcap_, aPho->photonIso(),cut,type);
758  fill2DHistoVector( h_chHadIsoEndcap_, aPho->chargedHadronIso(),cut,type);
759  fill2DHistoVector( h_nHadIsoEndcap_, aPho->neutralHadronIso(),cut,type);
760  }
761 
762 
763  //filling photon histograms
764 
765  nPho[cut][0][0]++;
766  nPho[cut][0][part]++;
767  nPho[cut][type][0]++;
768  nPho[cut][type][part]++;
769 
770  //energy variables
771 
772  fill3DHistoVector(h_phoE_, aPho->energy(),cut,type,part);
773  fill3DHistoVector(h_phoSigmaEoverE_, aPho->getCorrectedEnergyError(aPho->getCandidateP4type())/aPho->energy(),cut,type,part);
774 
775  if ( !isHeavyIon_) fill3DHistoVector(p_phoSigmaEoverEvsNVtx_, float(vtxH->size()), aPho->getCorrectedEnergyError(aPho->getCandidateP4type())/aPho->energy(),cut,type,part);
776 
777  fill3DHistoVector(h_phoEt_,aPho->et(), cut,type,part);
778 
779  //geometrical variables
780 
781  fill2DHistoVector(h_phoEta_,aPho->eta(),cut,type);
782  fill2DHistoVector(h_scEta_, aPho->superCluster()->eta(),cut,type);
783 
784  fill3DHistoVector(h_phoPhi_,aPho->phi(),cut,type,part);
785  fill3DHistoVector(h_scPhi_, aPho->superCluster()->phi(),cut,type,part);
786 
787  //shower shape variables
788 
789  fill3DHistoVector(h_r9_,aPho->r9(),cut,type,part);
790  if (standAlone_) fill2DHistoVector(h_r9VsEta_,aPho->eta(),aPho->r9(),cut,type);
791  fill2DHistoVector(p_r9VsEta_,aPho->eta(),aPho->r9(),cut,type);
792  if (standAlone_) fill2DHistoVector(h_r9VsEt_, aPho->et(), aPho->r9(),cut,type);
793  fill2DHistoVector(p_r9VsEt_, aPho->et(), aPho->r9(),cut,type);
794 
795  if (standAlone_) fill2DHistoVector(h_e1x5VsEta_,aPho->eta(),aPho->e1x5(),cut,type);
796  fill2DHistoVector(p_e1x5VsEta_,aPho->eta(),aPho->e1x5(),cut,type);
797  if (standAlone_) fill2DHistoVector(h_e1x5VsEt_, aPho->et(), aPho->e1x5(),cut,type);
798  fill2DHistoVector(p_e1x5VsEt_, aPho->et(), aPho->e1x5(),cut,type);
799 
800  if (standAlone_) fill2DHistoVector(h_e2x5VsEta_,aPho->eta(),aPho->e2x5(),cut,type);
801  fill2DHistoVector(p_e2x5VsEta_,aPho->eta(),aPho->e2x5(),cut,type);
802  if (standAlone_) fill2DHistoVector(h_e2x5VsEt_, aPho->et(), aPho->e2x5(),cut,type);
803  fill2DHistoVector(p_e2x5VsEt_, aPho->et(), aPho->e2x5(),cut,type);
804 
805  if (standAlone_) fill2DHistoVector(h_maxEXtalOver3x3VsEta_,aPho->eta(),aPho->maxEnergyXtal()/aPho->e3x3(),cut,type);
806  fill2DHistoVector(p_maxEXtalOver3x3VsEta_,aPho->eta(),aPho->maxEnergyXtal()/aPho->e3x3(),cut,type);
807  if (standAlone_) fill2DHistoVector(h_maxEXtalOver3x3VsEt_, aPho->et(), aPho->maxEnergyXtal()/aPho->e3x3(),cut,type);
808  fill2DHistoVector(p_maxEXtalOver3x3VsEt_, aPho->et(), aPho->maxEnergyXtal()/aPho->e3x3(),cut,type);
809 
810 
811  if (standAlone_) fill2DHistoVector(h_r1x5VsEta_,aPho->eta(),aPho->r1x5(),cut,type);
812  fill2DHistoVector(p_r1x5VsEta_,aPho->eta(),aPho->r1x5(),cut,type);
813  if (standAlone_) fill2DHistoVector(h_r1x5VsEt_, aPho->et(), aPho->r1x5(),cut,type);
814  fill2DHistoVector(p_r1x5VsEt_, aPho->et(), aPho->r1x5(),cut,type);
815 
816  if (standAlone_) fill2DHistoVector(h_r2x5VsEta_,aPho->eta(),aPho->r2x5(),cut,type);
817  fill2DHistoVector(p_r2x5VsEta_,aPho->eta(),aPho->r2x5(),cut,type);
818  if (standAlone_) fill2DHistoVector(h_r2x5VsEt_, aPho->et(), aPho->r2x5(),cut,type);
819  fill2DHistoVector(p_r2x5VsEt_, aPho->et(), aPho->r2x5(),cut,type);
820 
821  fill3DHistoVector(h_phoSigmaIetaIeta_,aPho->sigmaIetaIeta(),cut,type,part);
822  if (standAlone_) fill2DHistoVector(h_sigmaIetaIetaVsEta_,aPho->eta(),aPho->sigmaIetaIeta(),cut,type);
823  fill2DHistoVector(p_sigmaIetaIetaVsEta_,aPho->eta(),aPho->sigmaIetaIeta(),cut,type);
824 
825 
826 
827  //filling histograms for photons containing a bad ECAL channel
828  bool atLeastOneDeadChannel=false;
829  for(reco::CaloCluster_iterator bcIt = aPho->superCluster()->clustersBegin();bcIt != aPho->superCluster()->clustersEnd(); ++bcIt) { //loop over basic clusters in SC
830  for(vector< pair<DetId, float> >::const_iterator rhIt = (*bcIt)->hitsAndFractions().begin();rhIt != (*bcIt)->hitsAndFractions().end(); ++rhIt) { //loop over rec hits in basic cluster
831 
832  for(EcalRecHitCollection::const_iterator it = ecalRecHitCollection.begin(); it != ecalRecHitCollection.end(); ++it) { //loop over all rec hits to find the right ones
833  if (rhIt->first == (*it).id() ) { //found the matching rechit
834  if ( (*it).recoFlag() == 9 ) { //has a bad channel
835  atLeastOneDeadChannel=true;
836  break;
837  }
838  }
839  }
840  }
841  }
842  if ( atLeastOneDeadChannel ) {
846  }
847 
848 
849  // filling conversion-related histograms
850  if(aPho->hasConversionTracks()){
851  nConv[cut][0][0]++;
852  nConv[cut][0][part]++;
853  nConv[cut][type][0]++;
854  nConv[cut][type][part]++;
855  }
856 
857  //loop over conversions (don't forget, we're still inside the photon loop,
858  // i.e. these are all the conversions for this ONE photon, not for all the photons in the event)
859  reco::ConversionRefVector conversions = aPho->conversions();
860  for (unsigned int iConv=0; iConv<conversions.size(); iConv++) {
861 
862  reco::ConversionRef aConv=conversions[iConv];
863 
864  if ( aConv->nTracks() <2 ) continue;
865 
866  //fill histogram for denominator of vertex reconstruction efficiency plot
867  if(cut==0) h_phoEta_Vertex_->Fill(aConv->refittedPairMomentum().eta());
868 
869  if ( !(aConv->conversionVertex().isValid()) ) continue;
870 
871  float chi2Prob = ChiSquaredProbability( aConv->conversionVertex().chi2(), aConv->conversionVertex().ndof() );
872 
873  if(chi2Prob<0.0005) continue;
874 
875  fill2DHistoVector(h_vertexChi2Prob_,chi2Prob,cut,type);
876 
877 
878 
879  fill3DHistoVector(h_phoConvE_, aPho->energy(),cut,type,part);
882 
883  if (cut==0 && isLoosePhoton){
884  h_convEta_Loose_->Fill(aPho->eta());
885  h_convEt_Loose_->Fill( aPho->et() );
886  }
887  if (cut==0 && isTightPhoton){
888  h_convEta_Tight_->Fill(aPho->eta());
889  h_convEt_Tight_->Fill( aPho->et() );
890  }
891 
892  fill2DHistoVector(h_phoConvEta_,aConv->refittedPairMomentum().eta(),cut,type);
893  fill3DHistoVector(h_phoConvPhi_,aConv->refittedPairMomentum().phi(),cut,type,part);
894 
895 
896  //we use the photon position because we'll be dividing it by a photon histogram (not a conversion histogram)
899 
900 
901  //vertex histograms
902  double convR= sqrt(aConv->conversionVertex().position().perp2());
903  double scalar = aConv->conversionVertex().position().x()*aConv->refittedPairMomentum().x() + aConv->conversionVertex().position().y()*aConv->refittedPairMomentum().y();
904  if ( scalar < 0 ) convR= -convR;
905 
906  fill2DHistoVector(h_convVtxRvsZ_,aConv->conversionVertex().position().z(), convR,cut,type);//trying to "see" R-Z view of tracker
907  fill2DHistoVector(h_convVtxZ_,aConv->conversionVertex().position().z(), cut,type);
908 
909 
910  if( fabs(aPho->eta()) > 1.5){//trying to "see" tracker endcaps
911  fill2DHistoVector(h_convVtxZEndcap_,aConv->conversionVertex().position().z(), cut,type);
912  }
913  else if(fabs(aPho->eta()) < 1){//trying to "see" tracker barrel
914  fill2DHistoVector(h_convVtxR_,convR,cut,type);
915  fill2DHistoVector(h_convVtxYvsX_,aConv->conversionVertex().position().x(),aConv->conversionVertex().position().y(),cut,type);
916  }
917 
918 
919  const std::vector<edm::RefToBase<reco::Track> > tracks = aConv->tracks();
920 
921 
922  for (unsigned int i=0; i<tracks.size(); i++) {
923  fill2DHistoVector(h_tkChi2_,tracks[i]->normalizedChi2(),cut,type);
924  fill2DHistoVector(p_tkChi2VsEta_,aPho->eta(),tracks[i]->normalizedChi2(),cut,type);
925  fill2DHistoVector(p_dCotTracksVsEta_,aPho->eta(),aConv->pairCotThetaSeparation(),cut,type);
926  fill2DHistoVector(p_nHitsVsEta_,aPho->eta(),float(tracks[i]->numberOfValidHits()),cut,type);
927  }
928 
929  //calculating delta eta and delta phi of the two tracks
930 
931  float DPhiTracksAtVtx = -99;
932  float dPhiTracksAtEcal= -99;
933  float dEtaTracksAtEcal= -99;
934 
935  float phiTk1= aConv->tracksPin()[0].phi();
936  float phiTk2= aConv->tracksPin()[1].phi();
937  DPhiTracksAtVtx = phiTk1-phiTk2;
938  DPhiTracksAtVtx = phiNormalization( DPhiTracksAtVtx );
939 
940  if (aConv->bcMatchingWithTracks().size() > 0 && aConv->bcMatchingWithTracks()[0].isNonnull() && aConv->bcMatchingWithTracks()[1].isNonnull() ) {
941  float recoPhi1 = aConv->ecalImpactPosition()[0].phi();
942  float recoPhi2 = aConv->ecalImpactPosition()[1].phi();
943  float recoEta1 = aConv->ecalImpactPosition()[0].eta();
944  float recoEta2 = aConv->ecalImpactPosition()[1].eta();
945 
946  recoPhi1 = phiNormalization(recoPhi1);
947  recoPhi2 = phiNormalization(recoPhi2);
948 
949  dPhiTracksAtEcal = recoPhi1 -recoPhi2;
950  dPhiTracksAtEcal = phiNormalization( dPhiTracksAtEcal );
951  dEtaTracksAtEcal = recoEta1 -recoEta2;
952 
953  }
954 
955 
956  fill3DHistoVector(h_dPhiTracksAtVtx_,DPhiTracksAtVtx,cut,type,part);
957  fill3DHistoVector(h_dPhiTracksAtEcal_,fabs(dPhiTracksAtEcal),cut,type,part);
958  fill3DHistoVector(h_dEtaTracksAtEcal_, dEtaTracksAtEcal,cut,type,part);
959  fill3DHistoVector(h_eOverPTracks_,aConv->EoverPrefittedTracks(),cut,type,part);
960  fill3DHistoVector(h_pOverETracks_,1./aConv->EoverPrefittedTracks(),cut,type,part);
961  fill3DHistoVector(h_dCotTracks_,aConv->pairCotThetaSeparation(),cut,type,part);
962 
963  }//end loop over conversions
964 
965  }//end loop over photons passing cuts
966  }//end loop over transverse energy cuts
967 
968 
969 
970 
971 
972  //make invariant mass plots
973 
974  if (isIsolated && aPho->et()>=invMassEtCut_){
975  for(unsigned int iPho2=iPho+1; iPho2 < photonHandle->size(); iPho2++) {
976  reco::PhotonRef aPho2(reco::PhotonRef(photonHandle, iPho2));
977 
978  // for (reco::PhotonCollection::const_iterator iPho2=iPho+1; iPho2!=photonCollection.end(); iPho2++){
979 
980  // edm::Ref<reco::PhotonCollection> photonref2(photonHandle, photonCounter); //note: it's correct to use photonCounter and not photonCounter+1
981  //since it has already been incremented earlier
982 
983  bool isTightPhoton2(false), isLoosePhoton2(false);
984  if ( photonSelection (aPho2) ) isLoosePhoton2=true;
985 
986  // Old if ( !isHeavyIon_ ) {
987  // isTightPhoton2 = (tightPhotonID)[aPho2];
988  // isLoosePhoton2 = (loosePhotonID)[aPho2];
989  // }
990 
991  bool isIsolated2=false;
992  if ( isolationStrength_ == 0) isIsolated2 = isLoosePhoton2;
993  if ( isolationStrength_ == 1) isIsolated2 = isTightPhoton2;
994 
995  reco::ConversionRefVector conversions = aPho->conversions();
996  reco::ConversionRefVector conversions2 = aPho2->conversions();
997 
998  if(isIsolated2 && aPho2->et()>=invMassEtCut_){
999 
1000  math::XYZTLorentzVector p12 = aPho->p4()+aPho2->p4();
1001  float gamgamMass2 = p12.Dot(p12);
1002 
1003 
1004  h_invMassAllPhotons_ -> Fill(sqrt( gamgamMass2 ));
1005  if(aPho->isEB() && aPho2->isEB()){h_invMassPhotonsEBarrel_ -> Fill(sqrt( gamgamMass2 ));}
1006  if(aPho->isEE() || aPho2->isEE()){h_invMassPhotonsEEndcap_ -> Fill(sqrt( gamgamMass2 ));}
1007 
1008  if(conversions.size()!=0 && conversions[0]->nTracks() >= 2){
1009  if(conversions2.size()!=0 && conversions2[0]->nTracks() >= 2) h_invMassTwoWithTracks_ -> Fill(sqrt( gamgamMass2 ));
1010  else h_invMassOneWithTracks_ -> Fill(sqrt( gamgamMass2 ));
1011  }
1012  else if(conversions2.size()!=0 && conversions2[0]->nTracks() >= 2) h_invMassOneWithTracks_ -> Fill(sqrt( gamgamMass2 ));
1013  else h_invMassZeroWithTracks_ -> Fill(sqrt( gamgamMass2 ));
1014  }
1015 
1016  }
1017 
1018  }
1019 
1020 
1021 
1022  }
1023 
1024 
1025  //filling number of photons/conversions per event histograms
1026  for (int cut = 0; cut !=numberOfSteps_; ++cut) {
1027  for(uint type=0;type!=types_.size();++type){
1028  for(uint part=0;part!=parts_.size();++part){
1029  h_nPho_[cut][type][part]-> Fill (float(nPho[cut][type][part]));
1030  h_nConv_[cut][type][part]-> Fill (float(nConv[cut][type][part]));
1031  }
1032  }
1033  }
1034 
1035 }//End of Analyze method
std::vector< std::vector< MonitorElement * > > h_sigmaIetaIetaVsEta_
type
Definition: HCALResponse.h:21
MonitorElement * h_invMassOneWithTracks_
std::vector< std::vector< std::vector< MonitorElement * > > > h_dEtaTracksAtEcal_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoEt_
int i
Definition: DBlmapReader.cc:9
edm::EDGetTokenT< reco::VertexCollection > offline_pvToken_
MonitorElement * h_phoEt_preHLT_
std::vector< std::vector< MonitorElement * > > h_phoEta_BadChannels_
std::vector< std::vector< MonitorElement * > > p_maxEXtalOver3x3VsEta_
std::vector< std::vector< MonitorElement * > > p_trackPtSumSolidVsEta_
std::vector< std::vector< MonitorElement * > > h_nTrackIsolSolid_
std::vector< std::vector< MonitorElement * > > p_hOverEVsEta_
The single EDProduct to be saved for each event (AOD case)
Definition: TriggerEvent.h:25
std::vector< std::vector< MonitorElement * > > p_nTrackIsolSolidVsEt_
std::vector< std::vector< MonitorElement * > > p_r9VsEta_
edm::EDGetTokenT< edm::SortedCollection< EcalRecHit, edm::StrictWeakOrdering< EcalRecHit > > > barrelRecHit_token_
edm::EDGetTokenT< edm::ValueMap< bool > > PhotonIDLoose_token_
std::vector< std::vector< MonitorElement * > > p_sigmaIetaIetaVsEta_
double deltaRMax
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
std::vector< std::vector< MonitorElement * > > h_e1x5VsEt_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoE_
MonitorElement * h_phoEta_Vertex_
std::vector< std::vector< MonitorElement * > > p_e2x5VsEta_
std::vector< std::vector< MonitorElement * > > p_e1x5VsEta_
std::vector< std::vector< MonitorElement * > > h_convVtxRvsZ_
std::vector< std::vector< MonitorElement * > > p_r2x5VsEt_
std::vector< std::string > parts_
MonitorElement * h_convEta_Loose_
MonitorElement * h_nRecoVtx_
std::vector< std::vector< MonitorElement * > > h_nHadIsoBarrel_
std::vector< std::vector< MonitorElement * > > h_phoEta_
std::vector< EcalRecHit >::const_iterator const_iterator
std::vector< std::vector< MonitorElement * > > h_chHadIsoEndcap_
std::vector< std::vector< MonitorElement * > > h_hcalSumEBarrel_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoConvPhiForEfficiency_
std::vector< std::vector< MonitorElement * > > p_r1x5VsEt_
std::vector< std::vector< MonitorElement * > > h_nTrackIsolHollow_
MonitorElement * h_phoEta_preHLT_
edm::EDGetTokenT< edm::ValueMap< bool > > PhotonIDTight_token_
std::vector< std::vector< MonitorElement * > > h_convVtxZ_
std::vector< std::vector< MonitorElement * > > h_ecalSumVsEta_
std::vector< std::vector< std::vector< MonitorElement * > > > h_dCotTracks_
std::vector< std::vector< MonitorElement * > > h_chHadIsoBarrel_
std::vector< std::vector< std::vector< MonitorElement * > > > h_hOverE_
MonitorElement * h_convEt_Loose_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoSigmaEoverE_
std::vector< std::vector< MonitorElement * > > h_trackPtSumSolidVsEta_
std::vector< std::vector< std::vector< MonitorElement * > > > h_pOverETracks_
void fill3DHistoVector(std::vector< std::vector< std::vector< MonitorElement * > > > &histoVector, double x, int cut, int type, int part)
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoConvR9_
std::vector< std::vector< MonitorElement * > > h_r9VsEta_
std::vector< std::vector< MonitorElement * > > h_hcalSumEEndcap_
std::vector< std::vector< MonitorElement * > > h_vertexChi2Prob_
MonitorElement * h_phoEt_postHLT_
std::vector< std::vector< MonitorElement * > > h_convVtxZEndcap_
std::vector< std::vector< MonitorElement * > > h_nTrackIsolHollowVsEta_
MonitorElement * h_convEta_Tight_
std::vector< std::vector< MonitorElement * > > h_e2x5VsEta_
void Fill(long long x)
std::vector< std::vector< MonitorElement * > > h_ecalSum_
std::vector< std::vector< MonitorElement * > > p_dCotTracksVsEta_
std::vector< std::vector< std::vector< MonitorElement * > > > p_hcalSumVsEt_
std::vector< std::vector< MonitorElement * > > h_scEta_
std::vector< std::vector< MonitorElement * > > h_r1x5VsEt_
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
MonitorElement * h_invMassZeroWithTracks_
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoConvE_
bool photonSelection(const reco::PhotonRef &p)
void fill2DHistoVector(std::vector< std::vector< MonitorElement * > > &histoVector, double x, int cut, int type)
std::vector< std::vector< MonitorElement * > > h_convVtxR_
std::vector< std::vector< MonitorElement * > > h_hcalSumVsEta_
std::vector< std::vector< MonitorElement * > > h_maxEXtalOver3x3VsEta_
std::string fName_
std::vector< std::vector< MonitorElement * > > h_phoConvEta_
std::vector< std::vector< std::vector< MonitorElement * > > > h_eOverPTracks_
std::vector< std::vector< MonitorElement * > > h_maxEXtalOver3x3VsEt_
MonitorElement * h_phoEt_Tight_
std::vector< std::vector< MonitorElement * > > h_hcalSum_
MonitorElement * h_invMassPhotonsEBarrel_
std::vector< std::vector< MonitorElement * > > p_hcalSumVsEta_
std::vector< std::vector< MonitorElement * > > h_r1x5VsEta_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoConvEt_
std::vector< std::vector< MonitorElement * > > p_nHitsVsEta_
unsigned int prescaleFactor_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
std::vector< std::string > types_
T sqrt(T t)
Definition: SSEVec.h:48
std::vector< std::vector< std::vector< MonitorElement * > > > h_h1OverE_
std::vector< std::vector< MonitorElement * > > p_r1x5VsEta_
std::vector< std::vector< MonitorElement * > > p_hOverEVsEt_
std::vector< std::vector< std::vector< MonitorElement * > > > h_dPhiTracksAtVtx_
std::vector< std::vector< MonitorElement * > > h_phoIsoEndcap_
std::vector< std::vector< MonitorElement * > > p_e2x5VsEt_
std::vector< std::vector< MonitorElement * > > p_maxEXtalOver3x3VsEt_
MonitorElement * h_invMassTwoWithTracks_
std::vector< std::vector< MonitorElement * > > h_nTrackIsolHollowVsEt_
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
float ChiSquaredProbability(double chiSquared, double nrDOF)
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoSigmaIetaIeta_
edm::EDGetTokenT< edm::SortedCollection< EcalRecHit, edm::StrictWeakOrdering< EcalRecHit > > > endcapRecHit_token_
std::vector< std::vector< MonitorElement * > > h_e2x5VsEt_
std::vector< std::vector< MonitorElement * > > h_phoPhi_BadChannels_
std::vector< std::vector< MonitorElement * > > p_nTrackIsolSolidVsEta_
bool isValid() const
Definition: HandleBase.h:76
float phiNormalization(float &a)
MonitorElement * h_phoEta_Tight_
std::vector< std::vector< MonitorElement * > > h_nTrackIsolSolidVsEt_
std::vector< std::vector< std::vector< MonitorElement * > > > p_phoSigmaEoverEvsNVtx_
MonitorElement * h_phoEt_Loose_
const_iterator end() const
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
std::vector< std::vector< std::vector< MonitorElement * > > > p_ecalSumVsEt_
std::vector< std::vector< std::vector< MonitorElement * > > > h_r9_
MonitorElement * h_invMassAllPhotons_
std::vector< std::vector< MonitorElement * > > p_nTrackIsolHollowVsEt_
std::vector< std::vector< MonitorElement * > > h_trackPtSumHollowVsEt_
std::vector< std::vector< MonitorElement * > > h_nTrackIsolSolidVsEta_
edm::EDGetTokenT< trigger::TriggerEvent > triggerEvent_token_
std::vector< std::vector< std::vector< MonitorElement * > > > h_scPhi_
std::vector< std::vector< MonitorElement * > > p_e1x5VsEt_
tuple tracks
Definition: testEve_cfg.py:39
std::vector< size_type > Keys
part
Definition: HCALResponse.h:20
MonitorElement * h_invMassPhotonsEEndcap_
std::vector< std::vector< MonitorElement * > > p_nTrackIsolHollowVsEta_
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
std::vector< std::vector< MonitorElement * > > h_trackPtSumSolidVsEt_
T const * product() const
Definition: Handle.h:81
std::vector< std::vector< std::vector< MonitorElement * > > > h_h2OverE_
std::vector< std::vector< MonitorElement * > > p_r2x5VsEta_
std::vector< std::vector< MonitorElement * > > p_r9VsEt_
std::vector< std::vector< MonitorElement * > > h_phoIsoBarrel_
std::vector< std::vector< MonitorElement * > > p_trackPtSumHollowVsEta_
edm::EventID id() const
Definition: EventBase.h:56
std::vector< std::vector< MonitorElement * > > p_trackPtSumSolidVsEt_
std::vector< std::vector< MonitorElement * > > p_ecalSumVsEta_
std::vector< std::vector< MonitorElement * > > h_tkChi2_
std::vector< std::vector< MonitorElement * > > h_trackPtSumHollowVsEta_
std::vector< std::vector< MonitorElement * > > h_phoConvEtaForEfficiency_
MonitorElement * h_convEt_Tight_
std::vector< std::vector< MonitorElement * > > h_hcalSumVsEt_
std::vector< std::vector< MonitorElement * > > p_trackPtSumHollowVsEt_
MonitorElement * h_phoEta_postHLT_
size_type size() const
Size of the RefVector.
Definition: RefVector.h:89
std::vector< std::vector< MonitorElement * > > h_e1x5VsEta_
MonitorElement * h_phoEta_Loose_
std::vector< std::vector< std::vector< MonitorElement * > > > h_dPhiTracksAtEcal_
std::vector< std::vector< MonitorElement * > > h_trackPtSumSolid_
std::vector< std::vector< std::vector< MonitorElement * > > > h_nConv_
std::vector< std::vector< MonitorElement * > > h_r2x5VsEt_
edm::EDGetTokenT< std::vector< reco::Photon > > photon_token_
std::vector< std::vector< MonitorElement * > > h_phoEt_BadChannels_
std::vector< std::vector< MonitorElement * > > h_r2x5VsEta_
std::vector< std::vector< MonitorElement * > > h_nHadIsoEndcap_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoPhi_
std::vector< std::vector< MonitorElement * > > h_convVtxYvsX_
std::vector< std::vector< MonitorElement * > > h_trackPtSumHollow_
std::vector< std::vector< std::vector< MonitorElement * > > > h_nPho_
std::vector< std::vector< MonitorElement * > > h_r9VsEt_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoConvPhi_
std::vector< std::vector< MonitorElement * > > h_ecalSumVsEt_
const_iterator begin() const
std::vector< std::vector< MonitorElement * > > h_ecalSumEEndcap_
std::vector< std::vector< MonitorElement * > > h_ecalSumEBarrel_
double scalar(const CLHEP::HepGenMatrix &m)
Return the matrix as a scalar. Raise an assertion if the matris is not .
Definition: matutil.cc:183
std::vector< std::vector< MonitorElement * > > p_tkChi2VsEta_
void PhotonAnalyzer::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 75 of file PhotonAnalyzer.cc.

References DQMStore::book1D(), DQMStore::bookInt(), GOODCOLL_filter_cfg::cut, dbe_, cppFunctionSkipper::operator, DQMStore::setCurrentFolder(), and cuy::yBin.

76 {
77 
78  nEvt_=0;
79  nEntry_=0;
80 
81  dbe_ = 0;
83 
84 
85 
86  double eMin = parameters_.getParameter<double>("eMin");
87  double eMax = parameters_.getParameter<double>("eMax");
88  int eBin = parameters_.getParameter<int>("eBin");
89 
90  double etMin = parameters_.getParameter<double>("etMin");
91  double etMax = parameters_.getParameter<double>("etMax");
92  int etBin = parameters_.getParameter<int>("etBin");
93 
94  double sumMin = parameters_.getParameter<double>("sumMin");
95  double sumMax = parameters_.getParameter<double>("sumMax");
96  int sumBin = parameters_.getParameter<int>("sumBin");
97 
98  double etaMin = parameters_.getParameter<double>("etaMin");
99  double etaMax = parameters_.getParameter<double>("etaMax");
100  int etaBin = parameters_.getParameter<int>("etaBin");
101 
102  double phiMin = parameters_.getParameter<double>("phiMin");
103  double phiMax = parameters_.getParameter<double>("phiMax");
104  int phiBin = parameters_.getParameter<int>("phiBin");
105 
106  double r9Min = parameters_.getParameter<double>("r9Min");
107  double r9Max = parameters_.getParameter<double>("r9Max");
108  int r9Bin = parameters_.getParameter<int>("r9Bin");
109 
110  double hOverEMin = parameters_.getParameter<double>("hOverEMin");
111  double hOverEMax = parameters_.getParameter<double>("hOverEMax");
112  int hOverEBin = parameters_.getParameter<int>("hOverEBin");
113 
114  double xMin = parameters_.getParameter<double>("xMin");
115  double xMax = parameters_.getParameter<double>("xMax");
116  int xBin = parameters_.getParameter<int>("xBin");
117 
118  double yMin = parameters_.getParameter<double>("yMin");
119  double yMax = parameters_.getParameter<double>("yMax");
120  int yBin = parameters_.getParameter<int>("yBin");
121 
122  double numberMin = parameters_.getParameter<double>("numberMin");
123  double numberMax = parameters_.getParameter<double>("numberMax");
124  int numberBin = parameters_.getParameter<int>("numberBin");
125 
126  double zMin = parameters_.getParameter<double>("zMin");
127  double zMax = parameters_.getParameter<double>("zMax");
128  int zBin = parameters_.getParameter<int>("zBin");
129 
130  double rMin = parameters_.getParameter<double>("rMin");
131  double rMax = parameters_.getParameter<double>("rMax");
132  int rBin = parameters_.getParameter<int>("rBin");
133 
134  double dPhiTracksMin = parameters_.getParameter<double>("dPhiTracksMin");
135  double dPhiTracksMax = parameters_.getParameter<double>("dPhiTracksMax");
136  int dPhiTracksBin = parameters_.getParameter<int>("dPhiTracksBin");
137 
138  double dEtaTracksMin = parameters_.getParameter<double>("dEtaTracksMin");
139  double dEtaTracksMax = parameters_.getParameter<double>("dEtaTracksMax");
140  int dEtaTracksBin = parameters_.getParameter<int>("dEtaTracksBin");
141 
142  double sigmaIetaMin = parameters_.getParameter<double>("sigmaIetaMin");
143  double sigmaIetaMax = parameters_.getParameter<double>("sigmaIetaMax");
144  int sigmaIetaBin = parameters_.getParameter<int>("sigmaIetaBin");
145 
146  double eOverPMin = parameters_.getParameter<double>("eOverPMin");
147  double eOverPMax = parameters_.getParameter<double>("eOverPMax");
148  int eOverPBin = parameters_.getParameter<int>("eOverPBin");
149 
150  double chi2Min = parameters_.getParameter<double>("chi2Min");
151  double chi2Max = parameters_.getParameter<double>("chi2Max");
152  int chi2Bin = parameters_.getParameter<int>("chi2Bin");
153 
154 
155  int reducedEtBin = etBin/4;
156  int reducedEtaBin = etaBin/4;
157  int reducedSumBin = sumBin/4;
158  int reducedR9Bin = r9Bin/4;
159 
160 
161  parts_.push_back("AllEcal");
162  parts_.push_back("Barrel");
163  parts_.push_back("Endcaps");
164 
165  types_.push_back("All");
166  types_.push_back("GoodCandidate");
167  if (!excludeBkgHistos_) types_.push_back("Background");
168 
169 
170 
172 
173  if (dbe_) {
174 
175  dbe_->setCurrentFolder("Egamma/"+fName_+"/");
176 
177  //int values stored in MEs to keep track of how many histograms are in each folder
178  totalNumberOfHistos_efficiencyFolder = dbe_->bookInt("numberOfHistogramsInEfficiencyFolder");
179  totalNumberOfHistos_photonsFolder = dbe_->bookInt("numberOfHistogramsInPhotonsFolder");
180  totalNumberOfHistos_conversionsFolder = dbe_->bookInt("numberOfHistogramsInConversionsFolder");
181  totalNumberOfHistos_invMassFolder = dbe_->bookInt("numberOfHistogramsInInvMassFolder");
182 
183 
184  //Efficiency histograms
185 
186  dbe_->setCurrentFolder("Egamma/"+fName_+"/Efficiencies");
187 
188  //don't number these histograms with the "bookHisto" method, since they'll be erased in the offline client
189  h_phoEta_Loose_ = dbe_->book1D("phoEtaLoose","Loose Photon #eta",etaBin,etaMin,etaMax);
190  h_phoEta_Tight_ = dbe_->book1D("phoEtaTight","Tight Photon #eta",etaBin,etaMin,etaMax);
191  h_phoEt_Loose_ = dbe_->book1D("phoEtLoose", "Loose Photon E_{T}",etBin,etMin,etMax);
192  h_phoEt_Tight_ = dbe_->book1D("phoEtTight", "Tight Photon E_{T}",etBin,etMin,etMax);
193 
194 
195  h_phoEta_preHLT_ = dbe_->book1D("phoEtaPreHLT", "Photon #eta: before HLT",etaBin,etaMin,etaMax);
196  h_phoEta_postHLT_ = dbe_->book1D("phoEtaPostHLT","Photon #eta: after HLT",etaBin,etaMin,etaMax);
197  h_phoEt_preHLT_ = dbe_->book1D("phoEtPreHLT", "Photon E_{T}: before HLT",etBin,etMin,etMax);
198  h_phoEt_postHLT_ = dbe_->book1D("phoEtPostHLT", "Photon E_{T}: after HLT",etBin,etMin,etMax);
199 
200  h_convEta_Loose_ = dbe_->book1D("convEtaLoose","Converted Loose Photon #eta",etaBin,etaMin,etaMax);
201  h_convEta_Tight_ = dbe_->book1D("convEtaTight","Converted Tight Photon #eta",etaBin,etaMin,etaMax);
202  h_convEt_Loose_ = dbe_->book1D("convEtLoose", "Converted Loose Photon E_{T}",etBin,etMin,etMax);
203  h_convEt_Tight_ = dbe_->book1D("convEtTight", "Converted Tight Photon E_{T}",etBin,etMin,etMax);
204 
205  h_phoEta_Vertex_ = dbe_->book1D("phoEtaVertex","Converted Photons before valid vertex cut: #eta",etaBin,etaMin,etaMax);
206 
207 
208  vector<MonitorElement*> temp1DVectorEta;
209  vector<MonitorElement*> temp1DVectorPhi;
210  vector<vector<MonitorElement*> > temp2DVectorPhi;
211 
212 
213  for(int cut = 0; cut != numberOfSteps_; ++cut){ //looping over Et cut values
214  for(uint type=0;type!=types_.size();++type){ //looping over isolation type
215  currentFolder_.str("");
216  currentFolder_ << "Egamma/"+fName_+"/" << types_[type] << "Photons/Et above " << (cut+1)*cutStep_ << " GeV/Conversions";
218 
219  temp1DVectorEta.push_back(dbe_->book1D("phoConvEtaForEfficiency","Converted Photon #eta;#eta",etaBin,etaMin,etaMax));
220  for(uint part=0;part!=parts_.size();++part){
221  temp1DVectorPhi.push_back(dbe_->book1D("phoConvPhiForEfficiency"+parts_[part],"Converted Photon #phi;#phi",phiBin,phiMin,phiMax));
222  }
223  temp2DVectorPhi.push_back(temp1DVectorPhi);
224  temp1DVectorPhi.clear();
225  }
226  h_phoConvEtaForEfficiency_.push_back(temp1DVectorEta);
227  temp1DVectorEta.clear();
228  h_phoConvPhiForEfficiency_.push_back(temp2DVectorPhi);
229  temp2DVectorPhi.clear();
230  }
231 
232 
233 
234 
235  //Invariant mass plots
236 
237  dbe_->setCurrentFolder("Egamma/"+fName_+"/InvMass");
238 
239  h_invMassAllPhotons_ = bookHisto("invMassAllIsolatedPhotons","Two photon invariant mass: All isolated photons;M (GeV)",etBin,etMin,etMax);
240  h_invMassPhotonsEBarrel_ = bookHisto("invMassIsoPhotonsEBarrel", "Two photon invariant mass: isolated photons in barrel; M (GeV)",etBin,etMin,etMax);
241  h_invMassPhotonsEEndcap_ = bookHisto("invMassIsoPhotonsEEndcap", "Two photon invariant mass: isolated photons in endcap; M (GeV)",etBin,etMin,etMax);
242 
243  h_invMassZeroWithTracks_= bookHisto("invMassZeroWithTracks", "Two photon invariant mass: Neither has tracks;M (GeV)", etBin,etMin,etMax);
244  h_invMassOneWithTracks_ = bookHisto("invMassOneWithTracks", "Two photon invariant mass: Only one has tracks;M (GeV)", etBin,etMin,etMax);
245  h_invMassTwoWithTracks_ = bookHisto("invMassTwoWithTracks", "Two photon invariant mass: Both have tracks;M (GeV)", etBin,etMin,etMax);
246 
247 
248  h_nRecoVtx_ = bookHisto("nOfflineVtx","# of Offline Vertices",80, -0.5, 79.5);
249 
251 
252  //ENERGY VARIABLES
253 
254  book3DHistoVector(h_phoE_, "1D","phoE","Energy;E (GeV)",eBin,eMin,eMax);
255  book3DHistoVector(h_phoSigmaEoverE_, "1D","phoSigmaEoverE","#sigma_{E}/E; #sigma_{E}/E", 100,0.,0.08);
256  book3DHistoVector(p_phoSigmaEoverEvsNVtx_, "Profile","phoSigmaEoverEvsNVtx","#sigma_{E}/E vs NVtx; N_{vtx}; #sigma_{E}/E",80, -0.5, 79.5, 100,0., 0.08);
257  book3DHistoVector(h_phoEt_, "1D","phoEt","E_{T};E_{T} (GeV)", etBin,etMin,etMax);
258 
259 
260  //NUMBER OF PHOTONS
261 
262  book3DHistoVector(h_nPho_, "1D","nPho","Number of Photons per Event;# #gamma",numberBin,numberMin,numberMax);
263 
264  //GEOMETRICAL VARIABLES
265 
266  //photon eta/phi
267  book2DHistoVector(h_phoEta_, "1D","phoEta","#eta;#eta",etaBin,etaMin,etaMax) ;
268  book3DHistoVector(h_phoPhi_, "1D","phoPhi","#phi;#phi",phiBin,phiMin,phiMax) ;
269 
270  //supercluster eta/phi
271  book2DHistoVector(h_scEta_, "1D","scEta","SuperCluster #eta;#eta",etaBin,etaMin,etaMax) ;
272  book3DHistoVector(h_scPhi_, "1D","scPhi","SuperCluster #phi;#phi",phiBin,phiMin,phiMax) ;
273 
274  //SHOWER SHAPE VARIABLES
275 
276  //r9
277  book3DHistoVector(h_r9_, "1D","r9","R9;R9",r9Bin,r9Min, r9Max);
278  if (standAlone_) book2DHistoVector(h_r9VsEt_, "2D","r9VsEt2D","R9 vs E_{T};E_{T} (GeV);R9",reducedEtBin,etMin,etMax,reducedR9Bin,r9Min,r9Max);
279  book2DHistoVector(p_r9VsEt_, "Profile","r9VsEt","Avg R9 vs E_{T};E_{T} (GeV);R9",etBin,etMin,etMax,r9Bin,r9Min,r9Max);
280  if (standAlone_) book2DHistoVector(h_r9VsEta_, "2D","r9VsEta2D","R9 vs #eta;#eta;R9",reducedEtaBin,etaMin,etaMax,reducedR9Bin,r9Min,r9Max);
281  book2DHistoVector(p_r9VsEta_, "Profile","r9VsEta","Avg R9 vs #eta;#eta;R9",etaBin,etaMin,etaMax,r9Bin,r9Min,r9Max);
282 
283  //sigma ieta ieta
284  book3DHistoVector(h_phoSigmaIetaIeta_, "1D","phoSigmaIetaIeta","#sigma_{i#etai#eta};#sigma_{i#etai#eta}",sigmaIetaBin,sigmaIetaMin,sigmaIetaMax);
285  if (standAlone_) book2DHistoVector(h_sigmaIetaIetaVsEta_, "2D","sigmaIetaIetaVsEta2D","#sigma_{i#etai#eta} vs #eta;#eta;#sigma_{i#etai#eta}",reducedEtaBin,etaMin,etaMax,sigmaIetaBin,sigmaIetaMin,sigmaIetaMax);
286  book2DHistoVector(p_sigmaIetaIetaVsEta_, "Profile","sigmaIetaIetaVsEta","Avg #sigma_{i#etai#eta} vs #eta;#eta;#sigma_{i#etai#eta}",etaBin,etaMin,etaMax,sigmaIetaBin,sigmaIetaMin,sigmaIetaMax);
287 
288  //e1x5
289  if (standAlone_) book2DHistoVector(h_e1x5VsEt_, "2D","e1x5VsEt2D","E1x5 vs E_{T};E_{T} (GeV);E1X5 (GeV)",reducedEtBin,etMin,etMax,reducedEtBin,etMin,etMax);
290  book2DHistoVector(p_e1x5VsEt_, "Profile","e1x5VsEt","Avg E1x5 vs E_{T};E_{T} (GeV);E1X5 (GeV)",etBin,etMin,etMax,etBin,etMin,etMax);
291  if (standAlone_) book2DHistoVector(h_e1x5VsEta_, "2D","e1x5VsEta2D","E1x5 vs #eta;#eta;E1X5 (GeV)",reducedEtaBin,etaMin,etaMax,reducedEtBin,etMin,etMax);
292  book2DHistoVector(p_e1x5VsEta_, "Profile","e1x5VsEta","Avg E1x5 vs #eta;#eta;E1X5 (GeV)",etaBin,etaMin,etaMax,etBin,etMin,etMax);
293 
294  //e2x5
295  if (standAlone_) book2DHistoVector(h_e2x5VsEt_, "2D","e2x5VsEt2D","E2x5 vs E_{T};E_{T} (GeV);E2X5 (GeV)",reducedEtBin,etMin,etMax,reducedEtBin,etMin,etMax);
296  book2DHistoVector(p_e2x5VsEt_, "Profile","e2x5VsEt","Avg E2x5 vs E_{T};E_{T} (GeV);E2X5 (GeV)",etBin,etMin,etMax,etBin,etMin,etMax);
297  if (standAlone_) book2DHistoVector(h_e2x5VsEta_, "2D","e2x5VsEta2D","E2x5 vs #eta;#eta;E2X5 (GeV)",reducedEtaBin,etaMin,etaMax,reducedEtBin,etMin,etMax);
298  book2DHistoVector(p_e2x5VsEta_, "Profile","e2x5VsEta","Avg E2x5 vs #eta;#eta;E2X5 (GeV)",etaBin,etaMin,etaMax,etBin,etMin,etMax);
299 
300  //r1x5
301  if (standAlone_) book2DHistoVector(h_r1x5VsEt_, "2D","r1x5VsEt2D","R1x5 vs E_{T};E_{T} (GeV);R1X5",reducedEtBin,etMin,etMax,reducedR9Bin,r9Min,r9Max);
302  book2DHistoVector(p_r1x5VsEt_, "Profile","r1x5VsEt","Avg R1x5 vs E_{T};E_{T} (GeV);R1X5",etBin,etMin,etMax,r9Bin,r9Min,r9Max);
303  if (standAlone_) book2DHistoVector(h_r1x5VsEta_, "2D","r1x5VsEta2D","R1x5 vs #eta;#eta;R1X5",reducedEtaBin,etaMin,etaMax,reducedR9Bin,r9Min,r9Max);
304  book2DHistoVector(p_r1x5VsEta_, "Profile","r1x5VsEta","Avg R1x5 vs #eta;#eta;R1X5",etaBin,etaMin,etaMax,r9Bin,r9Min,r9Max);
305 
306  //r2x5
307  if (standAlone_) book2DHistoVector( h_r2x5VsEt_ ,"2D","r2x5VsEt2D","R2x5 vs E_{T};E_{T} (GeV);R2X5",reducedEtBin,etMin,etMax,reducedR9Bin,r9Min,r9Max);
308  book2DHistoVector( p_r2x5VsEt_ ,"Profile","r2x5VsEt","Avg R2x5 vs E_{T};E_{T} (GeV);R2X5",etBin,etMin,etMax,r9Bin,r9Min,r9Max);
309  if (standAlone_) book2DHistoVector( h_r2x5VsEta_ ,"2D","r2x5VsEta2D","R2x5 vs #eta;#eta;R2X5",reducedEtaBin,etaMin,etaMax,reducedR9Bin,r9Min,r9Max);
310  book2DHistoVector( p_r2x5VsEta_ ,"Profile","r2x5VsEta","Avg R2x5 vs #eta;#eta;R2X5",etaBin,etaMin,etaMax,r9Bin,r9Min,r9Max);
311 
312  //maxEXtalOver3x3
313  if (standAlone_) book2DHistoVector( h_maxEXtalOver3x3VsEt_ ,"2D","maxEXtalOver3x3VsEt2D","(Max Xtal E)/E3x3 vs E_{T};E_{T} (GeV);(Max Xtal E)/E3x3",reducedEtBin,etMin,etMax,r9Bin,r9Min,r9Max);
314  book2DHistoVector( p_maxEXtalOver3x3VsEt_ ,"Profile","maxEXtalOver3x3VsEt","Avg (Max Xtal E)/E3x3 vs E_{T};E_{T} (GeV);(Max Xtal E)/E3x3",etBin,etMin,etMax,r9Bin,r9Min,r9Max);
315  if (standAlone_) book2DHistoVector( h_maxEXtalOver3x3VsEta_ ,"2D","maxEXtalOver3x3VsEta2D","(Max Xtal E)/E3x3 vs #eta;#eta;(Max Xtal E)/E3x3",reducedEtaBin,etaMin,etaMax,r9Bin,r9Min,r9Max);
316  book2DHistoVector( p_maxEXtalOver3x3VsEta_ ,"Profile","maxEXtalOver3x3VsEta","Avg (Max Xtal E)/E3x3 vs #eta;#eta;(Max Xtal E)/E3x3",etaBin,etaMin,etaMax,r9Bin,r9Min,r9Max);
317 
318  //TRACK ISOLATION VARIABLES
319  //nTrackIsolSolid
320  book2DHistoVector( h_nTrackIsolSolid_ ,"1D","nIsoTracksSolid","Number Of Tracks in the Solid Iso Cone;# tracks",numberBin,numberMin,numberMax);
321  if (standAlone_) book2DHistoVector( h_nTrackIsolSolidVsEt_ ,"2D","nIsoTracksSolidVsEt2D","Number Of Tracks in the Solid Iso Cone vs E_{T};E_{T};# tracks",reducedEtBin,etMin, etMax,numberBin,numberMin,numberMax);
322  book2DHistoVector( p_nTrackIsolSolidVsEt_ ,"Profile","nIsoTracksSolidVsEt","Avg Number Of Tracks in the Solid Iso Cone vs E_{T};E_{T};# tracks",etBin,etMin,etMax,numberBin,numberMin,numberMax);
323  if (standAlone_) book2DHistoVector( h_nTrackIsolSolidVsEta_ ,"2D","nIsoTracksSolidVsEta2D","Number Of Tracks in the Solid Iso Cone vs #eta;#eta;# tracks",reducedEtaBin,etaMin, etaMax,numberBin,numberMin,numberMax);
324  book2DHistoVector( p_nTrackIsolSolidVsEta_ ,"Profile","nIsoTracksSolidVsEta","Avg Number Of Tracks in the Solid Iso Cone vs #eta;#eta;# tracks",etaBin,etaMin, etaMax,numberBin,numberMin,numberMax);
325 
326  //nTrackIsolHollow
327  book2DHistoVector( h_nTrackIsolHollow_ ,"1D","nIsoTracksHollow","Number Of Tracks in the Hollow Iso Cone;# tracks",numberBin,numberMin,numberMax);
328  if (standAlone_) book2DHistoVector( h_nTrackIsolHollowVsEt_ ,"2D","nIsoTracksHollowVsEt2D","Number Of Tracks in the Hollow Iso Cone vs E_{T};E_{T};# tracks",reducedEtBin,etMin, etMax,numberBin,numberMin,numberMax);
329  book2DHistoVector( p_nTrackIsolHollowVsEt_ ,"Profile","nIsoTracksHollowVsEt","Avg Number Of Tracks in the Hollow Iso Cone vs E_{T};E_{T};# tracks",etBin,etMin,etMax,numberBin,numberMin,numberMax);
330  if (standAlone_) book2DHistoVector( h_nTrackIsolHollowVsEta_ ,"2D","nIsoTracksHollowVsEta2D","Number Of Tracks in the Hollow Iso Cone vs #eta;#eta;# tracks",reducedEtaBin,etaMin, etaMax,numberBin,numberMin,numberMax);
331  book2DHistoVector( p_nTrackIsolHollowVsEta_ ,"Profile","nIsoTracksHollowVsEta","Avg Number Of Tracks in the Hollow Iso Cone vs #eta;#eta;# tracks",etaBin,etaMin, etaMax,numberBin,numberMin,numberMax);
332 
333  //trackPtSumSolid
334  book2DHistoVector( h_trackPtSumSolid_ ,"1D","isoPtSumSolid","Track P_{T} Sum in the Solid Iso Cone;P_{T} (GeV)",sumBin,sumMin,sumMax);
335  if (standAlone_) book2DHistoVector( h_trackPtSumSolidVsEt_ ,"2D","isoPtSumSolidVsEt2D","Track P_{T} Sum in the Solid Iso Cone;E_{T} (GeV);P_{T} (GeV)",reducedEtBin,etMin, etMax,reducedSumBin,sumMin,sumMax);
336  book2DHistoVector( p_trackPtSumSolidVsEt_ ,"Profile","isoPtSumSolidVsEt","Avg Track P_{T} Sum in the Solid Iso Cone vs E_{T};E_{T} (GeV);P_{T} (GeV)",etBin,etMin,etMax,sumBin,sumMin,sumMax);
337  if (standAlone_) book2DHistoVector( h_trackPtSumSolidVsEta_ ,"2D","isoPtSumSolidVsEta2D","Track P_{T} Sum in the Solid Iso Cone;#eta;P_{T} (GeV)",reducedEtaBin,etaMin, etaMax,reducedSumBin,sumMin,sumMax);
338  book2DHistoVector( p_trackPtSumSolidVsEta_ ,"Profile","isoPtSumSolidVsEta","Avg Track P_{T} Sum in the Solid Iso Cone vs #eta;#eta;P_{T} (GeV)",etaBin,etaMin, etaMax,sumBin,sumMin,sumMax);
339 
340  //trackPtSumHollow
341  book2DHistoVector( h_trackPtSumHollow_ ,"1D","isoPtSumHollow","Track P_{T} Sum in the Hollow Iso Cone;P_{T} (GeV)",sumBin,sumMin,sumMax);
342  if (standAlone_) book2DHistoVector( h_trackPtSumHollowVsEt_ ,"2D","isoPtSumHollowVsEt2D","Track P_{T} Sum in the Hollow Iso Cone;E_{T} (GeV);P_{T} (GeV)",reducedEtBin,etMin, etMax,reducedSumBin,sumMin,sumMax);
343  book2DHistoVector( p_trackPtSumHollowVsEt_ ,"Profile","isoPtSumHollowVsEt","Avg Track P_{T} Sum in the Hollow Iso Cone vs E_{T};E_{T} (GeV);P_{T} (GeV)",etBin,etMin,etMax,sumBin,sumMin,sumMax);
344  if (standAlone_) book2DHistoVector( h_trackPtSumHollowVsEta_ ,"2D","isoPtSumHollowVsEta2D","Track P_{T} Sum in the Hollow Iso Cone;#eta;P_{T} (GeV)",reducedEtaBin,etaMin, etaMax,reducedSumBin,sumMin,sumMax);
345  book2DHistoVector( p_trackPtSumHollowVsEta_ ,"Profile","isoPtSumHollowVsEta","Avg Track P_{T} Sum in the Hollow Iso Cone vs #eta;#eta;P_{T} (GeV)",etaBin,etaMin, etaMax,sumBin,sumMin,sumMax);
346 
347 
348  //CALORIMETER ISOLATION VARIABLES
349 
350  //ecal sum
351  book2DHistoVector( h_ecalSum_ ,"1D","ecalSum","Ecal Sum in the Iso Cone;E (GeV)",sumBin,sumMin,sumMax);
352  book2DHistoVector( h_ecalSumEBarrel_,"1D","ecalSumEBarrel","Ecal Sum in the IsoCone for Barrel;E (GeV)",sumBin,sumMin,sumMax);
353  book2DHistoVector( h_ecalSumEEndcap_,"1D","ecalSumEEndcap","Ecal Sum in the IsoCone for Endcap;E (GeV)",sumBin,sumMin,sumMax);
354  if (standAlone_) book2DHistoVector( h_ecalSumVsEt_ ,"2D","ecalSumVsEt2D","Ecal Sum in the Iso Cone;E_{T} (GeV);E (GeV)",reducedEtBin,etMin, etMax,reducedSumBin,sumMin,sumMax);
355  book3DHistoVector( p_ecalSumVsEt_ ,"Profile","ecalSumVsEt","Avg Ecal Sum in the Iso Cone vs E_{T};E_{T} (GeV);E (GeV)",etBin,etMin, etMax,sumBin,sumMin,sumMax);
356  if (standAlone_) book2DHistoVector( h_ecalSumVsEta_ ,"2D","ecalSumVsEta2D","Ecal Sum in the Iso Cone;#eta;E (GeV)",reducedEtaBin,etaMin, etaMax,reducedSumBin,sumMin,sumMax);
357  book2DHistoVector( p_ecalSumVsEta_ ,"Profile","ecalSumVsEta","Avg Ecal Sum in the Iso Cone vs #eta;#eta;E (GeV)",etaBin,etaMin, etaMax,sumBin,sumMin,sumMax);
358 
359  //hcal sum
360  book2DHistoVector( h_hcalSum_ ,"1D","hcalSum","Hcal Sum in the Iso Cone;E (GeV)",sumBin,sumMin,sumMax);
361  book2DHistoVector( h_hcalSumEBarrel_,"1D","hcalSumEBarrel","Hcal Sum in the IsoCone for Barrel;E (GeV)",sumBin,sumMin,sumMax);
362  book2DHistoVector( h_hcalSumEEndcap_,"1D","hcalSumEEndcap","Hcal Sum in the IsoCone for Endcap;E (GeV)",sumBin,sumMin,sumMax);
363  if (standAlone_) book2DHistoVector( h_hcalSumVsEt_ ,"2D","hcalSumVsEt2D","Hcal Sum in the Iso Cone;E_{T} (GeV);E (GeV)",reducedEtBin,etMin, etMax,reducedSumBin,sumMin,sumMax);
364  book3DHistoVector( p_hcalSumVsEt_ ,"Profile","hcalSumVsEt","Avg Hcal Sum in the Iso Cone vs E_{T};E_{T} (GeV);E (GeV)",etBin,etMin, etMax,sumBin,sumMin,sumMax);
365  if (standAlone_) book2DHistoVector( h_hcalSumVsEta_ ,"2D","hcalSumVsEta2D","Hcal Sum in the Iso Cone;#eta;E (GeV)",reducedEtaBin,etaMin, etaMax,reducedSumBin,sumMin,sumMax);
366  book2DHistoVector( p_hcalSumVsEta_ ,"Profile","hcalSumVsEta","Avg Hcal Sum in the Iso Cone vs #eta;#eta;E (GeV)",etaBin,etaMin, etaMax,sumBin,sumMin,sumMax);
367 
368  //h over e
369  book3DHistoVector( h_hOverE_ ,"1D","hOverE","H/E;H/E",hOverEBin,hOverEMin,hOverEMax);
370  book2DHistoVector( p_hOverEVsEt_ ,"Profile","hOverEVsEt","Avg H/E vs Et;E_{T} (GeV);H/E",etBin,etMin,etMax,hOverEBin,hOverEMin,hOverEMax);
371  book2DHistoVector( p_hOverEVsEta_ ,"Profile","hOverEVsEta","Avg H/E vs #eta;#eta;H/E",etaBin,etaMin,etaMax,hOverEBin,hOverEMin,hOverEMax);
372  book3DHistoVector( h_h1OverE_ ,"1D","h1OverE","H/E for Depth 1;H/E",hOverEBin,hOverEMin,hOverEMax);
373  book3DHistoVector( h_h2OverE_ ,"1D","h2OverE","H/E for Depth 2;H/E",hOverEBin,hOverEMin,hOverEMax);
374 
375  // pf isolation
376  book2DHistoVector( h_phoIsoBarrel_,"1D","phoIsoBarrel","PF photon iso Barrel;E (GeV)",reducedEtBin,etMin,25.);
377  book2DHistoVector( h_phoIsoEndcap_,"1D","phoIsoEndcap","PF photon iso Endcap;E (GeV)",reducedEtBin,etMin,25.);
378  book2DHistoVector( h_chHadIsoBarrel_,"1D","chHadIsoBarrel","PF charged Had iso Barrel;E (GeV)",reducedEtBin,etMin,25.);
379  book2DHistoVector( h_chHadIsoEndcap_,"1D","chHadIsoEndcap","PF charged Had iso Endcap;E (GeV)",reducedEtBin,etMin,25.);
380  book2DHistoVector( h_nHadIsoBarrel_,"1D","neutralHadIsoBarrel","PF neutral Had iso Barrel;E (GeV)",reducedEtBin,etMin,25.);
381  book2DHistoVector( h_nHadIsoEndcap_,"1D","neutralHadIsoEndcap","PF neutral Had iso Endcap;E (GeV)",reducedEtBin,etMin,25.);
382 
383 
384 
385  //OTHER VARIABLES
386  //bad channel histograms
387  book2DHistoVector( h_phoEt_BadChannels_ ,"1D","phoEtBadChannels", "Fraction Containing Bad Channels: E_{T};E_{T} (GeV)",etBin,etMin,etMax);
388  book2DHistoVector( h_phoEta_BadChannels_ ,"1D","phoEtaBadChannels","Fraction Containing Bad Channels: #eta;#eta",etaBin,etaMin,etaMax);
389  book2DHistoVector( h_phoPhi_BadChannels_ ,"1D","phoPhiBadChannels","Fraction Containing Bad Channels: #phi;#phi",phiBin,phiMin,phiMax);
390 
391 
393 
394  dbe_->setCurrentFolder("Egamma/"+fName_+"/AllPhotons/Et Above 0 GeV/Conversions");
395 
396  //ENERGY VARIABLES
397 
398  book3DHistoVector( h_phoConvE_ ,"1D","phoConvE","E;E (GeV)",eBin,eMin,eMax);
399  book3DHistoVector( h_phoConvEt_ ,"1D","phoConvEt","E_{T};E_{T} (GeV)",etBin,etMin,etMax);
400 
401  //GEOMETRICAL VARIABLES
402 
403  book2DHistoVector( h_phoConvEta_ ,"1D","phoConvEta","#eta;#eta",etaBin,etaMin,etaMax);
404  book3DHistoVector( h_phoConvPhi_ ,"1D","phoConvPhi","#phi;#phi",phiBin,phiMin,phiMax);
405 
406  //NUMBER OF PHOTONS
407 
408  book3DHistoVector( h_nConv_ ,"1D","nConv","Number Of Conversions per Event ;# conversions",numberBin,numberMin,numberMax);
409 
410  //SHOWER SHAPE VARIABLES
411 
412  book3DHistoVector( h_phoConvR9_ ,"1D","phoConvR9","R9;R9",r9Bin,r9Min,r9Max);
413 
414  //TRACK RELATED VARIABLES
415 
416  book3DHistoVector( h_eOverPTracks_ ,"1D","eOverPTracks","E/P;E/P",eOverPBin,eOverPMin,eOverPMax);
417  book3DHistoVector( h_pOverETracks_ ,"1D","pOverETracks","P/E;P/E",eOverPBin,eOverPMin,eOverPMax);
418 
419  book3DHistoVector( h_dPhiTracksAtVtx_ ,"1D","dPhiTracksAtVtx", "#Delta#phi of Tracks at Vertex;#Delta#phi",dPhiTracksBin,dPhiTracksMin,dPhiTracksMax);
420  book3DHistoVector( h_dPhiTracksAtEcal_ ,"1D","dPhiTracksAtEcal", "Abs(#Delta#phi) of Tracks at Ecal;#Delta#phi",dPhiTracksBin,0.,dPhiTracksMax);
421  book3DHistoVector( h_dEtaTracksAtEcal_ ,"1D","dEtaTracksAtEcal", "#Delta#eta of Tracks at Ecal;#Delta#eta",dEtaTracksBin,dEtaTracksMin,dEtaTracksMax);
422 
423  book3DHistoVector( h_dCotTracks_ ,"1D","dCotTracks","#Deltacot(#theta) of Tracks;#Deltacot(#theta)",dEtaTracksBin,dEtaTracksMin,dEtaTracksMax);
424  book2DHistoVector( p_dCotTracksVsEta_ ,"Profile","dCotTracksVsEta","Avg #Deltacot(#theta) of Tracks vs #eta;#eta;#Deltacot(#theta)",etaBin,etaMin,etaMax,dEtaTracksBin,dEtaTracksMin,dEtaTracksMax);
425 
426  book2DHistoVector( p_nHitsVsEta_ ,"Profile","nHitsVsEta","Avg Number of Hits per Track vs #eta;#eta;# hits",etaBin,etaMin,etaMax,etaBin,0,16);
427 
428  book2DHistoVector( h_tkChi2_ ,"1D","tkChi2","#chi^{2} of Track Fitting;#chi^{2}",chi2Bin,chi2Min,chi2Max);
429  book2DHistoVector( p_tkChi2VsEta_ ,"Profile","tkChi2VsEta","Avg #chi^{2} of Track Fitting vs #eta;#eta;#chi^{2}",etaBin,etaMin,etaMax,chi2Bin,chi2Min,chi2Max);
430 
431  //VERTEX RELATED VARIABLES
432 
433  book2DHistoVector( h_convVtxRvsZ_ ,"2D","convVtxRvsZ","Vertex Position;Z (cm);R (cm)",500,zMin,zMax,rBin,rMin,rMax);
434  book2DHistoVector( h_convVtxZEndcap_ ,"1D","convVtxZEndcap", "Vertex Position: #eta > 1.5;Z (cm)",zBin,zMin,zMax);
435  book2DHistoVector( h_convVtxZ_ ,"1D","convVtxZ", "Vertex Position;Z (cm)",zBin,zMin,zMax);
436  book2DHistoVector( h_convVtxR_ ,"1D","convVtxR", "Vertex Position: #eta < 1;R (cm)",rBin,rMin,rMax);
437  book2DHistoVector( h_convVtxYvsX_ ,"2D","convVtxYvsX","Vertex Position: #eta < 1;X (cm);Y (cm)",xBin,xMin,xMax,yBin,yMin,yMax);
438 
439 
440 
441  book2DHistoVector( h_vertexChi2Prob_ ,"1D","vertexChi2Prob","#chi^{2} Probability of Vertex Fitting;#chi^{2}",100,0.,1.0);
442 
443 
444  }//end if(dbe_)
445 
446 
447 }//end BeginJob
std::vector< std::vector< MonitorElement * > > h_sigmaIetaIetaVsEta_
type
Definition: HCALResponse.h:21
MonitorElement * h_invMassOneWithTracks_
T getParameter(std::string const &) const
std::vector< std::vector< std::vector< MonitorElement * > > > h_dEtaTracksAtEcal_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoEt_
MonitorElement * h_phoEt_preHLT_
std::vector< std::vector< MonitorElement * > > h_phoEta_BadChannels_
MonitorElement * totalNumberOfHistos_photonsFolder
std::vector< std::vector< MonitorElement * > > p_maxEXtalOver3x3VsEta_
std::vector< std::vector< MonitorElement * > > p_trackPtSumSolidVsEta_
std::vector< std::vector< MonitorElement * > > h_nTrackIsolSolid_
std::vector< std::vector< MonitorElement * > > p_hOverEVsEta_
std::vector< std::vector< MonitorElement * > > p_nTrackIsolSolidVsEt_
std::vector< std::vector< MonitorElement * > > p_r9VsEta_
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:928
MonitorElement * bookHisto(std::string histoName, std::string title, int bin, double min, double max)
std::vector< std::vector< MonitorElement * > > p_sigmaIetaIetaVsEta_
std::vector< std::vector< MonitorElement * > > h_e1x5VsEt_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoE_
MonitorElement * h_phoEta_Vertex_
tuple yBin
Definition: cuy.py:891
std::vector< std::vector< MonitorElement * > > p_e2x5VsEta_
std::vector< std::vector< MonitorElement * > > p_e1x5VsEta_
std::vector< std::vector< MonitorElement * > > h_convVtxRvsZ_
std::vector< std::vector< MonitorElement * > > p_r2x5VsEt_
std::vector< std::string > parts_
MonitorElement * h_convEta_Loose_
MonitorElement * h_nRecoVtx_
std::vector< std::vector< MonitorElement * > > h_nHadIsoBarrel_
std::vector< std::vector< MonitorElement * > > h_phoEta_
std::vector< std::vector< MonitorElement * > > h_chHadIsoEndcap_
MonitorElement * totalNumberOfHistos_efficiencyFolder
std::vector< std::vector< MonitorElement * > > h_hcalSumEBarrel_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoConvPhiForEfficiency_
std::vector< std::vector< MonitorElement * > > p_r1x5VsEt_
std::vector< std::vector< MonitorElement * > > h_nTrackIsolHollow_
MonitorElement * h_phoEta_preHLT_
std::vector< std::vector< MonitorElement * > > h_convVtxZ_
std::vector< std::vector< MonitorElement * > > h_ecalSumVsEta_
std::vector< std::vector< std::vector< MonitorElement * > > > h_dCotTracks_
std::vector< std::vector< MonitorElement * > > h_chHadIsoBarrel_
std::vector< std::vector< std::vector< MonitorElement * > > > h_hOverE_
MonitorElement * h_convEt_Loose_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoSigmaEoverE_
std::vector< std::vector< MonitorElement * > > h_trackPtSumSolidVsEta_
std::vector< std::vector< std::vector< MonitorElement * > > > h_pOverETracks_
MonitorElement * totalNumberOfHistos_conversionsFolder
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoConvR9_
std::vector< std::vector< MonitorElement * > > h_r9VsEta_
std::vector< std::vector< MonitorElement * > > h_hcalSumEEndcap_
std::vector< std::vector< MonitorElement * > > h_vertexChi2Prob_
MonitorElement * h_phoEt_postHLT_
std::stringstream currentFolder_
std::vector< std::vector< MonitorElement * > > h_convVtxZEndcap_
std::vector< std::vector< MonitorElement * > > h_nTrackIsolHollowVsEta_
MonitorElement * h_convEta_Tight_
std::vector< std::vector< MonitorElement * > > h_e2x5VsEta_
std::vector< std::vector< MonitorElement * > > h_ecalSum_
std::vector< std::vector< MonitorElement * > > p_dCotTracksVsEta_
std::vector< std::vector< std::vector< MonitorElement * > > > p_hcalSumVsEt_
std::vector< std::vector< MonitorElement * > > h_scEta_
std::vector< std::vector< MonitorElement * > > h_r1x5VsEt_
MonitorElement * h_invMassZeroWithTracks_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoConvE_
std::vector< std::vector< MonitorElement * > > h_convVtxR_
std::vector< std::vector< MonitorElement * > > h_hcalSumVsEta_
std::vector< std::vector< MonitorElement * > > h_maxEXtalOver3x3VsEta_
std::string fName_
std::vector< std::vector< MonitorElement * > > h_phoConvEta_
std::vector< std::vector< std::vector< MonitorElement * > > > h_eOverPTracks_
std::vector< std::vector< MonitorElement * > > h_maxEXtalOver3x3VsEt_
MonitorElement * h_phoEt_Tight_
std::vector< std::vector< MonitorElement * > > h_hcalSum_
MonitorElement * h_invMassPhotonsEBarrel_
std::vector< std::vector< MonitorElement * > > p_hcalSumVsEta_
std::vector< std::vector< MonitorElement * > > h_r1x5VsEta_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoConvEt_
std::vector< std::vector< MonitorElement * > > p_nHitsVsEta_
std::vector< std::string > types_
MonitorElement * totalNumberOfHistos_invMassFolder
std::vector< std::vector< std::vector< MonitorElement * > > > h_h1OverE_
DQMStore * dbe_
std::vector< std::vector< MonitorElement * > > p_r1x5VsEta_
std::vector< std::vector< MonitorElement * > > p_hOverEVsEt_
std::vector< std::vector< std::vector< MonitorElement * > > > h_dPhiTracksAtVtx_
std::vector< std::vector< MonitorElement * > > h_phoIsoEndcap_
std::vector< std::vector< MonitorElement * > > p_e2x5VsEt_
std::vector< std::vector< MonitorElement * > > p_maxEXtalOver3x3VsEt_
MonitorElement * h_invMassTwoWithTracks_
std::vector< std::vector< MonitorElement * > > h_nTrackIsolHollowVsEt_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoSigmaIetaIeta_
std::vector< std::vector< MonitorElement * > > h_e2x5VsEt_
std::vector< std::vector< MonitorElement * > > h_phoPhi_BadChannels_
std::vector< std::vector< MonitorElement * > > p_nTrackIsolSolidVsEta_
MonitorElement * h_phoEta_Tight_
void book3DHistoVector(std::vector< std::vector< std::vector< MonitorElement * > > > &toFill, std::string histoType, std::string histoName, std::string title, int xbin, double xmin, double xmax, int ybin=1, double ymin=1, double ymax=2)
std::vector< std::vector< MonitorElement * > > h_nTrackIsolSolidVsEt_
std::vector< std::vector< std::vector< MonitorElement * > > > p_phoSigmaEoverEvsNVtx_
MonitorElement * h_phoEt_Loose_
std::vector< std::vector< std::vector< MonitorElement * > > > p_ecalSumVsEt_
std::vector< std::vector< std::vector< MonitorElement * > > > h_r9_
MonitorElement * h_invMassAllPhotons_
std::vector< std::vector< MonitorElement * > > p_nTrackIsolHollowVsEt_
std::vector< std::vector< MonitorElement * > > h_trackPtSumHollowVsEt_
std::vector< std::vector< MonitorElement * > > h_nTrackIsolSolidVsEta_
std::vector< std::vector< std::vector< MonitorElement * > > > h_scPhi_
std::vector< std::vector< MonitorElement * > > p_e1x5VsEt_
part
Definition: HCALResponse.h:20
MonitorElement * h_invMassPhotonsEEndcap_
std::vector< std::vector< MonitorElement * > > p_nTrackIsolHollowVsEta_
std::vector< std::vector< MonitorElement * > > h_trackPtSumSolidVsEt_
std::vector< std::vector< std::vector< MonitorElement * > > > h_h2OverE_
std::vector< std::vector< MonitorElement * > > p_r2x5VsEta_
std::vector< std::vector< MonitorElement * > > p_r9VsEt_
std::vector< std::vector< MonitorElement * > > h_phoIsoBarrel_
std::vector< std::vector< MonitorElement * > > p_trackPtSumHollowVsEta_
std::vector< std::vector< MonitorElement * > > p_trackPtSumSolidVsEt_
std::vector< std::vector< MonitorElement * > > p_ecalSumVsEta_
std::vector< std::vector< MonitorElement * > > h_tkChi2_
std::vector< std::vector< MonitorElement * > > h_trackPtSumHollowVsEta_
edm::ParameterSet parameters_
std::vector< std::vector< MonitorElement * > > h_phoConvEtaForEfficiency_
MonitorElement * h_convEt_Tight_
std::vector< std::vector< MonitorElement * > > h_hcalSumVsEt_
std::vector< std::vector< MonitorElement * > > p_trackPtSumHollowVsEt_
MonitorElement * h_phoEta_postHLT_
std::vector< std::vector< MonitorElement * > > h_e1x5VsEta_
MonitorElement * h_phoEta_Loose_
std::vector< std::vector< std::vector< MonitorElement * > > > h_dPhiTracksAtEcal_
std::vector< std::vector< MonitorElement * > > h_trackPtSumSolid_
std::vector< std::vector< std::vector< MonitorElement * > > > h_nConv_
std::vector< std::vector< MonitorElement * > > h_r2x5VsEt_
MonitorElement * bookInt(const char *name)
Book int.
Definition: DQMStore.cc:835
std::vector< std::vector< MonitorElement * > > h_phoEt_BadChannels_
std::vector< std::vector< MonitorElement * > > h_r2x5VsEta_
std::vector< std::vector< MonitorElement * > > h_nHadIsoEndcap_
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoPhi_
std::vector< std::vector< MonitorElement * > > h_convVtxYvsX_
std::vector< std::vector< MonitorElement * > > h_trackPtSumHollow_
std::vector< std::vector< std::vector< MonitorElement * > > > h_nPho_
std::vector< std::vector< MonitorElement * > > h_r9VsEt_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:639
std::vector< std::vector< std::vector< MonitorElement * > > > h_phoConvPhi_
std::vector< std::vector< MonitorElement * > > h_ecalSumVsEt_
std::vector< std::vector< MonitorElement * > > h_ecalSumEEndcap_
std::vector< std::vector< MonitorElement * > > h_ecalSumEBarrel_
void book2DHistoVector(std::vector< std::vector< MonitorElement * > > &toFill, std::string histoType, std::string histoName, std::string title, int xbin, double xmin, double xmax, int ybin=1, double ymin=1, double ymax=2)
std::vector< std::vector< MonitorElement * > > p_tkChi2VsEta_
void PhotonAnalyzer::book2DHistoVector ( std::vector< std::vector< MonitorElement * > > &  toFill,
std::string  histoType,
std::string  histoName,
std::string  title,
int  xbin,
double  xmin,
double  xmax,
int  ybin = 1,
double  ymin = 1,
double  ymax = 2 
)
private

Definition at line 1147 of file PhotonAnalyzer.cc.

References DQMStore::book1D(), DQMStore::book2D(), DQMStore::bookProfile(), gather_cfg::cout, GOODCOLL_filter_cfg::cut, dbe_, DQMStore::pwd(), DQMStore::setCurrentFolder(), indexGen::title, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.

1151 {
1152  int histo_index = 0;
1153 
1154  vector<MonitorElement*> temp1DVector;
1155 // vector<vector<MonitorElement*> > temp2DVector;
1156 
1157  //determining which folder we're in
1158  bool conversionPlot = false;
1159  if(dbe_->pwd().find( "Conversions" ) != string::npos) conversionPlot = true;
1160  bool TwoDPlot = false;
1161  if(histoName.find( "2D" ) != string::npos) TwoDPlot = true;
1162 
1163  if(conversionPlot){
1165  histo_index = histo_index_conversions_;
1166  }
1167  else{
1169  histo_index = histo_index_photons_;
1170  }
1171 
1172  stringstream histo_number_stream;
1173  histo_number_stream << "h_";
1174  if(histo_index<10) histo_number_stream << "0";
1175  histo_number_stream << histo_index << "_";
1176 
1177 
1178 
1179  for(int cut = 0; cut != numberOfSteps_; ++cut){ //looping over Et cut values
1180 
1181  for(uint type=0;type!=types_.size();++type){ //looping over isolation type
1182 
1183  currentFolder_.str("");
1184  currentFolder_ << "Egamma/"+fName_+"/" << types_[type] << "Photons/Et above " << (cut+1)*cutStep_ << " GeV";
1185  if(conversionPlot) currentFolder_ << "/Conversions";
1186 
1188 
1189  string kind;
1190  if(conversionPlot) kind = " Conversions: ";
1191  else kind = " Photons: ";
1192 
1193  if(histoType=="1D") temp1DVector.push_back(dbe_->book1D( histo_number_stream.str()+histoName,types_[type]+kind+title,xbin,xmin,xmax));
1194  else if(histoType=="2D"){
1195  if((TwoDPlot && type==0) || !TwoDPlot){//only book the 2D plots in the "AllPhotons" folder
1196  temp1DVector.push_back(dbe_->book2D( histo_number_stream.str()+histoName,types_[type]+kind+title,xbin,xmin,xmax,ybin,ymin,ymax));
1197  }
1198  }
1199  else if(histoType=="Profile") temp1DVector.push_back(dbe_->bookProfile( histo_number_stream.str()+histoName,types_[type]+kind+title,xbin,xmin,xmax,ybin,ymin,ymax,""));
1200  else cout << "bad histoType\n";
1201  }
1202 
1203  temp2DVector.push_back(temp1DVector);
1204  temp1DVector.clear();
1205  }
1206 
1207 // return temp2DVector;
1208 
1209 }
type
Definition: HCALResponse.h:21
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:928
int histo_index_conversions_
std::stringstream currentFolder_
std::string fName_
std::vector< std::string > types_
DQMStore * dbe_
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:1242
tuple cout
Definition: gather_cfg.py:121
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:1056
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:639
const std::string & pwd(void) const
Definition: DQMStore.cc:611
void PhotonAnalyzer::book3DHistoVector ( std::vector< std::vector< std::vector< MonitorElement * > > > &  toFill,
std::string  histoType,
std::string  histoName,
std::string  title,
int  xbin,
double  xmin,
double  xmax,
int  ybin = 1,
double  ymin = 1,
double  ymax = 2 
)
private

Definition at line 1212 of file PhotonAnalyzer.cc.

References DQMStore::book1D(), DQMStore::book2D(), DQMStore::bookProfile(), gather_cfg::cout, GOODCOLL_filter_cfg::cut, dbe_, DQMStore::pwd(), DQMStore::setCurrentFolder(), indexGen::title, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.

1216 {
1217 
1218 
1219  int histo_index = 0;
1220 
1221  vector<MonitorElement*> temp1DVector;
1222  vector<vector<MonitorElement*> > temp2DVector;
1223 // vector<vector<vector<MonitorElement*> > > temp3DVector;
1224 
1225 
1226  //determining which folder we're in
1227  bool conversionPlot = false;
1228  if(dbe_->pwd().find( "Conversions" ) != string::npos) conversionPlot = true;
1229 
1230 
1231  if(conversionPlot){
1233  histo_index = histo_index_conversions_;
1234  }
1235  else{
1237  histo_index = histo_index_photons_;
1238  }
1239 
1240 
1241 
1242  stringstream histo_number_stream;
1243  histo_number_stream << "h_";
1244  if(histo_index<10) histo_number_stream << "0";
1245  histo_number_stream << histo_index << "_";
1246 
1247  for(int cut = 0; cut != numberOfSteps_; ++cut){ //looping over Et cut values
1248 
1249  for(uint type=0;type!=types_.size();++type){ //looping over isolation type
1250 
1251  for(uint part=0;part!=parts_.size();++part){ //looping over different parts of the ecal
1252 
1253  currentFolder_.str("");
1254  currentFolder_ << "Egamma/"+fName_+"/" << types_[type] << "Photons/Et above " << (cut+1)*cutStep_ << " GeV";
1255  if(conversionPlot) currentFolder_ << "/Conversions";
1256 
1258 
1259  string kind;
1260  if(conversionPlot) kind = " Conversions: ";
1261  else kind = " Photons: ";
1262 
1263  if(histoType=="1D") temp1DVector.push_back(dbe_->book1D( histo_number_stream.str()+histoName+parts_[part],types_[type]+kind+parts_[part]+": "+title,xbin,xmin,xmax));
1264  else if(histoType=="2D") temp1DVector.push_back(dbe_->book2D( histo_number_stream.str()+histoName+parts_[part],types_[type]+kind+parts_[part]+": "+title,xbin,xmin,xmax,ybin,ymin,ymax));
1265  else if(histoType=="Profile") temp1DVector.push_back(dbe_->bookProfile( histo_number_stream.str()+histoName+parts_[part],types_[type]+kind+parts_[part]+": "+title,xbin,xmin,xmax,ybin,ymin,ymax,""));
1266  else cout << "bad histoType\n";
1267 
1268 
1269  }
1270 
1271  temp2DVector.push_back(temp1DVector);
1272  temp1DVector.clear();
1273  }
1274 
1275  temp3DVector.push_back(temp2DVector);
1276  temp2DVector.clear();
1277  }
1278 
1279  // return temp3DVector;
1280 }
type
Definition: HCALResponse.h:21
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:928
std::vector< std::string > parts_
int histo_index_conversions_
std::stringstream currentFolder_
std::string fName_
std::vector< std::string > types_
DQMStore * dbe_
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:1242
part
Definition: HCALResponse.h:20
tuple cout
Definition: gather_cfg.py:121
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:1056
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:639
const std::string & pwd(void) const
Definition: DQMStore.cc:611
MonitorElement * PhotonAnalyzer::bookHisto ( std::string  histoName,
std::string  title,
int  bin,
double  min,
double  max 
)
private

Definition at line 1122 of file PhotonAnalyzer.cc.

References newFWLiteAna::bin, DQMStore::book1D(), dbe_, max(), bookConverter::min, DQMStore::pwd(), and indexGen::title.

1123 {
1124 
1125  int histo_index = 0;
1126  stringstream histo_number_stream;
1127 
1128  //determining which folder we're in
1129  if(dbe_->pwd().find( "InvMass" ) != string::npos){
1131  histo_index = histo_index_invMass_;
1132  }
1133  if(dbe_->pwd().find( "Efficiencies" ) != string::npos){
1135  histo_index = histo_index_efficiency_;
1136  }
1137 
1138  histo_number_stream << "h_";
1139  if(histo_index<10) histo_number_stream << "0";
1140  histo_number_stream << histo_index;
1141 
1142  return dbe_->book1D(histo_number_stream.str()+"_"+histoName,title,bin,min,max);
1143 
1144 }
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:928
const T & max(const T &a, const T &b)
DQMStore * dbe_
const std::string & pwd(void) const
Definition: DQMStore.cc:611
void PhotonAnalyzer::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 1054 of file PhotonAnalyzer.cc.

References dbe_, DQMStore::save(), and DQMStore::setCurrentFolder().

1055 {
1056  //dbe_->showDirStructure();
1057  if(standAlone_){
1058  dbe_->setCurrentFolder("Egamma/"+fName_+"/");
1059 
1060  //keep track of how many histos are in each folder
1065 
1066 
1068  }
1069 
1070 
1071 }
MonitorElement * totalNumberOfHistos_photonsFolder
MonitorElement * totalNumberOfHistos_efficiencyFolder
int histo_index_conversions_
MonitorElement * totalNumberOfHistos_conversionsFolder
void Fill(long long x)
std::string fName_
MonitorElement * totalNumberOfHistos_invMassFolder
DQMStore * dbe_
std::string outputFileName_
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2424
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:639
void PhotonAnalyzer::endRun ( const edm::Run run,
const edm::EventSetup setup 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 1037 of file PhotonAnalyzer.cc.

References dbe_, and DQMStore::setCurrentFolder().

1038 {
1039  if(!standAlone_){
1040 
1041 
1042  dbe_->setCurrentFolder("Egamma/"+fName_+"/");
1043  //keep track of how many histos are in each folder
1048 
1049  }
1050 
1051 }
MonitorElement * totalNumberOfHistos_photonsFolder
MonitorElement * totalNumberOfHistos_efficiencyFolder
int histo_index_conversions_
MonitorElement * totalNumberOfHistos_conversionsFolder
void Fill(long long x)
std::string fName_
MonitorElement * totalNumberOfHistos_invMassFolder
DQMStore * dbe_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:639
void PhotonAnalyzer::fill2DHistoVector ( std::vector< std::vector< MonitorElement * > > &  histoVector,
double  x,
int  cut,
int  type 
)
private

Definition at line 1096 of file PhotonAnalyzer.cc.

References GOODCOLL_filter_cfg::cut.

1096  {
1097 
1098  histoVector[cut][0]->Fill(x);
1099  histoVector[cut][type]->Fill(x);
1100 
1101 }
type
Definition: HCALResponse.h:21
Definition: DDAxes.h:10
void PhotonAnalyzer::fill2DHistoVector ( std::vector< std::vector< MonitorElement * > > &  histoVector,
double  x,
double  y,
int  cut,
int  type 
)
private

Definition at line 1089 of file PhotonAnalyzer.cc.

References GOODCOLL_filter_cfg::cut, and findQualityFiles::size.

1089  {
1090 
1091  histoVector[cut][0]->Fill(x,y);
1092  if(histoVector[cut].size()>1) histoVector[cut][type]->Fill(x,y); //don't try to fill 2D histos that are only in the "AllPhotons" folder
1093 
1094 }
type
Definition: HCALResponse.h:21
Definition: DDAxes.h:10
tuple size
Write out results.
void PhotonAnalyzer::fill3DHistoVector ( std::vector< std::vector< std::vector< MonitorElement * > > > &  histoVector,
double  x,
int  cut,
int  type,
int  part 
)
private

Definition at line 1103 of file PhotonAnalyzer.cc.

References GOODCOLL_filter_cfg::cut.

1103  {
1104 
1105  histoVector[cut][0][0]->Fill(x);
1106  histoVector[cut][0][part]->Fill(x);
1107  histoVector[cut][type][0]->Fill(x);
1108  histoVector[cut][type][part]->Fill(x);
1109 
1110 }
type
Definition: HCALResponse.h:21
part
Definition: HCALResponse.h:20
Definition: DDAxes.h:10
void PhotonAnalyzer::fill3DHistoVector ( std::vector< std::vector< std::vector< MonitorElement * > > > &  histoVector,
double  x,
double  y,
int  cut,
int  type,
int  part 
)
private

Definition at line 1112 of file PhotonAnalyzer.cc.

References GOODCOLL_filter_cfg::cut.

1112  {
1113 
1114  histoVector[cut][0][0]->Fill(x,y);
1115  histoVector[cut][0][part]->Fill(x,y);
1116  histoVector[cut][type][0]->Fill(x,y);
1117  histoVector[cut][type][part]->Fill(x,y);
1118 
1119 }
type
Definition: HCALResponse.h:21
part
Definition: HCALResponse.h:20
Definition: DDAxes.h:10
float PhotonAnalyzer::phiNormalization ( float &  a)
private

Definition at line 1077 of file PhotonAnalyzer.cc.

References phi, PI, and TWOPI.

1078 {
1079  const float PI = 3.1415927;
1080  const float TWOPI = 2.0*PI;
1081 
1082  if(phi > PI) {phi = phi - TWOPI;}
1083  if(phi < -PI) {phi = phi + TWOPI;}
1084 
1085  return phi;
1086 }
#define PI
#define TWOPI
EgammaCoreTools.
Definition: DDAxes.h:10
bool PhotonAnalyzer::photonSelection ( const reco::PhotonRef p)
private

remove after moriond if (EtCorrEcalIso>4.0) result=false;

remove after moriond if (EtCorrEcalIso>50.0) result=false;

Definition at line 1282 of file PhotonAnalyzer.cc.

References edm::false, and query::result.

1282  {
1283 
1284 
1285  bool result=true;
1286  if ( pho->pt() < minPhoEtCut_ ) result=false;
1287  if ( fabs(pho->eta()) > photonMaxEta_ ) result=false;
1288  if ( pho->isEBEEGap() ) result=false;
1289 
1290  double EtCorrHcalIso = pho->hcalTowerSumEtConeDR03() - 0.005*pho->pt();
1291  double EtCorrTrkIso = pho->trkSumPtHollowConeDR03() - 0.002*pho->pt();
1292 
1293  if (pho->r9() <=0.9) {
1294  if (pho->isEB() && (pho->hadTowOverEm()>0.075 || pho->sigmaIetaIeta() > 0.014)) result=false;
1295  if (pho->isEE() && (pho->hadTowOverEm()>0.075 || pho->sigmaIetaIeta() > 0.034)) result=false;
1297  if (EtCorrHcalIso>4.0) result=false;
1298  if (EtCorrTrkIso>4.0) result=false ;
1299  if ( pho->chargedHadronIso() > 4 ) result=false;
1300 
1301  } else {
1302  if (pho->isEB() && (pho->hadTowOverEm()>0.082 || pho->sigmaIetaIeta() > 0.014)) result=false;
1303  if (pho->isEE() && (pho->hadTowOverEm()>0.075 || pho->sigmaIetaIeta() > 0.034)) result=false;
1305  if (EtCorrHcalIso>50.0) result=false;
1306  if (EtCorrTrkIso>50.0) result=false;
1307  if ( pho->chargedHadronIso() > 4 ) result=false;
1308 
1309  }
1310 
1311 
1312 
1313  return result;
1314 }
tuple result
Definition: query.py:137
volatile std::atomic< bool > shutdown_flag false

Member Data Documentation

edm::EDGetTokenT<edm::SortedCollection<EcalRecHit,edm::StrictWeakOrdering<EcalRecHit> > > PhotonAnalyzer::barrelRecHit_token_
private

Definition at line 160 of file PhotonAnalyzer.h.

std::stringstream PhotonAnalyzer::currentFolder_
private

Definition at line 192 of file PhotonAnalyzer.h.

double PhotonAnalyzer::cutStep_
private

Definition at line 172 of file PhotonAnalyzer.h.

DQMStore* PhotonAnalyzer::dbe_
private

Definition at line 191 of file PhotonAnalyzer.h.

edm::EDGetTokenT<edm::SortedCollection<EcalRecHit,edm::StrictWeakOrdering<EcalRecHit> > > PhotonAnalyzer::endcapRecHit_token_
private

Definition at line 162 of file PhotonAnalyzer.h.

bool PhotonAnalyzer::excludeBkgHistos_
private

Definition at line 181 of file PhotonAnalyzer.h.

std::string PhotonAnalyzer::fName_
private

Definition at line 149 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_chHadIsoBarrel_
private

Definition at line 272 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_chHadIsoEndcap_
private

Definition at line 273 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_convEt_Loose_
private

Definition at line 227 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_convEt_Tight_
private

Definition at line 228 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_convEta_Loose_
private

Definition at line 225 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_convEta_Tight_
private

Definition at line 226 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_convVtxR_
private

Definition at line 334 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_convVtxRvsZ_
private

Definition at line 330 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_convVtxYvsX_
private

Definition at line 333 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_convVtxZ_
private

Definition at line 332 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_convVtxZEndcap_
private

Definition at line 331 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_dCotTracks_
private

Definition at line 400 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_dEtaTracksAtEcal_
private

Definition at line 405 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_dPhiTracksAtEcal_
private

Definition at line 403 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_dPhiTracksAtVtx_
private

Definition at line 402 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_e1x5VsEt_
private

Definition at line 340 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_e1x5VsEta_
private

Definition at line 341 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_e2x5VsEt_
private

Definition at line 343 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_e2x5VsEta_
private

Definition at line 344 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_ecalSum_
private

Definition at line 263 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_ecalSumEBarrel_
private

Definition at line 264 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_ecalSumEEndcap_
private

Definition at line 265 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_ecalSumVsEt_
private

Definition at line 255 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_ecalSumVsEta_
private

Definition at line 247 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_eOverPTracks_
private

Definition at line 397 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_h1OverE_
private

Definition at line 384 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_h2OverE_
private

Definition at line 385 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_hcalSum_
private

Definition at line 266 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_hcalSumEBarrel_
private

Definition at line 267 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_hcalSumEEndcap_
private

Definition at line 268 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_hcalSumVsEt_
private

Definition at line 256 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_hcalSumVsEta_
private

Definition at line 248 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_hOverE_
private

Definition at line 383 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_invMassAllPhotons_
private

Definition at line 236 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_invMassOneWithTracks_
private

Definition at line 234 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_invMassPhotonsEBarrel_
private

Definition at line 237 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_invMassPhotonsEEndcap_
private

Definition at line 238 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_invMassTwoWithTracks_
private

Definition at line 233 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_invMassZeroWithTracks_
private

Definition at line 235 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_maxEXtalOver3x3VsEt_
private

Definition at line 346 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_maxEXtalOver3x3VsEta_
private

Definition at line 347 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_nConv_
private

Definition at line 395 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_nHadIsoBarrel_
private

Definition at line 274 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_nHadIsoEndcap_
private

Definition at line 275 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_nPho_
private

Definition at line 389 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_nRecoVtx_
private

Definition at line 213 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_nTrackIsolHollow_
private

Definition at line 261 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_nTrackIsolHollowVsEt_
private

Definition at line 253 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_nTrackIsolHollowVsEta_
private

Definition at line 245 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_nTrackIsolSolid_
private

Definition at line 259 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_nTrackIsolSolidVsEt_
private

Definition at line 251 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_nTrackIsolSolidVsEta_
private

Definition at line 243 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_phoConvE_
private

Definition at line 391 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_phoConvEt_
private

Definition at line 392 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_phoConvEta_
private

Definition at line 328 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_phoConvEtaForEfficiency_
private

Definition at line 322 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_phoConvPhi_
private

Definition at line 379 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_phoConvPhiForEfficiency_
private

Definition at line 378 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_phoConvR9_
private

Definition at line 393 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_phoE_
private

Definition at line 371 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_phoEt_
private

Definition at line 374 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_phoEt_BadChannels_
private

Definition at line 325 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_phoEt_Loose_
private

Definition at line 217 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_phoEt_postHLT_
private

Definition at line 223 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_phoEt_preHLT_
private

Definition at line 222 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_phoEt_Tight_
private

Definition at line 218 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_phoEta_
private

Definition at line 318 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_phoEta_BadChannels_
private

Definition at line 324 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_phoEta_Loose_
private

Definition at line 215 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_phoEta_postHLT_
private

Definition at line 221 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_phoEta_preHLT_
private

Definition at line 220 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_phoEta_Tight_
private

Definition at line 216 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::h_phoEta_Vertex_
private

Definition at line 231 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_phoIsoBarrel_
private

Definition at line 270 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_phoIsoEndcap_
private

Definition at line 271 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_phoPhi_
private

Definition at line 376 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_phoPhi_BadChannels_
private

Definition at line 326 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_phoSigmaEoverE_
private

Definition at line 372 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_phoSigmaIetaIeta_
private

Definition at line 387 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_pOverETracks_
private

Definition at line 398 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_r1x5VsEt_
private

Definition at line 349 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_r1x5VsEta_
private

Definition at line 350 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_r2x5VsEt_
private

Definition at line 352 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_r2x5VsEta_
private

Definition at line 353 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_r9_
private

Definition at line 375 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_r9VsEt_
private

Definition at line 336 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_r9VsEta_
private

Definition at line 337 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_scEta_
private

Definition at line 319 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::h_scPhi_
private

Definition at line 377 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_sigmaIetaIetaVsEta_
private

Definition at line 355 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_tkChi2_
private

Definition at line 357 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_trackPtSumHollow_
private

Definition at line 262 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_trackPtSumHollowVsEt_
private

Definition at line 254 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_trackPtSumHollowVsEta_
private

Definition at line 246 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_trackPtSumSolid_
private

Definition at line 260 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_trackPtSumSolidVsEt_
private

Definition at line 252 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_trackPtSumSolidVsEta_
private

Definition at line 244 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::h_vertexChi2Prob_
private

Definition at line 359 of file PhotonAnalyzer.h.

int PhotonAnalyzer::histo_index_conversions_
private

Definition at line 195 of file PhotonAnalyzer.h.

int PhotonAnalyzer::histo_index_efficiency_
private

Definition at line 196 of file PhotonAnalyzer.h.

int PhotonAnalyzer::histo_index_invMass_
private

Definition at line 197 of file PhotonAnalyzer.h.

int PhotonAnalyzer::histo_index_photons_
private

Definition at line 194 of file PhotonAnalyzer.h.

double PhotonAnalyzer::invMassEtCut_
private

Definition at line 170 of file PhotonAnalyzer.h.

bool PhotonAnalyzer::isHeavyIon_
private

Definition at line 185 of file PhotonAnalyzer.h.

int PhotonAnalyzer::isolationStrength_
private

Definition at line 183 of file PhotonAnalyzer.h.

bool PhotonAnalyzer::minimalSetOfHistos_
private

Definition at line 180 of file PhotonAnalyzer.h.

double PhotonAnalyzer::minPhoEtCut_
private

Definition at line 168 of file PhotonAnalyzer.h.

int PhotonAnalyzer::nEntry_
private

Definition at line 201 of file PhotonAnalyzer.h.

int PhotonAnalyzer::nEvt_
private

Definition at line 200 of file PhotonAnalyzer.h.

int PhotonAnalyzer::numberOfSteps_
private

Definition at line 173 of file PhotonAnalyzer.h.

edm::EDGetTokenT<reco::VertexCollection> PhotonAnalyzer::offline_pvToken_
private

Definition at line 166 of file PhotonAnalyzer.h.

std::string PhotonAnalyzer::outputFileName_
private

Definition at line 178 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_dCotTracksVsEta_
private

Definition at line 313 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_e1x5VsEt_
private

Definition at line 296 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_e1x5VsEta_
private

Definition at line 297 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_e2x5VsEt_
private

Definition at line 299 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_e2x5VsEta_
private

Definition at line 300 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::p_ecalSumVsEt_
private

Definition at line 368 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_ecalSumVsEta_
private

Definition at line 282 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::p_hcalSumVsEt_
private

Definition at line 369 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_hcalSumVsEta_
private

Definition at line 283 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_hOverEVsEt_
private

Definition at line 316 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_hOverEVsEta_
private

Definition at line 315 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_maxEXtalOver3x3VsEt_
private

Definition at line 302 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_maxEXtalOver3x3VsEta_
private

Definition at line 303 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_nHitsVsEta_
private

Definition at line 361 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_nTrackIsolHollowVsEt_
private

Definition at line 287 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_nTrackIsolHollowVsEta_
private

Definition at line 280 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_nTrackIsolSolidVsEt_
private

Definition at line 285 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_nTrackIsolSolidVsEta_
private

Definition at line 278 of file PhotonAnalyzer.h.

std::vector<std::vector<std::vector<MonitorElement*> > > PhotonAnalyzer::p_phoSigmaEoverEvsNVtx_
private

Definition at line 373 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_r1x5VsEt_
private

Definition at line 305 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_r1x5VsEta_
private

Definition at line 306 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_r2x5VsEt_
private

Definition at line 308 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_r2x5VsEta_
private

Definition at line 309 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_r9VsEt_
private

Definition at line 293 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_r9VsEta_
private

Definition at line 294 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_sigmaIetaIetaVsEta_
private

Definition at line 311 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_tkChi2VsEta_
private

Definition at line 363 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_trackPtSumHollowVsEt_
private

Definition at line 288 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_trackPtSumHollowVsEta_
private

Definition at line 281 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_trackPtSumSolidVsEt_
private

Definition at line 286 of file PhotonAnalyzer.h.

std::vector<std::vector<MonitorElement*> > PhotonAnalyzer::p_trackPtSumSolidVsEta_
private

Definition at line 279 of file PhotonAnalyzer.h.

edm::ParameterSet PhotonAnalyzer::parameters_
private
std::vector<std::string> PhotonAnalyzer::parts_
private

Definition at line 204 of file PhotonAnalyzer.h.

edm::EDGetTokenT<std::vector<reco::Photon> > PhotonAnalyzer::photon_token_
private

Definition at line 154 of file PhotonAnalyzer.h.

edm::EDGetTokenT<edm::ValueMap<bool> > PhotonAnalyzer::PhotonIDLoose_token_
private

Definition at line 156 of file PhotonAnalyzer.h.

edm::EDGetTokenT<edm::ValueMap<bool> > PhotonAnalyzer::PhotonIDTight_token_
private

Definition at line 158 of file PhotonAnalyzer.h.

double PhotonAnalyzer::photonMaxEta_
private

Definition at line 169 of file PhotonAnalyzer.h.

unsigned int PhotonAnalyzer::prescaleFactor_
private

Definition at line 152 of file PhotonAnalyzer.h.

bool PhotonAnalyzer::standAlone_
private

Definition at line 177 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::totalNumberOfHistos_conversionsFolder
private

Definition at line 211 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::totalNumberOfHistos_efficiencyFolder
private

Definition at line 208 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::totalNumberOfHistos_invMassFolder
private

Definition at line 209 of file PhotonAnalyzer.h.

MonitorElement* PhotonAnalyzer::totalNumberOfHistos_photonsFolder
private

Definition at line 210 of file PhotonAnalyzer.h.

edm::EDGetTokenT<trigger::TriggerEvent> PhotonAnalyzer::triggerEvent_token_
private

Definition at line 164 of file PhotonAnalyzer.h.

std::vector<std::string> PhotonAnalyzer::types_
private

Definition at line 203 of file PhotonAnalyzer.h.

bool PhotonAnalyzer::useBinning_
private

Definition at line 175 of file PhotonAnalyzer.h.

bool PhotonAnalyzer::useTriggerFiltering_
private

Definition at line 176 of file PhotonAnalyzer.h.

int PhotonAnalyzer::verbosity_
private

Definition at line 150 of file PhotonAnalyzer.h.