CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
SimpleConvertedPhotonAnalyzer Class Reference

#include <SimpleConvertedPhotonAnalyzer.h>

Inheritance diagram for SimpleConvertedPhotonAnalyzer:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void endJob () override
 
 SimpleConvertedPhotonAnalyzer (const edm::ParameterSet &)
 
 ~SimpleConvertedPhotonAnalyzer () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

float etaTransformation (float a, float b)
 

Private Attributes

std::string convertedPhotonCollection_
 
std::string convertedPhotonCollectionProducer_
 
TFile * fOutputFile_
 
std::string fOutputFileName_
 
TH2F * h2_tk_inPtVsR_
 
TH2F * h2_tk_nHitsVsR_
 
TH1F * h_deltaEta_
 
TH1F * h_deltaPhi_
 
TH1F * h_ErecoEMC_
 
TH1F * h_MCConvE_
 
TH1F * h_MCConvEta_
 
TH1F * h_MCConvPt_
 
TH1F * h_MCphoE_
 
TH1F * h_MCphoEta_
 
TH1F * h_MCphoPhi_
 
TH1F * h_phoE_
 
TH1F * h_phoEta_
 
TH1F * h_phoPhi_
 
TH1F * h_scE_
 
TH1F * h_scEta_
 
TH1F * h_scPhi_
 
std::string HepMCLabel
 
int nEvt_
 
int nMatched_
 
int nMCPho_
 
std::string SimHitLabel
 
std::string SimTkLabel
 
std::string SimVtxLabel
 
PhotonMCTruthFinderthePhotonMCTruthFinder_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 20 of file SimpleConvertedPhotonAnalyzer.h.

Constructor & Destructor Documentation

◆ SimpleConvertedPhotonAnalyzer()

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

Definition at line 43 of file SimpleConvertedPhotonAnalyzer.cc.

44  : fOutputFileName_(pset.getUntrackedParameter<string>("HistOutFile", std::string("TestConversions.root"))),
45  fOutputFile_(nullptr) {
46  convertedPhotonCollectionProducer_ = pset.getParameter<std::string>("phoProducer");
47  convertedPhotonCollection_ = pset.getParameter<std::string>("convertedPhotonCollection");
48  //
49 }

References convertedPhotonCollection_, convertedPhotonCollectionProducer_, muonDTDigis_cfi::pset, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~SimpleConvertedPhotonAnalyzer()

SimpleConvertedPhotonAnalyzer::~SimpleConvertedPhotonAnalyzer ( )
override

Definition at line 51 of file SimpleConvertedPhotonAnalyzer.cc.

51 { delete thePhotonMCTruthFinder_; }

References thePhotonMCTruthFinder_.

Member Function Documentation

◆ analyze()

void SimpleConvertedPhotonAnalyzer::analyze ( const edm::Event e,
const edm::EventSetup  
)
overridevirtual

Loop over recontructed photons

End loop over Reco particles

End loop over MC particles

Implements edm::one::EDAnalyzerBase.

Definition at line 130 of file SimpleConvertedPhotonAnalyzer.cc.

