LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
shower::TCShowerElectronLikelihood Class Reference
Inheritance diagram for shower::TCShowerElectronLikelihood:
art::EDAnalyzer art::EventObserverBase art::Consumer art::EngineCreator

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 TCShowerElectronLikelihood (fhicl::ParameterSet const &pset)
 
virtual ~TCShowerElectronLikelihood ()
 
void reconfigure (fhicl::ParameterSet const &pset)
 
void beginJob ()
 
void analyze (const art::Event &evt)
 
void getShowerProfile (std::vector< art::Ptr< recob::Hit > > showerhits, TVector3 shwvtx, TVector3 shwdir)
 
void findEnergyBin ()
 
void getLongLikelihood ()
 
void getTranLikelihood ()
 
std::string workerType () const
 
bool modifiesEvent () const
 
void registerProducts (MasterProductRegistry &, ProductDescriptions &, ModuleDescription const &)
 
std::string const & processName () const
 
bool wantAllEvents () const
 
bool wantEvent (Event const &e)
 
fhicl::ParameterSetID selectorConfig () const
 
art::Handle< art::TriggerResultsgetTriggerResults (Event const &e) const
 
template<typename T , BranchType = InEvent>
ProductToken< T > consumes (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< T > consumes (InputTag const &it)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ViewToken< T > consumesView (InputTag const &it)
 
template<typename T , BranchType = InEvent>
ProductToken< T > mayConsume (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< T > mayConsume (InputTag const &it)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ViewToken< T > mayConsumeView (InputTag const &it)
 
base_engine_tcreateEngine (seed_t seed)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make, label_t const &engine_label)
 
seed_t get_seed_value (fhicl::ParameterSet const &pset, char const key[]="seed", seed_t const implicit_seed=-1)
 

Static Public Member Functions

static cet::exempt_ptr< Consumernon_module_context ()
 

Protected Member Functions

CurrentProcessingContext const * currentContext () const
 
detail::CachedProducts & cachedProducts ()
 
void validateConsumedProduct (BranchType const bt, ProductInfo const &pi)
 
void prepareForJob (fhicl::ParameterSet const &pset)
 
void showMissingConsumes () const
 

Private Member Functions

void resetProfiles ()
 

Private Attributes

std::string fTemplateFile
 
std::string fROOTfile
 
TH3F * longTemplate
 
TH3F * tranTemplate
 
TH3F * tranTemplate_1
 
TH3F * tranTemplate_2
 
TH3F * tranTemplate_3
 
TH3F * tranTemplate_4
 
TH3F * tranTemplate_5
 
TProfile2D * longTemplateProf2D
 
TProfile2D * tranTemplateProf2D
 
TProfile2D * tranTemplateProf2D_1
 
TProfile2D * tranTemplateProf2D_2
 
TProfile2D * tranTemplateProf2D_3
 
TProfile2D * tranTemplateProf2D_4
 
TProfile2D * tranTemplateProf2D_5
 
TH1F * energyDist
 
TH1F * longLikelihoodHist
 
TH1F * tranLikelihoodHist
 
TH1F * longProfHist
 
TH1F * tranProfHist_1
 
TH1F * tranProfHist_2
 
TH1F * tranProfHist_3
 
TH1F * tranProfHist_4
 
TH1F * tranProfHist_5
 
TH1F * longProfile
 
TH1F * tranProfile
 
TH1F * tranProfile_1
 
TH1F * tranProfile_2
 
TH1F * tranProfile_3
 
TH1F * tranProfile_4
 
TH1F * tranProfile_5
 
int energyGuess
 
double energyChi2
 
int maxt
 
double longLikelihood
 
double tranLikelihood
 
double tranLikelihood_1
 
double tranLikelihood_2
 
double tranLikelihood_3
 
double tranLikelihood_4
 
double tranLikelihood_5
 
const int LBINS = 20
 
const int LMIN = 0
 
const int LMAX = 5
 
const int TBINS = 20
 
const int TMIN = -5
 
const int TMAX = 5
 
const double X0 = 14
 
std::string fHitModuleLabel
 
std::string fShowerModuleLabel
 
std::string fTemplateModuleLabel
 
std::string fGenieGenModuleLabel
 
std::string fDigitModuleLabel
 
calo::CalorimetryAlg fCalorimetryAlg
 

Detailed Description

Definition at line 50 of file TCShowerElectronLikelihood_module.cc.

Member Typedef Documentation

Definition at line 39 of file EDAnalyzer.h.

Definition at line 38 of file EDAnalyzer.h.

Constructor & Destructor Documentation

shower::TCShowerElectronLikelihood::TCShowerElectronLikelihood ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 155 of file TCShowerElectronLikelihood_module.cc.

References reconfigure().

155  :
156  EDAnalyzer(pset),
157  fHitModuleLabel (pset.get< std::string >("HitModuleLabel", "trajcluster" ) ),
158  fShowerModuleLabel (pset.get< std::string >("ShowerModuleLabel", "tcshower" ) ),
159  fGenieGenModuleLabel (pset.get< std::string >("GenieGenModuleLabel", "generator") ),
160  fCalorimetryAlg (pset.get< fhicl::ParameterSet >("CalorimetryAlg") ) {
161  this->reconfigure(pset);
162 } // TCShowerElectronLikelihood
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
void reconfigure(fhicl::ParameterSet const &pset)
shower::TCShowerElectronLikelihood::~TCShowerElectronLikelihood ( )
virtual

Definition at line 166 of file TCShowerElectronLikelihood_module.cc.

166  {
167 } // ~TCShowerElectronLikelihood

Member Function Documentation

void shower::TCShowerElectronLikelihood::analyze ( const art::Event evt)

Definition at line 231 of file TCShowerElectronLikelihood_module.cc.

References simb::MCNeutrino::CCNC(), simb::MCParticle::E(), energyDist, energyGuess, fGenieGenModuleLabel, fHitModuleLabel, art::fill_ptr_vector(), findEnergyBin(), fShowerModuleLabel, art::DataViewImpl::getByLabel(), getLongLikelihood(), simb::MCTruth::GetNeutrino(), getShowerProfile(), getTranLikelihood(), simb::MCNeutrino::Lepton(), longLikelihood, longLikelihoodHist, longProfHist, longProfile, maxt, simb::MCTruth::NeutrinoSet(), simb::MCNeutrino::Nu(), simb::MCParticle::PdgCode(), resetProfiles(), tranLikelihood, tranLikelihoodHist, tranProfHist_1, tranProfHist_2, tranProfHist_3, tranProfHist_4, tranProfHist_5, tranProfile_1, tranProfile_2, tranProfile_3, tranProfile_4, tranProfile_5, X0, and Z.

231  {
232 
233  resetProfiles();
234 
235  art::Handle< std::vector<recob::Hit> > hitListHandle;
236  std::vector<art::Ptr<recob::Hit> > hitlist;
237  if (evt.getByLabel(fHitModuleLabel,hitListHandle))
238  art::fill_ptr_vector(hitlist, hitListHandle);
239 
240  art::Handle< std::vector<recob::Shower> > showerListHandle;
241  std::vector<art::Ptr<recob::Shower> > showerlist;
242  if (evt.getByLabel(fShowerModuleLabel,showerListHandle))
243  art::fill_ptr_vector(showerlist, showerListHandle);
244 
245  art::Handle< std::vector<simb::MCTruth> > mctruthListHandle;
246  std::vector<art::Ptr<simb::MCTruth> > mclist;
247  if (evt.getByLabel(fGenieGenModuleLabel,mctruthListHandle))
248  art::fill_ptr_vector(mclist, mctruthListHandle);
249 
250  art::FindManyP<recob::Hit> shwfm(showerListHandle, evt, fShowerModuleLabel);
251 
252  if (showerlist.size()) {
253  std::vector< art::Ptr<recob::Hit> > showerhits = shwfm.at(0);
254  getShowerProfile(showerhits, showerlist[0]->ShowerStart(), showerlist[0]->Direction());
255 
256  maxt = std::ceil((90 - showerlist[0]->ShowerStart().Z())/X0);
257 
258  findEnergyBin();
261 
264 
265  // check true shower energy
266  if (mclist.size()) {
267  art::Ptr<simb::MCTruth> mctruth = mclist[0];
268  if (mctruth->NeutrinoSet()) {
269  if (std::abs(mctruth->GetNeutrino().Nu().PdgCode()) == 12 && mctruth->GetNeutrino().CCNC() == 0) {
270  double elep = mctruth->GetNeutrino().Lepton().E();
271  // std::cout << "true shower energy: " << elep << std::endl;
272  // std::cout << "energy guess: " << bestE << " (" << bestchi2 << ")" << std::endl;
273  energyDist->Fill(elep - energyGuess);
274  } // cc nue
275  } // neutrinoset
276  } // mclist
277  } // showerlist
278 
285 
286  //fTree->Fill();
287 
288 } // analyze
double E(const int i=0) const
Definition: MCParticle.h:237
int PdgCode() const
Definition: MCParticle.h:216
int CCNC() const
Definition: MCNeutrino.h:152
const simb::MCNeutrino & GetNeutrino() const
Definition: MCTruth.h:74
const simb::MCParticle & Nu() const
Definition: MCNeutrino.h:150
void getShowerProfile(std::vector< art::Ptr< recob::Hit > > showerhits, TVector3 shwvtx, TVector3 shwdir)
Float_t Z
Definition: plot.C:39
const simb::MCParticle & Lepton() const
Definition: MCNeutrino.h:151
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
Definition: DataViewImpl.h:344
Direction
Definition: AssnsIter.h:24
bool NeutrinoSet() const
Definition: MCTruth.h:75
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
Definition: Ptr.h:464
void shower::TCShowerElectronLikelihood::beginJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 210 of file TCShowerElectronLikelihood_module.cc.

References energyDist, LBINS, LMAX, LMIN, longLikelihoodHist, longProfHist, art::TFileDirectory::make(), TBINS, TMAX, TMIN, tranLikelihoodHist, tranProfHist_1, tranProfHist_2, tranProfHist_3, tranProfHist_4, and tranProfHist_5.

210  {
211 
213  //fTree = tfs->make<TTree>("elikelihood", "elikelihood");
214 
215  energyDist = tfs->make<TH1F>("energyDist", "true energy - guess energy", 41, -20.5, 20.5);
216  longLikelihoodHist = tfs->make<TH1F>("longLikelihoodHist", "longitudinal likelihood", 20, 0, 2);
217  tranLikelihoodHist = tfs->make<TH1F>("tranLikelihoodHist", "transverse likelihood", 20, 0, 3);
218 
219  // just for printing purposes
220  longProfHist = tfs->make<TH1F>("longProfHist", "longitudinal e- profile (reco);t;Q", LBINS, LMIN, LMAX);
221  tranProfHist_1 = tfs->make<TH1F>("tranProfHist", "transverse e- profile (reco) [0 <= t < 1];dist (cm);Q", TBINS, TMIN, TMAX);
222  tranProfHist_2 = tfs->make<TH1F>("tranProfHist", "transverse e- profile (reco) [1 <= t < 2];dist (cm);Q", TBINS, TMIN, TMAX);
223  tranProfHist_3 = tfs->make<TH1F>("tranProfHist", "transverse e- profile (reco) [2 <= t < 3];dist (cm);Q", TBINS, TMIN, TMAX);
224  tranProfHist_4 = tfs->make<TH1F>("tranProfHist", "transverse e- profile (reco) [3 <= t < 4];dist (cm);Q", TBINS, TMIN, TMAX);
225  tranProfHist_5 = tfs->make<TH1F>("tranProfHist", "transverse e- profile (reco) [4 <= t < 5];dist (cm);Q", TBINS, TMIN, TMAX);
226 
227 } // beginJob
T * make(ARGS...args) const
detail::CachedProducts& art::EventObserverBase::cachedProducts ( )
inlineprotectedinherited

Definition at line 79 of file EventObserverBase.h.

References art::EventObserverBase::selectors_.

Referenced by art::EDAnalyzer::doEvent(), and art::OutputModule::doWriteEvent().

80  {
81  return selectors_;
82  }
detail::CachedProducts selectors_
template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::consumes ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::consumes ( InputTag const &  it)
inherited

Definition at line 147 of file Consumer.h.

References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().

148 {
149  if (!moduleContext_)
150  return ProductToken<T>::invalid();
151 
152  consumables_[BT].emplace_back(ConsumableType::Product,
153  TypeID{typeid(T)},
154  it.label(),
155  it.instance(),
156  it.process());
157  return ProductToken<T>{it};
158 }
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
template<typename T , art::BranchType BT>
void art::Consumer::consumesMany ( )
inherited

Definition at line 162 of file Consumer.h.

163 {
164  if (!moduleContext_)
165  return;
166 
167  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
168 }
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::consumesView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::consumesView ( InputTag const &  it)
inherited

Definition at line 172 of file Consumer.h.

References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().

173 {
174  if (!moduleContext_)
175  return ViewToken<T>::invalid();
176 
177  consumables_[BT].emplace_back(ConsumableType::ViewElement,
178  TypeID{typeid(T)},
179  it.label(),
180  it.instance(),
181  it.process());
182  return ViewToken<T>{it};
183 }
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
EngineCreator::base_engine_t & EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make 
)
inherited

