Namespaces | Classes | Typedefs | Enumerations | Functions
protoana Namespace Reference

Namespaces

 G4ReweightUtils
 
 ProtoDUNEFitUtils
 
 ProtoDUNESelectionUtils
 

Classes

class  AbsCexDriver
 
class  BaseThinSliceDriverFactory
 
class  BeamExample
 
struct  BeamVals
 
struct  BrokenTrack
 
struct  crpgeoinfo
 
class  diffusioncathodet0
 
class  driftvel
 
class  G4RWExampleAnalyzer
 
class  hitrms
 
class  hitrmsfinding
 
class  hitrmsrawdigits
 
struct  MCParticleSharedHits
 
class  mcsXsection
 
class  MCToyGenerationAndFit
 
class  PDSPThinSliceFitter
 
class  pionanalysis
 
class  pionanalysismc
 
struct  PossibleParticleCands
 
class  ProtoDUNEAnalCosmicTree
 
class  ProtoDUNEAnalTree
 
class  ProtoDUNEAnalysisTree
 
class  ProtoDUNEBeamCuts
 
class  ProtoDUNEBeamlineFilter
 
class  ProtoDUNEBeamlineReco
 
class  ProtoDUNEBeamlineUtils
 
class  ProtoDUNEBeamTPCRecoEfficiency
 
class  ProtoDUNECalibration
 
class  ProtoDUNEDataUtils
 
class  ProtoDUNEDPAnalCosmicTree
 
class  ProtoDUNEDPCRPGeo
 
class  ProtoDUNEelectronAnaTree
 
class  ProtoDUNEEmptyEventFinder
 
class  ProtoDUNEFit
 
class  ProtoDUNEPFParticleUtils
 
class  ProtoDUNEPizeroAnaTree
 
class  ProtoDUNEShowerUtils
 
class  ProtoDUNESliceUtils
 
class  ProtoDUNETrackUtils
 
class  ProtoDUNETruthBeamFilter
 
class  ProtoDUNETruthBeamParticle
 
class  ProtoDUNETruthUtils
 
class  ProtoFlash
 
class  proton4gen
 
class  protonbeamana
 
class  protonmc
 
class  protonmccnn
 
class  protonmcnorw
 
class  ThinSliceDataSet
 
class  ThinSliceDriver
 
class  ThinSliceDriverFactory
 
class  ThinSliceDriverRegistry
 
class  ThinSliceEvent
 
class  ThinSliceSample
 
class  ThinSliceSystematic
 
class  truepion
 
class  truepionXsection
 
class  UtilityExample
 
class  velocity
 

Typedefs

typedef struct protoana::crpgeoinfo crpgeoinfo
 

Enumerations

enum  HistType { kSignal, kBackground, kIncident }
 
enum  beamPDG {
  kElectron = 11, kMuon = 13, kPion = 211, kKaon = 321,
  kProton = 2212, kDeuteron = 1000010020
}
 

Functions

double distance (double x1, double y1, double z1, double x2, double y2, double z2)
 
std::string PreciseToString (const double val, const int n=2)
 
TFile * OpenFile (const std::string filename)
 
bool sort_IDEs (const sim::IDE *i1, const sim::IDE *i2)
 

Detailed Description

Class: hitrms /// File: hitrms_module.cc /// Description: Module for calculations with hit information saved /// following deconvolution. Information is taken from /// MC samples or data files and put into TTrees to be /// analyzed. /// Contact Person: ehink.nosp@m.le@u.nosp@m.chica.nosp@m.go.e.nosp@m.du /// Written by: Ajib Paudel /// Modified by: Elise Hinkle /// Last Date Modified: April 1, 2021 ///

Class: hitrmsrawdigits /// File: hitrmsrawdigits_module.cc /// Description: Module for calculations with hit information based on /// RawDigits and/or from after deconvolution. Information is /// taken from MC samples or data files and put into TTrees /// to be analyzed. /// Contact Person: ehink.nosp@m.le@u.nosp@m.chica.nosp@m.go.e.nosp@m.du /// Written by: Ajib Paudel /// Modified by: Elise Hinkle /// Last Date Modified: August 20, 2021 ///

Typedef Documentation

Enumeration Type Documentation

Enumerator
kElectron 
kMuon 
kPion 
kKaon 
kProton 
kDeuteron 

Definition at line 29 of file ProtoDUNEBeamlineUtils.h.

Enumerator
kSignal 
kBackground 
kIncident 

Definition at line 30 of file ProtoDUNEFit.h.

Function Documentation

double protoana::distance ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2 
)

Definition at line 217 of file truepionXsection_module.cc.

218  {
219  double d = TMath::Sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)+(z1-z2)*(z1-z2));
220  return d;
221  }
TFile* protoana::OpenFile ( const std::string  filename)

Definition at line 42 of file G4RWExampleAnalyzer_module.cc.

42  {
43  TFile * theFile = 0x0;
44  mf::LogInfo("pduneana::OpenFile") << "Searching for " << filename;
46  mf::LogInfo("pduneana::OpenFile") << "File exists. Opening " << filename;
47  theFile = new TFile(filename.c_str());
48  if (!theFile ||theFile->IsZombie() || !theFile->IsOpen()) {
49  delete theFile;
50  theFile = 0x0;
51  throw cet::exception("PDSPAnalyzer_module.cc") << "Could not open " << filename;
52  }
53  }
54  else {
55  mf::LogInfo("pduneana::OpenFile") << "File does not exist here. Searching FW_SEARCH_PATH";
56  cet::search_path sp{"FW_SEARCH_PATH"};
57  std::string found_filename;
58  auto found = sp.find_file(filename, found_filename);
59  if (!found) {
60  throw cet::exception("PDSPAnalyzer_module.cc") << "Could not find " << filename;
61  }
62 
63  mf::LogInfo("pduneana::OpenFile") << "Found file " << found_filename;
64  theFile = new TFile(found_filename.c_str());
65  if (!theFile ||theFile->IsZombie() || !theFile->IsOpen()) {
66  delete theFile;
67  theFile = 0x0;
68  throw cet::exception("PDSPAnalyzer_module.cc") << "Could not open " << found_filename;
69  }
70  }
71  return theFile;
72  }
std::string string
Definition: nybbler.cc:12
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
string filename
Definition: train.py:213
bool file_exists(std::string const &qualified_filename)
Definition: filesystem.cc:14
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
std::string protoana::PreciseToString ( const double  val,
const int  n = 2 
)

Definition at line 3 of file ThinSliceSample.cxx.

3  {
4  std::ostringstream out;
5  out.precision(n);
6  out << std::fixed << val;
7  return out.str();
8 }
std::void_t< T > n
bool protoana::sort_IDEs ( const sim::IDE i1,
const sim::IDE i2 
)

Definition at line 1158 of file ProtoDUNETruthUtils.cxx.

1158  {
1159  return( i1->z < i2->z );
1160 }
float z
z position of ionization [cm]
Definition: SimChannel.h:117