130  {
131  using namespace edm;
132  const float etaPhiDistance = 0.01;
133  // Fiducial region
134  //UNUSED const float TRK_BARL =0.9;
135  const float BARL = 1.4442; // DAQ TDR p.290
136  const float END_LO = 1.566;
137  const float END_HI = 2.5;
138  // Electron mass
139  //UNUSED const Float_t mElec= 0.000511;
140 
141  nEvt_++;
142  LogInfo("ConvertedPhotonAnalyzer") << "ConvertedPhotonAnalyzer Analyzing event number: " << e.id()
143  << " Global Counter " << nEvt_ << "\n";
144  // LogDebug("ConvertedPhotonAnalyzer") << "ConvertedPhotonAnalyzer Analyzing event number: " << e.id() << " Global Counter " << nEvt_ <<"\n";
145  std::cout << "ConvertedPhotonAnalyzer Analyzing event number: " << e.id() << " Global Counter " << nEvt_ << "\n";
146 
148  Handle<reco::ConversionCollection> convertedPhotonHandle;
149  e.getByLabel(convertedPhotonCollectionProducer_, convertedPhotonCollection_, convertedPhotonHandle);
150  const reco::ConversionCollection phoCollection = *(convertedPhotonHandle.product());
151  std::cout << "ConvertedPhotonAnalyzer Converted photon collection size " << phoCollection.size() << "\n";
152 
154  std::cout << " ConvertedPhotonAnalyzer Looking for MC truth "
155  << "\n";
156 
157  //get simtrack info
158  std::vector<SimTrack> theSimTracks;
159  std::vector<SimVertex> theSimVertices;
160 
163  e.getByLabel("g4SimHits", SimTk);
164  e.getByLabel("g4SimHits", SimVtx);
165 
166  theSimTracks.insert(theSimTracks.end(), SimTk->begin(), SimTk->end());
167  theSimVertices.insert(theSimVertices.end(), SimVtx->begin(), SimVtx->end());
168 
169  std::vector<PhotonMCTruth> mcPhotons = thePhotonMCTruthFinder_->find(theSimTracks, theSimVertices);
170  std::cout << " ConvertedPhotonAnalyzer mcPhotons size " << mcPhotons.size() << std::endl;
171 
172  // Loop over simulated photons
173  //UNUSED int iDet=0;
174  //UNUSED int iRadius=-1;
175  //UNUSED int indPho=0;
176 
177  for (std::vector<PhotonMCTruth>::const_iterator mcPho = mcPhotons.begin(); mcPho != mcPhotons.end(); mcPho++) {
178  float mcPhi = (*mcPho).fourMomentum().phi();
179  float mcEta = (*mcPho).fourMomentum().pseudoRapidity();
180  mcEta = etaTransformation(mcEta, (*mcPho).primaryVertex().z());
181 
182  if (!(fabs(mcEta) <= BARL || (fabs(mcEta) >= END_LO && fabs(mcEta) <= END_HI))) {
183  continue;
184  } // all ecal fiducial region
185 
186  std::cout << " ConvertedPhotonAnalyzer MC Photons before matching " << std::endl;
187  std::cout << " ConvertedPhotonAnalyzer Photons isAconversion " << (*mcPho).isAConversion()
188  << " mcMatchingPhoton energy " << (*mcPho).fourMomentum().e() << " conversion vertex R "
189  << (*mcPho).vertex().perp() << " Z " << (*mcPho).vertex().z() << " x " << (*mcPho).vertex().x() << " y "
190  << (*mcPho).vertex().y() << " z " << (*mcPho).vertex().z() << std::endl;
191  std::cout << " ConvertedPhotonAnalyzer mcEta " << mcEta << " mcPhi " << mcPhi << std::endl;
192 
193  h_MCphoE_->Fill((*mcPho).fourMomentum().e());
194  h_MCphoEta_->Fill((*mcPho).fourMomentum().eta());
195  h_MCphoPhi_->Fill((*mcPho).fourMomentum().phi());
196 
197  // keep only visible conversions
198  if ((*mcPho).isAConversion() == 0)
199  continue;
200 
201  nMCPho_++;
202 
203  h_MCConvEta_->Fill(fabs((*mcPho).fourMomentum().pseudoRapidity()) - 0.001);
204 
205  bool REJECTED;
206 
208  std::cout << " ConvertedPhotonAnalyzer Starting loop over photon candidates "
209  << "\n";
210  for (reco::ConversionCollection::const_iterator iPho = phoCollection.begin(); iPho != phoCollection.end(); iPho++) {
211  REJECTED = false;
212 
213  std::cout << " ConvertedPhotonAnalyzer Reco SC energy " << (*iPho).caloCluster()[0]->energy() << "\n";
214 
215  float phiClu = (*iPho).caloCluster()[0]->phi();
216  float etaClu = (*iPho).caloCluster()[0]->eta();
217  float deltaPhi = phiClu - mcPhi;
218  float deltaEta = etaClu - mcEta;
219 
220  if (deltaPhi > Geom::pi())
221  deltaPhi -= Geom::twoPi();
222  if (deltaPhi < -Geom::pi())
223  deltaPhi += Geom::twoPi();
224  deltaPhi = std::pow(deltaPhi, 2);
225  deltaEta = std::pow(deltaEta, 2);
226  float delta = deltaPhi + deltaEta;
227  if (delta >= etaPhiDistance)
228  REJECTED = true;
229 
230  // if ( ! ( fabs(etaClu) <= BARL || ( fabs(etaClu) >= END_LO && fabs(etaClu) <=END_HI ) ) ) REJECTED=true;
231 
232  if (REJECTED)
233  continue;
234  std::cout << " MATCHED " << std::endl;
235  nMatched_++;
236 
237  std::cout << " ConvertedPhotonAnalyzer Matching candidate " << std::endl;
238 
239  std::cout << " ConvertedPhotonAnalyzer Photons isAconversion " << (*mcPho).isAConversion()
240  << " mcMatchingPhoton energy " << (*mcPho).fourMomentum().e()
241  << " ConvertedPhotonAnalyzer conversion vertex R " << (*mcPho).vertex().perp() << " Z "
242  << (*mcPho).vertex().z() << std::endl;
243 
244  h_ErecoEMC_->Fill((*iPho).caloCluster()[0]->energy() / (*mcPho).fourMomentum().e());
245  h_deltaPhi_->Fill((*iPho).caloCluster()[0]->position().phi() - mcPhi);
246  h_deltaEta_->Fill((*iPho).caloCluster()[0]->position().eta() - mcEta);
247 
248  h_scE_->Fill((*iPho).caloCluster()[0]->energy());
249  h_scEta_->Fill((*iPho).caloCluster()[0]->position().eta());
250  h_scPhi_->Fill((*iPho).caloCluster()[0]->position().phi());
251 
252  for (unsigned int i = 0; i < (*iPho).tracks().size(); i++) {
253  std::cout << " ConvertedPhotonAnalyzer Reco Track charge " << (*iPho).tracks()[i]->charge()
254  << " Num of RecHits " << (*iPho).tracks()[i]->recHitsSize() << " inner momentum "
255  << sqrt((*iPho).tracks()[i]->innerMomentum().Mag2()) << "\n";
256 
257  h2_tk_nHitsVsR_->Fill((*mcPho).vertex().perp(), (*iPho).tracks()[i]->recHitsSize());
258  h2_tk_inPtVsR_->Fill((*mcPho).vertex().perp(), sqrt((*iPho).tracks()[i]->innerMomentum().Mag2()));
259  }
260 
261  }
262 
263  }
264 }