Definition at line 32 of file EngineCreator.cc.

References art::EngineCreator::rng().

34 {
35  return rng()->createEngine(
36  placeholder_schedule_id(), seed, kind_of_engine_to_make);
37 }
long seed
Definition: chem4.cc:68
static art::ServiceHandle< art::RandomNumberGenerator > & rng()
EngineCreator::base_engine_t & EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make,
label_t const &  engine_label 
)
inherited

Definition at line 40 of file EngineCreator.cc.

References art::EngineCreator::rng().

43 {
44  return rng()->createEngine(
45  placeholder_schedule_id(), seed, kind_of_engine_to_make, engine_label);
46 }
long seed
Definition: chem4.cc:68
static art::ServiceHandle< art::RandomNumberGenerator > & rng()
CurrentProcessingContext const * art::EDAnalyzer::currentContext ( ) const
protectedinherited

Definition at line 114 of file EDAnalyzer.cc.

References art::EDAnalyzer::current_context_.

Referenced by art::EDAnalyzer::workerType().

115  {
116  return current_context_.get();
117  }
CPC_exempt_ptr current_context_
Definition: EDAnalyzer.h:179
void shower::TCShowerElectronLikelihood::findEnergyBin ( )

Definition at line 379 of file TCShowerElectronLikelihood_module.cc.

References energyChi2, energyGuess, longProfile, longTemplate, longTemplateProf2D, tranProfile, tranProfile_1, tranProfile_2, tranProfile_3, tranProfile_4, tranProfile_5, tranTemplate, tranTemplateProf2D_1, tranTemplateProf2D_2, tranTemplateProf2D_3, tranTemplateProf2D_4, and tranTemplateProf2D_5.

Referenced by analyze().

379  {
380 
381  if (longProfile->GetNbinsX() != longTemplate->GetNbinsX())
382  throw cet::exception("TCShowerElectronLikelihood") << "Bin mismatch in longitudinal profile template \n";
383 
384  if (tranProfile->GetNbinsX() != tranTemplate->GetNbinsX())
385  throw cet::exception("TCShowerElectronLikelihood") << "Bin mismatch in transverse profile template \n";
386 
387  double chi2min = 999999;
388  double bestbin = -1;
389 
390  int ebins = longTemplate->GetNbinsY();
391  int lbins = longTemplate->GetNbinsX();
392  int tbins = tranTemplate->GetNbinsX();
393 
394  // lbins = floor(lbins/2); // only use the first half of the bins
395 
396  TProfile* ltemp;
397  TProfile* ttemp_1;
398  TProfile* ttemp_2;
399  TProfile* ttemp_3;
400  TProfile* ttemp_4;
401  TProfile* ttemp_5;
402 
403  for (int i = 0; i < ebins; ++i) {
404  double thischi2 = 0;
405 
406  ltemp = (TProfile*)longTemplateProf2D->ProfileX("_x", i+1, i+1);
407  ttemp_1 = (TProfile*)tranTemplateProf2D_1->ProfileX("_x_1", i+1, i+1);
408  ttemp_2 = (TProfile*)tranTemplateProf2D_2->ProfileX("_x_2", i+1, i+1);
409  ttemp_3 = (TProfile*)tranTemplateProf2D_3->ProfileX("_x_3", i+1, i+1);
410  ttemp_4 = (TProfile*)tranTemplateProf2D_4->ProfileX("_x_4", i+1, i+1);
411  ttemp_5 = (TProfile*)tranTemplateProf2D_5->ProfileX("_x_5", i+1, i+1);
412 
413  int nlbins = 0;
414  int ntbins = 0;
415 
416  for (int j = 0; j < lbins; ++j) {
417  double obs = longProfile->GetBinContent(j+1);
418  double exp = ltemp->GetBinContent(j+1);
419  if (obs != 0) {
420  thischi2 += pow(obs - exp, 2) / exp;
421  ++nlbins;
422  }
423  } // loop through longitudinal bins
424 
425  for (int j = 0; j < tbins; ++j) {
426  double obs = tranProfile_1->GetBinContent(j+1);
427  double exp = ttemp_1->GetBinContent(j+1);
428  if (obs != 0) {
429  thischi2 += pow(obs - exp, 2) / exp;
430  ++ntbins;
431  }
432 
433  obs = tranProfile_2->GetBinContent(j+1);
434  exp = ttemp_2->GetBinContent(j+1);
435  if (obs != 0) {
436  thischi2 += pow(obs - exp, 2) / exp;
437  ++ntbins;
438  }
439 
440  obs = tranProfile_3->GetBinContent(j+1);
441  exp = ttemp_3->GetBinContent(j+1);
442  if (obs != 0) {
443  thischi2 += pow(obs - exp, 2) / exp;
444  ++ntbins;
445  }
446 
447  obs = tranProfile_4->GetBinContent(j+1);
448  exp = ttemp_4->GetBinContent(j+1);
449  if (obs != 0) {
450  thischi2 += pow(obs - exp, 2) / exp;
451  ++ntbins;
452  }
453 
454  obs = tranProfile_5->GetBinContent(j+1);
455  exp = ttemp_5->GetBinContent(j+1);
456  if (obs != 0) {
457  thischi2 += pow(obs - exp, 2) / exp;
458  ++ntbins;
459  }
460  } // loop through longitudinal bins
461 
462  thischi2 /= (nlbins+ntbins);
463 
464  if (thischi2 < chi2min) {
465  chi2min = thischi2;
466  bestbin = i;
467  }
468 
469  } // loop through energy bins
470 
471  energyChi2 = chi2min;
472  energyGuess = bestbin+1;
473 
474  return;
475 
476 } // findEnergyBin
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
EngineCreator::seed_t EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)
inherited