References convertedPhotonCollection_, convertedPhotonCollectionProducer_, gather_cfg::cout, dumpMFGeometry_cfg::delta, spr::deltaEta, SiPixelRawToDigiRegional_cfi::deltaPhi, MillePedeFileConverter_cfg::e, etaTransformation(), PhotonMCTruthFinder::find(), h2_tk_inPtVsR_, h2_tk_nHitsVsR_, h_deltaEta_, h_deltaPhi_, h_ErecoEMC_, h_MCConvEta_, h_MCphoE_, h_MCphoEta_, h_MCphoPhi_, h_scE_, h_scEta_, h_scPhi_, mps_fire::i, nEvt_, nMatched_, nMCPho_, Geom::pi(), funct::pow(), edm::Handle< T >::product(), mathSSE::sqrt(), thePhotonMCTruthFinder_, and Geom::twoPi().

◆ beginJob()

void SimpleConvertedPhotonAnalyzer::beginJob ( void  )
overridevirtual

Reco - MC

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 53 of file SimpleConvertedPhotonAnalyzer.cc.

53  {
54  nEvt_ = 0;
55  nMCPho_ = 0;
56  nMatched_ = 0;
57 
59 
60  fOutputFile_ = new TFile(fOutputFileName_.c_str(), "RECREATE");
61 
63  h_ErecoEMC_ = new TH1F("deltaE", " delta(reco-mc) energy", 100, 0., 2.);
64  h_deltaPhi_ = new TH1F("deltaPhi", " delta(reco-mc) phi", 100, -0.1, 0.1);
65  h_deltaEta_ = new TH1F("deltaEta", " delta(reco-mc) eta", 100, -0.05, 0.05);
66 
68  h_MCphoE_ = new TH1F("MCphoE", "MC photon energy", 100, 0., 100.);
69  h_MCphoPhi_ = new TH1F("MCphoPhi", "MC photon phi", 40, -3.14, 3.14);
70  h_MCphoEta_ = new TH1F("MCphoEta", "MC photon eta", 40, -3., 3.);
71 
73  h_MCConvE_ = new TH1F("MCConvE", "MC converted photon energy", 100, 0., 100.);
74  h_MCConvPt_ = new TH1F("MCConvPt", "MC converted photon pt", 100, 0., 100.);
75  h_MCConvEta_ = new TH1F("MCConvEta", "MC converted photon eta", 50, 0., 2.5);
76 
78  h_scE_ = new TH1F("scE", "Uncorrected converted photons : SC Energy ", 100, 0., 200.);
79  h_scEta_ = new TH1F("scEta", "Uncorrected converted photons: SC Eta ", 40, -3., 3.);
80  h_scPhi_ = new TH1F("scPhi", "Uncorrected converted photons: SC Phi ", 40, -3.14, 3.14);
81  //
82  h_phoE_ = new TH1F("phoE", "Uncorrected converted photons : Energy ", 100, 0., 200.);
83  h_phoEta_ = new TH1F("phoEta", "Uncorrected converted photons: Eta ", 40, -3., 3.);
84  h_phoPhi_ = new TH1F("phoPhi", "Uncorrected converted photons: Phi ", 40, -3.14, 3.14);
85 
86  // Recontructed tracks from converted photon candidates
87  h2_tk_nHitsVsR_ = new TH2F("tknHitsVsR", "Tracks Hits vs R ", 12, 0., 120., 20, 0.5, 20.5);
88  h2_tk_inPtVsR_ = new TH2F("tkInPtvsR", "Tracks inner Pt vs R ", 12, 0., 120., 100, 0., 100.);
89 
90  return;
91 }