Definition at line 49 of file EngineCreator.cc.

References fhicl::ParameterSet::get().

Referenced by art::MixFilter< T >::initEngine_().

52 {
53  auto const& explicit_seeds = pset.get<std::vector<int>>(key, {});
54  return explicit_seeds.empty() ? implicit_seed : explicit_seeds.front();
55 }
void shower::TCShowerElectronLikelihood::getLongLikelihood ( )

Definition at line 480 of file TCShowerElectronLikelihood_module.cc.

References energyGuess, LBINS, longLikelihood, longProfile, and longTemplate.

Referenced by analyze().

480  {
481 
482  if (energyGuess < 0) return;
483  int energyBin = energyGuess;
484 
485  longLikelihood = 0;
486  int nbins = 0;
487 
488  for (int i = 0; i < LBINS; ++i) {
489  double qval = longProfile->GetBinContent(i+1);
490  int qbin = longTemplate->GetZaxis()->FindBin(qval);
491  int binentries = longTemplate->GetBinContent(i+1, energyBin, qbin);
492  int totentries = longTemplate->Integral(i+1, i+1, energyBin, energyBin, 0, 100);
493  if (qval > 0) {
494  ++nbins;
495  double prob = (double)binentries/totentries * 100;
496  if (binentries > 0) longLikelihood += log(prob);
497  }
498  } // loop through
499 
500  longLikelihood /= nbins;
501 
502  std::cout << longLikelihood << std::endl;
503 
504  return;
505 
506 } // getLongLikelihood
void shower::TCShowerElectronLikelihood::getShowerProfile ( std::vector< art::Ptr< recob::Hit > >  showerhits,
TVector3  shwvtx,
TVector3  shwdir 
)

Definition at line 320 of file TCShowerElectronLikelihood_module.cc.

References fCalorimetryAlg, calo::CalorimetryAlg::LifetimeCorrection(), longProfile, tranProfile, tranProfile_1, tranProfile_2, tranProfile_3, tranProfile_4, tranProfile_5, and X0.

Referenced by analyze().

320  {
321 
322  auto const* detprop = lar::providerFrom<detinfo::DetectorPropertiesService>();
324 
325  auto collectionPlane = geo::PlaneID(0, 0, 1);
326 
327  double shwVtxTime = detprop->ConvertXToTicks(shwvtx[0], collectionPlane);
328  double shwVtxWire = geom->WireCoordinate(shwvtx[1], shwvtx[2], collectionPlane);
329 
330  double shwTwoTime = detprop->ConvertXToTicks(shwvtx[0]+shwdir[0], collectionPlane);
331  double shwTwoWire = geom->WireCoordinate(shwvtx[1]+shwdir[1], shwvtx[2]+shwdir[2], collectionPlane);
332 
333  for (size_t i = 0; i < showerhits.size(); ++i) {
334  if (showerhits[i]->WireID().Plane != collectionPlane.Plane) continue;
335 
336  double wirePitch = geom->WirePitch(showerhits[i]->WireID());
337  double tickToDist = detprop->DriftVelocity(detprop->Efield(),detprop->Temperature());
338  tickToDist *= 1.e-3 * detprop->SamplingRate(); // 1e-3 is conversion of 1/us to 1/ns
339 
340  double xvtx = shwVtxTime * tickToDist;
341  double yvtx = shwVtxWire * wirePitch;
342 
343  double xtwo = shwTwoTime * tickToDist;
344  double ytwo = shwTwoWire * wirePitch;
345 
346  double xtwoorth = (ytwo - yvtx) + xvtx;
347  double ytwoorth = -(xtwo - xvtx) + yvtx;
348 
349  double xhit = showerhits[i]->PeakTime() * tickToDist;
350  double yhit = showerhits[i]->WireID().Wire * wirePitch;
351 
352  double ldist = std::abs((ytwoorth-yvtx)*xhit - (xtwoorth-xvtx)*yhit + xtwoorth*yvtx - ytwoorth*xvtx)/std::sqrt( pow((ytwoorth-yvtx), 2) + pow((xtwoorth-xvtx), 2) );
353  double tdist = ((ytwo-yvtx)*xhit - (xtwo-xvtx)*yhit + xtwo*yvtx - ytwo*xvtx)/std::sqrt( pow((ytwo-yvtx), 2) + pow((xtwo-xvtx), 2) );
354 
355  double to3D = 1. / sqrt( pow(xvtx-xtwo,2) + pow(yvtx-ytwo,2) ) ; // distance between two points in 3D space is one
356  ldist *= to3D;
357  tdist *= to3D;
358  double t = ldist/X0;
359 
360  double Q = showerhits[i]->Integral() * fCalorimetryAlg.LifetimeCorrection(showerhits[i]->PeakTime());
361 
362  longProfile->Fill(t, Q);
363  tranProfile->Fill(tdist, Q);
364 
365  if (t < 1) tranProfile_1->Fill(tdist, Q);
366  else if (t < 2) tranProfile_2->Fill(tdist, Q);
367  else if (t < 3) tranProfile_3->Fill(tdist, Q);
368  else if (t < 4) tranProfile_4->Fill(tdist, Q);
369  else if (t < 5) tranProfile_5->Fill(tdist, Q);
370 
371  } // loop through showerhits
372 
373  return;
374 
375 } // getShowerProfile
The data type to uniquely identify a Plane.
Definition: geo_types.h:250
double LifetimeCorrection(double time, double T0=0) const
void shower::TCShowerElectronLikelihood::getTranLikelihood ( )

Definition at line 510 of file TCShowerElectronLikelihood_module.cc.

References DEFINE_ART_MODULE, energyGuess, TBINS, tranLikelihood, tranLikelihood_1, tranLikelihood_2, tranLikelihood_3, tranLikelihood_4, tranLikelihood_5, tranProfile_1, tranProfile_2, tranProfile_3, tranProfile_4, tranProfile_5, tranTemplate_1, tranTemplate_2, tranTemplate_3, tranTemplate_4, and tranTemplate_5.

Referenced by analyze().

510  {
511 
512  if (energyGuess < 0) return;
513  int energyBin = energyGuess;
514 
515  tranLikelihood_1 = 0;
516  tranLikelihood_2 = 0;
517  tranLikelihood_3 = 0;
518  tranLikelihood_4 = 0;
519  tranLikelihood_5 = 0;
520 
521  double qval;
522  int qbin, binentries, totentries;
523 
524  int nbins = 0;
525 
526  for (int i = 0; i < TBINS; ++i) {
527  qval = tranProfile_1->GetBinContent(i+1);
528  qbin = tranTemplate_1->GetZaxis()->FindBin(qval);
529  binentries = tranTemplate_1->GetBinContent(i+1, energyBin, qbin);
530  totentries = tranTemplate_1->Integral(i+1, i+1, energyBin, energyBin, 0, 100);
531  if (qval > 0) {
532  ++nbins;
533  double prob = (double)binentries/totentries * 100;
534  if (binentries > 0) tranLikelihood_1 += log(prob);
535  }
536 
537  qval = tranProfile_2->GetBinContent(i+1);
538  qbin = tranTemplate_2->GetZaxis()->FindBin(qval);
539  binentries = tranTemplate_2->GetBinContent(i+1, energyBin, qbin);
540  totentries = tranTemplate_2->Integral(i+1, i+1, energyBin, energyBin, 0, 100);
541  if (qval > 0) {
542  ++nbins;
543  double prob = (double)binentries/totentries * 100;
544  if (binentries > 0) tranLikelihood_2 += log(prob);
545  }
546 
547  qval = tranProfile_3->GetBinContent(i+1);
548  qbin = tranTemplate_3->GetZaxis()->FindBin(qval);
549  binentries = tranTemplate_3->GetBinContent(i+1, energyBin, qbin);
550  totentries = tranTemplate_3->Integral(i+1, i+1, energyBin, energyBin, 0, 100);
551  if (qval > 0) {
552  ++nbins;
553  double prob = (double)binentries/totentries * 100;
554  if (binentries > 0) tranLikelihood_3 += log(prob);
555  }
556 
557  qval = tranProfile_4->GetBinContent(i+1);
558  qbin = tranTemplate_4->GetZaxis()->FindBin(qval);
559  binentries = tranTemplate_4->GetBinContent(i+1, energyBin, qbin);
560  totentries = tranTemplate_4->Integral(i+1, i+1, energyBin, energyBin, 0, 100);
561  if (qval > 0) {
562  ++nbins;
563  double prob = (double)binentries/totentries * 100;
564  if (binentries > 0) tranLikelihood_4 += log(prob);
565  }
566 
567  qval = tranProfile_5->GetBinContent(i+1);
568  qbin = tranTemplate_5->GetZaxis()->FindBin(qval);
569  binentries = tranTemplate_5->GetBinContent(i+1, energyBin, qbin);
570  totentries = tranTemplate_5->Integral(i+1, i+1, energyBin, energyBin, 0, 100);
571  if (qval > 0) {
572  ++nbins;
573  double prob = (double)binentries/totentries * 100;
574  if (binentries > 0) tranLikelihood_5 += log(prob);
575  }
576 
577  } // loop through
578 
579  /*
580  std::cout << tranLikelihood_1 << std::endl;
581  std::cout << tranLikelihood_2 << std::endl;
582  std::cout << tranLikelihood_3 << std::endl;
583  std::cout << tranLikelihood_4 << std::endl;
584  std::cout << tranLikelihood_5 << std::endl;
585  */
586 
588 
589  tranLikelihood /= nbins;
590 
591  std::cout << tranLikelihood << std::endl;
592 
593  return;
594 
595 } // getTranLikelihood
art::Handle<art::TriggerResults> art::EventObserverBase::getTriggerResults ( Event const &  e) const
inlineinherited

Definition at line 61 of file EventObserverBase.h.

References art::detail::CachedProducts::getOneTriggerResults(), and art::EventObserverBase::selectors_.

Referenced by art::OutputModule::doWriteEvent().

62  {
64  }
detail::CachedProducts selectors_
art::Handle< art::TriggerResults > getOneTriggerResults(Event const &) const
Float_t e
Definition: plot.C:34
template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::mayConsume ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::mayConsume ( InputTag const &  it)
inherited

Definition at line 190 of file Consumer.h.

References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().

191 {
192  if (!moduleContext_)
193  return ProductToken<T>::invalid();
194 
195  consumables_[BT].emplace_back(ConsumableType::Product,
196  TypeID{typeid(T)},
197  it.label(),
198  it.instance(),
199  it.process());
200  return ProductToken<T>{it};
201 }
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
template<typename T , art::BranchType BT>
void art::Consumer::mayConsumeMany ( )
inherited

Definition at line 205 of file Consumer.h.

206 {
207  if (!moduleContext_)
208  return;
209 
210  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
211 }
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::mayConsumeView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::mayConsumeView ( InputTag const &  it)
inherited

Definition at line 215 of file Consumer.h.

References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().

216 {
217  if (!moduleContext_)
218  return ViewToken<T>::invalid();
219 
220  consumables_[BT].emplace_back(ConsumableType::ViewElement,
221  TypeID{typeid(T)},
222  it.label(),
223  it.instance(),
224  it.process());
225  return ViewToken<T>{it};
226 }
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
bool art::EventObserverBase::modifiesEvent ( ) const
inlineinherited

Definition at line 25 of file EventObserverBase.h.

26  {
27  return false;
28  }
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited

Definition at line 89 of file Consumer.cc.

References fhicl::ParameterSet::get_if_present().

Referenced by art::EDProducer::doBeginJob(), art::EDFilter::doBeginJob(), and art::EDAnalyzer::doBeginJob().