References fOutputFile_, fOutputFileName_, h2_tk_inPtVsR_, h2_tk_nHitsVsR_, h_deltaEta_, h_deltaPhi_, h_ErecoEMC_, h_MCConvE_, h_MCConvEta_, h_MCConvPt_, h_MCphoE_, h_MCphoEta_, h_MCphoPhi_, h_phoE_, h_phoEta_, h_phoPhi_, h_scE_, h_scEta_, h_scPhi_, nEvt_, nMatched_, nMCPho_, and thePhotonMCTruthFinder_.

◆ endJob()

void SimpleConvertedPhotonAnalyzer::endJob ( void  )
overridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 266 of file SimpleConvertedPhotonAnalyzer.cc.

266  {
267  fOutputFile_->Write();
268  fOutputFile_->Close();
269 
270  edm::LogInfo("ConvertedPhotonAnalyzer") << "Analyzed " << nEvt_ << "\n";
271  // std::cout << "::endJob Analyzed " << nEvt_ << " events " << " with total " << nPho_ << " Photons " << "\n";
272  std::cout << "ConvertedPhotonAnalyzer::endJob Analyzed " << nEvt_ << " events "
273  << "\n";
274 
275  return;
276 }

References gather_cfg::cout, fOutputFile_, and nEvt_.

◆ etaTransformation()

float SimpleConvertedPhotonAnalyzer::etaTransformation ( float  a,
float  b 
)
private

Definition at line 93 of file SimpleConvertedPhotonAnalyzer.cc.

93  {
94  //---Definitions
95  const float PI = 3.1415927;
96  //UNUSED const float TWOPI = 2.0*PI;
97 
98  //---Definitions for ECAL
99  const float R_ECAL = 136.5;
100  const float Z_Endcap = 328.0;
101  const float etaBarrelEndcap = 1.479;
102 
103  //---ETA correction
104 
105  float Theta = 0.0;
106  float ZEcal = R_ECAL * sinh(EtaParticle) + Zvertex;
107 
108  if (ZEcal != 0.0)
109  Theta = atan(R_ECAL / ZEcal);
110  if (Theta < 0.0)
111  Theta = Theta + PI;
112  float ETA = -log(tan(0.5 * Theta));
113 
114  if (fabs(ETA) > etaBarrelEndcap) {
115  float Zend = Z_Endcap;
116  if (EtaParticle < 0.0)
117  Zend = -Zend;
118  float Zlen = Zend - Zvertex;
119  float RR = Zlen / sinh(EtaParticle);
120  Theta = atan(RR / Zend);
121  if (Theta < 0.0)
122  Theta = Theta + PI;
123  ETA = -log(tan(0.5 * Theta));
124  }
125  //---Return the result
126  return ETA;
127  //---end
128 }

References ETA, etaBarrelEndcap, dqm-mbProfile::log, PI, R_ECAL, funct::tan(), Z_Endcap, and ZEcal.

Referenced by analyze().

Member Data Documentation

◆ convertedPhotonCollection_

std::string SimpleConvertedPhotonAnalyzer::convertedPhotonCollection_
private

Definition at line 49 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and SimpleConvertedPhotonAnalyzer().

◆ convertedPhotonCollectionProducer_

std::string SimpleConvertedPhotonAnalyzer::convertedPhotonCollectionProducer_
private

Definition at line 48 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and SimpleConvertedPhotonAnalyzer().

◆ fOutputFile_

TFile* SimpleConvertedPhotonAnalyzer::fOutputFile_
private

Definition at line 37 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by beginJob(), and endJob().

◆ fOutputFileName_

std::string SimpleConvertedPhotonAnalyzer::fOutputFileName_
private

Definition at line 36 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by beginJob().

◆ h2_tk_inPtVsR_

TH2F* SimpleConvertedPhotonAnalyzer::h2_tk_inPtVsR_
private

Definition at line 77 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ h2_tk_nHitsVsR_

TH2F* SimpleConvertedPhotonAnalyzer::h2_tk_nHitsVsR_
private

Definition at line 75 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ h_deltaEta_

TH1F* SimpleConvertedPhotonAnalyzer::h_deltaEta_
private

Definition at line 53 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ h_deltaPhi_

TH1F* SimpleConvertedPhotonAnalyzer::h_deltaPhi_
private

Definition at line 52 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ h_ErecoEMC_

TH1F* SimpleConvertedPhotonAnalyzer::h_ErecoEMC_
private

Definition at line 51 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ h_MCConvE_

TH1F* SimpleConvertedPhotonAnalyzer::h_MCConvE_
private

Definition at line 61 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by beginJob().

◆ h_MCConvEta_

TH1F* SimpleConvertedPhotonAnalyzer::h_MCConvEta_
private

Definition at line 63 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ h_MCConvPt_

TH1F* SimpleConvertedPhotonAnalyzer::h_MCConvPt_
private

Definition at line 62 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by beginJob().

◆ h_MCphoE_

TH1F* SimpleConvertedPhotonAnalyzer::h_MCphoE_
private

Definition at line 56 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ h_MCphoEta_

TH1F* SimpleConvertedPhotonAnalyzer::h_MCphoEta_
private

Definition at line 58 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ h_MCphoPhi_

TH1F* SimpleConvertedPhotonAnalyzer::h_MCphoPhi_
private

Definition at line 57 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ h_phoE_

TH1F* SimpleConvertedPhotonAnalyzer::h_phoE_
private

Definition at line 70 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by beginJob().

◆ h_phoEta_

TH1F* SimpleConvertedPhotonAnalyzer::h_phoEta_
private

Definition at line 71 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by beginJob().

◆ h_phoPhi_

TH1F* SimpleConvertedPhotonAnalyzer::h_phoPhi_
private

Definition at line 72 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by beginJob().

◆ h_scE_

TH1F* SimpleConvertedPhotonAnalyzer::h_scE_
private