90 {
91  if (!moduleContext_)
92  return;
93 
94  pset.get_if_present("errorOnMissingConsumes", requireConsumes_);
95  for (auto& consumablesPerBranch : consumables_) {
96  cet::sort_all(consumablesPerBranch);
97  }
98 }
bool requireConsumes_
Definition: Consumer.h:137
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
std::string const& art::EventObserverBase::processName ( ) const
inlineinherited
void shower::TCShowerElectronLikelihood::reconfigure ( fhicl::ParameterSet const &  pset)

Definition at line 171 of file TCShowerElectronLikelihood_module.cc.

References file, fROOTfile, fTemplateFile, fhicl::ParameterSet::get(), LBINS, LMAX, LMIN, longProfile, longTemplate, longTemplateProf2D, TBINS, TMAX, TMIN, tranProfile, tranProfile_1, tranProfile_2, tranProfile_3, tranProfile_4, tranProfile_5, tranTemplate, tranTemplate_1, tranTemplate_2, tranTemplate_3, tranTemplate_4, tranTemplate_5, tranTemplateProf2D, tranTemplateProf2D_1, tranTemplateProf2D_2, tranTemplateProf2D_3, tranTemplateProf2D_4, and tranTemplateProf2D_5.

Referenced by TCShowerElectronLikelihood().

171  {
172  fTemplateFile = pset.get< std::string >("TemplateFile");
173  cet::search_path sp("FW_SEARCH_PATH");
174  if( !sp.find_file(fTemplateFile, fROOTfile) )
175  throw cet::exception("TCShowerElectronLikelihood") << "cannot find the root template file: \n"
176  << fTemplateFile
177  << "\n bail ungracefully.\n";
178 
179  TFile *file = TFile::Open(fROOTfile.c_str());
180 
181  longTemplate = (TH3F*)file->Get("tcshowertemplate/fLongitudinal");
182  tranTemplate = (TH3F*)file->Get("tcshowertemplate/fTransverse");
183  tranTemplate_1 = (TH3F*)file->Get("tcshowertemplate/fTransverse_1");
184  tranTemplate_2 = (TH3F*)file->Get("tcshowertemplate/fTransverse_2");
185  tranTemplate_3 = (TH3F*)file->Get("tcshowertemplate/fTransverse_3");
186  tranTemplate_4 = (TH3F*)file->Get("tcshowertemplate/fTransverse_4");
187  tranTemplate_5 = (TH3F*)file->Get("tcshowertemplate/fTransverse_5");
188 
189  longTemplateProf2D = (TProfile2D*)file->Get("tcshowertemplate/fShowerProfileRecoLong2D");
190  tranTemplateProf2D = (TProfile2D*)file->Get("tcshowertemplate/fShowerProfileRecoTrans2D");
191  tranTemplateProf2D_1 = (TProfile2D*)file->Get("tcshowertemplate/fShowerProfileRecoTrans2D_1");
192  tranTemplateProf2D_2 = (TProfile2D*)file->Get("tcshowertemplate/fShowerProfileRecoTrans2D_2");
193  tranTemplateProf2D_3 = (TProfile2D*)file->Get("tcshowertemplate/fShowerProfileRecoTrans2D_3");
194  tranTemplateProf2D_4 = (TProfile2D*)file->Get("tcshowertemplate/fShowerProfileRecoTrans2D_4");
195  tranTemplateProf2D_5 = (TProfile2D*)file->Get("tcshowertemplate/fShowerProfileRecoTrans2D_5");
196 
197  longProfile = new TH1F("longProfile", "longitudinal shower profile;t;Q", LBINS, LMIN, LMAX);
198  tranProfile = new TH1F("tranProfile", "transverse shower profile;dist (cm);Q", TBINS, TMIN, TMAX);;
199 
200  tranProfile_1 = new TH1F("tranProfile_1", "transverse shower profile [0 <= t < 1];dist (cm);Q", TBINS, TMIN, TMAX);;
201  tranProfile_2 = new TH1F("tranProfile_2", "transverse shower profile [1 <= t < 2];dist (cm);Q", TBINS, TMIN, TMAX);;
202  tranProfile_3 = new TH1F("tranProfile_3", "transverse shower profile [2 <= t < 3];dist (cm);Q", TBINS, TMIN, TMAX);;
203  tranProfile_4 = new TH1F("tranProfile_4", "transverse shower profile [3 <= t < 4];dist (cm);Q", TBINS, TMIN, TMAX);;
204  tranProfile_5 = new TH1F("tranProfile_5", "transverse shower profile [4 <= t < 5];dist (cm);Q", TBINS, TMIN, TMAX);;
205 
206 } // reconfigure
TFile * file
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
void art::EventObserverBase::registerProducts ( MasterProductRegistry ,
ProductDescriptions ,
ModuleDescription const &   
)
inlineinherited

Definition at line 33 of file EventObserverBase.h.

36  {}
void shower::TCShowerElectronLikelihood::resetProfiles ( )
private

Definition at line 292 of file TCShowerElectronLikelihood_module.cc.

References energyChi2, energyGuess, longLikelihood, longProfile, maxt, tranLikelihood, tranLikelihood_1, tranLikelihood_2, tranLikelihood_3, tranLikelihood_4, tranLikelihood_5, tranProfile, tranProfile_1, tranProfile_2, tranProfile_3, tranProfile_4, and tranProfile_5.

Referenced by analyze().

292  {
293 
294  longProfile->Reset();
295  tranProfile->Reset();
296  tranProfile_1->Reset();
297  tranProfile_2->Reset();
298  tranProfile_3->Reset();
299  tranProfile_4->Reset();
300  tranProfile_5->Reset();
301 
302  energyGuess = -9999;
303  energyChi2 = -9999;
304  maxt = -9999;
305 
306  longLikelihood = -9999;
307  tranLikelihood = -9999;
308  tranLikelihood_1 = -9999;
309  tranLikelihood_2 = -9999;
310  tranLikelihood_3 = -9999;
311  tranLikelihood_4 = -9999;
312  tranLikelihood_5 = -9999;
313 
314  return;
315 
316 } // resetProfiles
fhicl::ParameterSetID art::EventObserverBase::selectorConfig ( ) const
inlineinherited

Definition at line 56 of file EventObserverBase.h.

References art::EventObserverBase::selector_config_id_.

Referenced by art::RootOutputFile::writeOne().

57  {
58  return selector_config_id_;
59  }
fhicl::ParameterSetID selector_config_id_
void art::Consumer::showMissingConsumes ( ) const
protectedinherited

Definition at line 125 of file Consumer.cc.

Referenced by art::EDProducer::doEndJob(), art::EDFilter::doEndJob(), art::EDAnalyzer::doEndJob(), and art::RootOutput::endJob().

126 {
127  if (!moduleContext_)
128  return;
129 
130  // If none of the branches have missing consumes statements, exit early.
131  if (std::all_of(cbegin(missingConsumes_),
132  cend(missingConsumes_),
133  [](auto const& perBranch) { return perBranch.empty(); }))
134  return;
135 
136  constexpr cet::HorizontalRule rule{60};
137  mf::LogPrint log{"MTdiagnostics"};
138  log << '\n'
139  << rule('=') << '\n'
140  << "The following consumes (or mayConsume) statements are missing from\n"
141  << module_context(moduleDescription_) << '\n'
142  << rule('-') << '\n';
143 
144  cet::for_all_with_index(
145  missingConsumes_, [&log](std::size_t const i, auto const& perBranch) {
146  for (auto const& pi : perBranch) {
147  log << " "
148  << assemble_consumes_statement(static_cast<BranchType>(i), pi)
149  << '\n';
150  }
151  });
152  log << rule('=');
153 }
cet::exempt_ptr< ModuleDescription const > moduleDescription_
Definition: Consumer.h:140
constexpr T pi()
Returns the constant pi (up to 35 decimal digits of precision)
bool moduleContext_
Definition: Consumer.h:136
ConsumableProductSets missingConsumes_
Definition: Consumer.h:139
void art::Consumer::validateConsumedProduct ( BranchType const  bt,
ProductInfo const &  pi 
)
protectedinherited

Definition at line 101 of file Consumer.cc.

References art::errors::ProductRegistrationFailure.

103 {
104  // Early exits if consumes tracking has been disabled or if the
105  // consumed product is an allowed consumable.
106  if (!moduleContext_)
107  return;
108 
109  if (cet::binary_search_all(consumables_[bt], pi))
110  return;
111 
112  if (requireConsumes_) {
114  "Consumer: an error occurred during validation of a "
115  "retrieved product\n\n")
116  << "The following consumes (or mayConsume) statement is missing from\n"
117  << module_context(moduleDescription_) << ":\n\n"
118  << " " << assemble_consumes_statement(bt, pi) << "\n\n";
119  }
120 
121  missingConsumes_[bt].insert(pi);
122 }
cet::exempt_ptr< ModuleDescription const > moduleDescription_
Definition: Consumer.h:140
bool requireConsumes_
Definition: Consumer.h:137
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
constexpr T pi()
Returns the constant pi (up to 35 decimal digits of precision)
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
ConsumableProductSets missingConsumes_
Definition: Consumer.h:139
bool art::EventObserverBase::wantAllEvents ( ) const
inlineinherited
bool art::EventObserverBase::wantEvent ( Event const &  e)
inlineinherited
std::string art::EDAnalyzer::workerType ( ) const
inlineinherited

Definition at line 109 of file EDAnalyzer.h.

References art::EDAnalyzer::currentContext().

110  {
111  return "WorkerT<EDAnalyzer>";
112  }

Member Data Documentation

double shower::TCShowerElectronLikelihood::energyChi2
private

Definition at line 110 of file TCShowerElectronLikelihood_module.cc.

Referenced by findEnergyBin(), and resetProfiles().

TH1F* shower::TCShowerElectronLikelihood::energyDist
private

Definition at line 90 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), and beginJob().

int shower::TCShowerElectronLikelihood::energyGuess
private
calo::CalorimetryAlg shower::TCShowerElectronLikelihood::fCalorimetryAlg
private

Definition at line 147 of file TCShowerElectronLikelihood_module.cc.

Referenced by getShowerProfile().

std::string shower::TCShowerElectronLikelihood::fDigitModuleLabel
private

Definition at line 145 of file TCShowerElectronLikelihood_module.cc.

std::string shower::TCShowerElectronLikelihood::fGenieGenModuleLabel
private

Definition at line 144 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze().

std::string shower::TCShowerElectronLikelihood::fHitModuleLabel
private

Definition at line 141 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze().

std::string shower::TCShowerElectronLikelihood::fROOTfile
private

Definition at line 72 of file TCShowerElectronLikelihood_module.cc.

Referenced by reconfigure().

std::string shower::TCShowerElectronLikelihood::fShowerModuleLabel
private

Definition at line 142 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze().

std::string shower::TCShowerElectronLikelihood::fTemplateFile
private

Definition at line 71 of file TCShowerElectronLikelihood_module.cc.

Referenced by reconfigure().

std::string shower::TCShowerElectronLikelihood::fTemplateModuleLabel
private

Definition at line 143 of file TCShowerElectronLikelihood_module.cc.

const int shower::TCShowerElectronLikelihood::LBINS = 20
private

Definition at line 121 of file TCShowerElectronLikelihood_module.cc.

Referenced by beginJob(), getLongLikelihood(), and reconfigure().

const int shower::TCShowerElectronLikelihood::LMAX = 5
private

Definition at line 123 of file TCShowerElectronLikelihood_module.cc.

Referenced by beginJob(), and reconfigure().

const int shower::TCShowerElectronLikelihood::LMIN = 0
private

Definition at line 122 of file TCShowerElectronLikelihood_module.cc.

Referenced by beginJob(), and reconfigure().

double shower::TCShowerElectronLikelihood::longLikelihood
private

Definition at line 113 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), getLongLikelihood(), and resetProfiles().

TH1F* shower::TCShowerElectronLikelihood::longLikelihoodHist
private

Definition at line 91 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), and beginJob().

TH1F* shower::TCShowerElectronLikelihood::longProfHist
private

Definition at line 94 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), and beginJob().

TH1F* shower::TCShowerElectronLikelihood::longProfile
private
TH3F* shower::TCShowerElectronLikelihood::longTemplate
private
TProfile2D* shower::TCShowerElectronLikelihood::longTemplateProf2D
private