Definition at line 66 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ h_scEta_

TH1F* SimpleConvertedPhotonAnalyzer::h_scEta_
private

Definition at line 67 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ h_scPhi_

TH1F* SimpleConvertedPhotonAnalyzer::h_scPhi_
private

Definition at line 68 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ HepMCLabel

std::string SimpleConvertedPhotonAnalyzer::HepMCLabel
private

Definition at line 43 of file SimpleConvertedPhotonAnalyzer.h.

◆ nEvt_

int SimpleConvertedPhotonAnalyzer::nEvt_
private

Definition at line 39 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), beginJob(), and endJob().

◆ nMatched_

int SimpleConvertedPhotonAnalyzer::nMatched_
private

Definition at line 41 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ nMCPho_

int SimpleConvertedPhotonAnalyzer::nMCPho_
private

Definition at line 40 of file SimpleConvertedPhotonAnalyzer.h.

Referenced by analyze(), and beginJob().

◆ SimHitLabel

std::string SimpleConvertedPhotonAnalyzer::SimHitLabel
private

Definition at line 46 of file SimpleConvertedPhotonAnalyzer.h.

◆ SimTkLabel

std::string SimpleConvertedPhotonAnalyzer::SimTkLabel
private

Definition at line 44 of file SimpleConvertedPhotonAnalyzer.h.

◆ SimVtxLabel

std::string SimpleConvertedPhotonAnalyzer::SimVtxLabel
private

Definition at line 45 of file SimpleConvertedPhotonAnalyzer.h.

◆ thePhotonMCTruthFinder_

PhotonMCTruthFinder* SimpleConvertedPhotonAnalyzer::thePhotonMCTruthFinder_
private
SimpleConvertedPhotonAnalyzer::h_MCConvEta_
TH1F * h_MCConvEta_
Definition: SimpleConvertedPhotonAnalyzer.h:63
PI
Definition: PayloadInspector.h:20
mps_fire.i
i
Definition: mps_fire.py:428
SimpleConvertedPhotonAnalyzer::h_phoE_
TH1F * h_phoE_
Definition: SimpleConvertedPhotonAnalyzer.h:70
edm::Handle::product
T const * product() const
Definition: Handle.h:70
PI
#define PI
Definition: QcdUeDQM.h:37
edm
HLT enums.
Definition: AlignableModifier.h:19
gather_cfg.cout
cout
Definition: gather_cfg.py:144
SimpleConvertedPhotonAnalyzer::h_MCphoE_
TH1F * h_MCphoE_
Definition: SimpleConvertedPhotonAnalyzer.h:56
PhotonMCTruthFinder::find
std::vector< PhotonMCTruth > find(const std::vector< SimTrack > &simTracks, const std::vector< SimVertex > &simVertices)
Definition: PhotonMCTruthFinder.cc:17
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
SimpleConvertedPhotonAnalyzer::nEvt_
int nEvt_
Definition: SimpleConvertedPhotonAnalyzer.h:39
edm::Handle< reco::ConversionCollection >
SimpleConvertedPhotonAnalyzer::h_MCConvPt_
TH1F * h_MCConvPt_
Definition: SimpleConvertedPhotonAnalyzer.h:62
reco::ConversionCollection
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
Definition: ConversionFwd.h:9
spr::deltaEta
static const double deltaEta
Definition: CaloConstants.h:8
SimpleConvertedPhotonAnalyzer::h_deltaPhi_
TH1F * h_deltaPhi_
Definition: SimpleConvertedPhotonAnalyzer.h:52
SiPixelRawToDigiRegional_cfi.deltaPhi
deltaPhi
Definition: SiPixelRawToDigiRegional_cfi.py:9
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
SimpleConvertedPhotonAnalyzer::h_phoPhi_
TH1F * h_phoPhi_
Definition: SimpleConvertedPhotonAnalyzer.h:72
Geom::pi
constexpr double pi()
Definition: Pi.h:31
Geom::twoPi
constexpr double twoPi()
Definition: Pi.h:32
PhotonMCTruthFinder
Definition: PhotonMCTruthFinder.h:20
SimpleConvertedPhotonAnalyzer::h_scE_
TH1F * h_scE_
Definition: SimpleConvertedPhotonAnalyzer.h:66
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SimpleConvertedPhotonAnalyzer::fOutputFile_
TFile * fOutputFile_
Definition: SimpleConvertedPhotonAnalyzer.h:37
dumpMFGeometry_cfg.delta
delta
Definition: dumpMFGeometry_cfg.py:25
funct::tan
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
SimpleConvertedPhotonAnalyzer::convertedPhotonCollectionProducer_
std::string convertedPhotonCollectionProducer_
Definition: SimpleConvertedPhotonAnalyzer.h:48
SimpleConvertedPhotonAnalyzer::thePhotonMCTruthFinder_
PhotonMCTruthFinder * thePhotonMCTruthFinder_
Definition: SimpleConvertedPhotonAnalyzer.h:34
SimpleConvertedPhotonAnalyzer::h_deltaEta_
TH1F * h_deltaEta_
Definition: SimpleConvertedPhotonAnalyzer.h:53
SimpleConvertedPhotonAnalyzer::nMatched_
int nMatched_
Definition: SimpleConvertedPhotonAnalyzer.h:41
SimpleConvertedPhotonAnalyzer::h_scEta_
TH1F * h_scEta_
Definition: SimpleConvertedPhotonAnalyzer.h:67
SimpleConvertedPhotonAnalyzer::h_MCphoPhi_
TH1F * h_MCphoPhi_
Definition: SimpleConvertedPhotonAnalyzer.h:57
SimpleConvertedPhotonAnalyzer::h2_tk_nHitsVsR_
TH2F * h2_tk_nHitsVsR_
Definition: SimpleConvertedPhotonAnalyzer.h:75
SimpleConvertedPhotonAnalyzer::h_phoEta_
TH1F * h_phoEta_
Definition: SimpleConvertedPhotonAnalyzer.h:71
SimpleConvertedPhotonAnalyzer::h_scPhi_
TH1F * h_scPhi_
Definition: SimpleConvertedPhotonAnalyzer.h:68
SimpleConvertedPhotonAnalyzer::nMCPho_
int nMCPho_
Definition: SimpleConvertedPhotonAnalyzer.h:40
SimpleConvertedPhotonAnalyzer::convertedPhotonCollection_
std::string convertedPhotonCollection_
Definition: SimpleConvertedPhotonAnalyzer.h:49
ETA
#define ETA
Definition: GenericBenchmark.cc:28
SimpleConvertedPhotonAnalyzer::h_MCphoEta_
TH1F * h_MCphoEta_
Definition: SimpleConvertedPhotonAnalyzer.h:58
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
SimpleConvertedPhotonAnalyzer::etaTransformation
float etaTransformation(float a, float b)
Definition: SimpleConvertedPhotonAnalyzer.cc:93
SimpleConvertedPhotonAnalyzer::h_MCConvE_
TH1F * h_MCConvE_
Definition: SimpleConvertedPhotonAnalyzer.h:61
ZEcal
static constexpr float ZEcal
Definition: L1TkEmParticleProducer.cc:40
SimpleConvertedPhotonAnalyzer::fOutputFileName_
std::string fOutputFileName_
Definition: SimpleConvertedPhotonAnalyzer.h:36
SimpleConvertedPhotonAnalyzer::h2_tk_inPtVsR_
TH2F * h2_tk_inPtVsR_
Definition: SimpleConvertedPhotonAnalyzer.h:77
Z_Endcap
static constexpr float Z_Endcap
Definition: ECALPositionCalculator.cc:11
R_ECAL
static constexpr float R_ECAL
Definition: ECALPositionCalculator.cc:10
SimpleConvertedPhotonAnalyzer::h_ErecoEMC_
TH1F * h_ErecoEMC_
Definition: SimpleConvertedPhotonAnalyzer.h:51
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
etaBarrelEndcap
static constexpr float etaBarrelEndcap
Definition: ECALPositionCalculator.cc:12