Definition at line 81 of file TCShowerElectronLikelihood_module.cc.

Referenced by findEnergyBin(), and reconfigure().

int shower::TCShowerElectronLikelihood::maxt
private

Definition at line 111 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), and resetProfiles().

const int shower::TCShowerElectronLikelihood::TBINS = 20
private

Definition at line 125 of file TCShowerElectronLikelihood_module.cc.

Referenced by beginJob(), getTranLikelihood(), and reconfigure().

const int shower::TCShowerElectronLikelihood::TMAX = 5
private

Definition at line 127 of file TCShowerElectronLikelihood_module.cc.

Referenced by beginJob(), and reconfigure().

const int shower::TCShowerElectronLikelihood::TMIN = -5
private

Definition at line 126 of file TCShowerElectronLikelihood_module.cc.

Referenced by beginJob(), and reconfigure().

double shower::TCShowerElectronLikelihood::tranLikelihood
private

Definition at line 114 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), getTranLikelihood(), and resetProfiles().

double shower::TCShowerElectronLikelihood::tranLikelihood_1
private

Definition at line 115 of file TCShowerElectronLikelihood_module.cc.

Referenced by getTranLikelihood(), and resetProfiles().

double shower::TCShowerElectronLikelihood::tranLikelihood_2
private

Definition at line 116 of file TCShowerElectronLikelihood_module.cc.

Referenced by getTranLikelihood(), and resetProfiles().

double shower::TCShowerElectronLikelihood::tranLikelihood_3
private

Definition at line 117 of file TCShowerElectronLikelihood_module.cc.

Referenced by getTranLikelihood(), and resetProfiles().

double shower::TCShowerElectronLikelihood::tranLikelihood_4
private

Definition at line 118 of file TCShowerElectronLikelihood_module.cc.

Referenced by getTranLikelihood(), and resetProfiles().

double shower::TCShowerElectronLikelihood::tranLikelihood_5
private

Definition at line 119 of file TCShowerElectronLikelihood_module.cc.

Referenced by getTranLikelihood(), and resetProfiles().

TH1F* shower::TCShowerElectronLikelihood::tranLikelihoodHist
private

Definition at line 92 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), and beginJob().

TH1F* shower::TCShowerElectronLikelihood::tranProfHist_1
private

Definition at line 95 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), and beginJob().

TH1F* shower::TCShowerElectronLikelihood::tranProfHist_2
private

Definition at line 96 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), and beginJob().

TH1F* shower::TCShowerElectronLikelihood::tranProfHist_3
private

Definition at line 97 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), and beginJob().

TH1F* shower::TCShowerElectronLikelihood::tranProfHist_4
private

Definition at line 98 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), and beginJob().

TH1F* shower::TCShowerElectronLikelihood::tranProfHist_5
private

Definition at line 99 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), and beginJob().

TH1F* shower::TCShowerElectronLikelihood::tranProfile
private
TH1F* shower::TCShowerElectronLikelihood::tranProfile_1
private
TH1F* shower::TCShowerElectronLikelihood::tranProfile_2
private
TH1F* shower::TCShowerElectronLikelihood::tranProfile_3
private
TH1F* shower::TCShowerElectronLikelihood::tranProfile_4
private
TH1F* shower::TCShowerElectronLikelihood::tranProfile_5
private
TH3F* shower::TCShowerElectronLikelihood::tranTemplate
private

Definition at line 75 of file TCShowerElectronLikelihood_module.cc.

Referenced by findEnergyBin(), and reconfigure().

TH3F* shower::TCShowerElectronLikelihood::tranTemplate_1
private

Definition at line 76 of file TCShowerElectronLikelihood_module.cc.

Referenced by getTranLikelihood(), and reconfigure().

TH3F* shower::TCShowerElectronLikelihood::tranTemplate_2
private

Definition at line 77 of file TCShowerElectronLikelihood_module.cc.

Referenced by getTranLikelihood(), and reconfigure().

TH3F* shower::TCShowerElectronLikelihood::tranTemplate_3
private

Definition at line 78 of file TCShowerElectronLikelihood_module.cc.

Referenced by getTranLikelihood(), and reconfigure().

TH3F* shower::TCShowerElectronLikelihood::tranTemplate_4
private

Definition at line 79 of file TCShowerElectronLikelihood_module.cc.

Referenced by getTranLikelihood(), and reconfigure().

TH3F* shower::TCShowerElectronLikelihood::tranTemplate_5
private

Definition at line 80 of file TCShowerElectronLikelihood_module.cc.

Referenced by getTranLikelihood(), and reconfigure().

TProfile2D* shower::TCShowerElectronLikelihood::tranTemplateProf2D
private

Definition at line 82 of file TCShowerElectronLikelihood_module.cc.

Referenced by reconfigure().

TProfile2D* shower::TCShowerElectronLikelihood::tranTemplateProf2D_1
private

Definition at line 83 of file TCShowerElectronLikelihood_module.cc.

Referenced by findEnergyBin(), and reconfigure().

TProfile2D* shower::TCShowerElectronLikelihood::tranTemplateProf2D_2
private

Definition at line 84 of file TCShowerElectronLikelihood_module.cc.

Referenced by findEnergyBin(), and reconfigure().

TProfile2D* shower::TCShowerElectronLikelihood::tranTemplateProf2D_3
private

Definition at line 85 of file TCShowerElectronLikelihood_module.cc.

Referenced by findEnergyBin(), and reconfigure().

TProfile2D* shower::TCShowerElectronLikelihood::tranTemplateProf2D_4
private

Definition at line 86 of file TCShowerElectronLikelihood_module.cc.

Referenced by findEnergyBin(), and reconfigure().

TProfile2D* shower::TCShowerElectronLikelihood::tranTemplateProf2D_5
private

Definition at line 87 of file TCShowerElectronLikelihood_module.cc.

Referenced by findEnergyBin(), and reconfigure().

const double shower::TCShowerElectronLikelihood::X0 = 14
private

Definition at line 139 of file TCShowerElectronLikelihood_module.cc.

Referenced by analyze(), and getShowerProfile().


The documentation for this class was generated from the following file: