All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
ana::SBNOsc::GetFV Class Reference

Electron neutrino event selection. More...

Inheritance diagram for ana::SBNOsc::GetFV:
core::SelectionBase core::ProcessorBase

Public Member Functions

 GetFV ()
 
void Initialize (fhicl::ParameterSet *config=NULL)
 
void Finalize ()
 
bool ProcessEvent (const gallery::Event &ev, const std::vector< event::Interaction > &truth, std::vector< event::RecoInteraction > &reco)
 
- Public Member Functions inherited from core::SelectionBase
 SelectionBase ()
 
virtual ~SelectionBase ()
 
- Public Member Functions inherited from core::ProcessorBase
 ProcessorBase ()
 
virtual ~ProcessorBase ()
 
virtual void FillTree ()
 
virtual void FillRecoTree ()
 
virtual void EventCleanup ()
 
template<class T >
TBranch * AddBranch (std::string name, T *obj)
 
template<class T >
TBranch * AddRecoBranch (std::string name, T *obj)
 

Protected Attributes

core::ProviderManager_managerICARUS
 
core::ProviderManager_managerSBND
 
core::ProviderManager_managerUBOONE
 
- Protected Attributes inherited from core::ProcessorBase
unsigned long fEventIndex
 An incrementing index. More...
 
Experiment fExperimentID
 Experiment identifier. More...
 
ProviderManagerfProviderManager
 Interface for provider access. More...
 
std::string fOutputFilename
 The output filename. More...
 
std::string fProviderConfig
 A custom provider config fcl file. More...
 
std::vector< geo::BoxBoundedGeofActiveVolumes
 List of active volumes in configured detector. More...
 
bool fWriteTree
 Enable writing of the main tree. More...
 
TFile * fOutputFile
 The output ROOT file. More...
 
TTree * fTree
 The output ROOT tree. More...
 
event::EventfEvent
 The standard output event data structure. More...
 
bool fWriteRecoTree
 Enable writing of the reco tree. More...
 
TTree * fRecoTree
 The output reco ROOT tree. More...
 
event::RecoEventfRecoEvent
 The standard output reco event data structure. More...
 
TTree * fSubRunTree
 Subrun output tree. More...
 
SubRunfSubRun
 Standard output subrun structure. More...
 
TTree * fFileMetaTree
 File metadata output tree. More...
 
FileMetafFileMeta
 standard output file metadata structure More...
 
TParameter< int > * fExperimentParameter
 Saves value of experiment enum. More...
 
std::set< std::pair< int, int > > fSubRunCache
 Cache stored subruns. More...
 
art::InputTag fTruthTag
 art tag for MCTruth information More...
 
art::InputTag fFluxTag
 art tag for MCFlux information More...
 
std::vector< art::InputTag > fWeightTags
 art tag(s) for MCEventWeight information More...
 
art::InputTag fMCTrackTag
 art tag for MCTrack More...
 
art::InputTag fMCShowerTag
 art tag for MCShower More...
 
art::InputTag fMCParticleTag
 art tag for MCParticle More...
 
std::string fGeneratorProcess
 process_name of process used to run genie. Used to extract subrun/POT information More...
 

Additional Inherited Members

- Public Attributes inherited from core::ProcessorBase
std::vector
< event::RecoInteraction > * 
fReco
 Reco interaction list. More...
 
- Protected Member Functions inherited from core::ProcessorBase
virtual void Initialize (char *config=NULL)
 
virtual void Setup (char *config=NULL)
 
virtual void Setup (fhicl::ParameterSet *config=NULL)
 
virtual void Teardown ()
 
void BuildEventTree (gallery::Event &ev)
 
void SetupServices (gallery::Event &ev)
 
void UpdateSubRuns (gallery::Event &ev)
 
void UpdateFileMeta (gallery::Event &ev)
 

Detailed Description

Electron neutrino event selection.

Definition at line 36 of file GetFV.cc.

Constructor & Destructor Documentation

ana::SBNOsc::GetFV::GetFV ( )
inline

Constructor.

Definition at line 39 of file GetFV.cc.

39 {}

Member Function Documentation

void ana::SBNOsc::GetFV::Finalize ( )
inlinevirtual

Finalize and write objects to the output file.

Implements core::ProcessorBase.

Definition at line 143 of file GetFV.cc.

143 {}
void ana::SBNOsc::GetFV::Initialize ( fhicl::ParameterSet *  config = NULL)
inlinevirtual

Initialization.

Parameters
configA configuration, as a FHiCL ParameterSet object

Implements core::ProcessorBase.

Definition at line 46 of file GetFV.cc.

46  {
50 
51  {
52  // print out SBND
53  int cryo_i = 0;
54  int tpc_i = 0;
55  std::cout << std::endl << "SBND" << std::endl;
56  for (auto const &cryo: _managerSBND->GetGeometryProvider()->IterateCryostats()) {
57  cryo_i ++;
59  tend = _managerSBND->GetGeometryProvider()->end_TPC(cryo.ID());
60  while (iTPC != tend) {
61  geo::TPCGeo const& TPC = *iTPC;
62  auto this_volume = TPC.ActiveBoundingBox();
63  std::cout << " { " << std::endl;
64  std::cout << " xmin: " << this_volume.MinX() + 8.25 << std::endl;
65  std::cout << " xmax: " << this_volume.MaxX() - 8.25 << std::endl;
66  std::cout << " ymin: " << this_volume.MinY() + 15 << std::endl;
67  std::cout << " ymax: " << this_volume.MaxY() - 15 << std::endl;
68  std::cout << " zmin: " << this_volume.MinZ() + 15 << std::endl;
69  std::cout << " zmax: " << this_volume.MaxZ() - 80 << std::endl;
70  std::cout << " }, " << std::endl;
71  tpc_i ++;
72  iTPC ++;
73  }
74  tpc_i = 0;
75  }
76  }
77 
78  {
79  // print out uBooNE
80  int cryo_i = 0;
81  int tpc_i = 0;
82  std::cout << std::endl << "uBooNE" << std::endl;
83  for (auto const &cryo: _managerUBOONE->GetGeometryProvider()->IterateCryostats()) {
84  cryo_i ++;
86  tend = _managerUBOONE->GetGeometryProvider()->end_TPC(cryo.ID());
87  while (iTPC != tend) {
88  geo::TPCGeo const& TPC = *iTPC;
89  auto this_volume = TPC.ActiveBoundingBox();
90  std::cout << " { " << std::endl;
91  std::cout << " xmin: " << this_volume.MinX() + 15 << std::endl;
92  std::cout << " xmax: " << this_volume.MaxX() - 15 << std::endl;
93  std::cout << " ymin: " << this_volume.MinY() + 15 << std::endl;
94  std::cout << " ymax: " << this_volume.MaxY() - 15 << std::endl;
95  std::cout << " zmin: " << this_volume.MinZ() + 15 << std::endl;
96  std::cout << " zmax: " << this_volume.MaxZ() - 80 << std::endl;
97  std::cout << " }, " << std::endl;
98  tpc_i ++;
99  iTPC ++;
100  }
101  tpc_i = 0;
102  }
103  }
104 
105  {
106  // print out ICARUS
107  int cryo_i = 0;
108  int tpc_i = 0;
109  std::cout << std::endl << "ICARUS" << std::endl;
110  std::cout << "NCHANNELS: " << _managerICARUS->GetGeometryProvider()->Nchannels() << std::endl;
111  for (auto const &planeID: _managerICARUS->GetGeometryProvider()->IteratePlaneIDs()) {
112  std::cout << "Plane ID: " << planeID.deepestIndex() << " type: " << _managerICARUS->GetGeometryProvider()->SignalType(planeID) << std::endl;
113  for (auto const &wireID: _managerICARUS->GetGeometryProvider()->IterateWireIDs(planeID)) {
115  }
116  std::cout << std::endl;
117  }
118 
119  for (auto const &cryo: _managerICARUS->GetGeometryProvider()->IterateCryostats()) {
120  cryo_i ++;
122  tend = _managerICARUS->GetGeometryProvider()->end_TPC(cryo.ID());
123  while (iTPC != tend) {
124  geo::TPCGeo const& TPC = *iTPC;
125  auto this_volume = TPC.ActiveBoundingBox();
126  std::cout << " { " << std::endl;
127  std::cout << " xmin: " << this_volume.MinX() + 8.25 << std::endl;
128  std::cout << " xmax: " << this_volume.MaxX() - 8.25 << std::endl;
129  std::cout << " ymin: " << this_volume.MinY() + 15 << std::endl;
130  std::cout << " ymax: " << this_volume.MaxY() - 15 << std::endl;
131  std::cout << " zmin: " << this_volume.MinZ() + 15 << std::endl;
132  std::cout << " zmax: " << this_volume.MaxZ() - 80 << std::endl;
133  std::cout << " }, " << std::endl;
134  tpc_i ++;
135  iTPC ++;
136  }
137  tpc_i = 0;
138  }
139  }
140  }
Geometry information for a single TPC.
Definition: TPCGeo.h:38
core::ProviderManager * _managerICARUS
Definition: GetFV.cc:155
geo::BoxBoundedGeo const & ActiveBoundingBox() const
Returns the box of the active volume of this TPC.
Definition: TPCGeo.h:320
SigType_t SignalType(geo::PlaneID const &pid) const
Returns the type of signal on the channels of specified TPC plane.
core::ProviderManager * _managerUBOONE
Definition: GetFV.cc:157
BEGIN_PROLOG TPC
const geo::GeometryCore * GetGeometryProvider() const
unsigned int Nchannels() const
Returns the number of TPC readout channels in the detector.
TPC_iterator begin_TPC() const
Returns an iterator pointing to the first TPC in the detector.
IteratorBox< plane_id_iterator,&GeometryCore::begin_plane_id,&GeometryCore::end_plane_id > IteratePlaneIDs() const
Enables ranged-for loops on all plane IDs of the detector.
Interface to LArSoft services.
IteratorBox< wire_id_iterator,&GeometryCore::begin_wire_id,&GeometryCore::end_wire_id > IterateWireIDs() const
Enables ranged-for loops on all wire IDs of the detector.
core::ProviderManager * _managerSBND
Definition: GetFV.cc:156
IteratorBox< cryostat_iterator,&GeometryCore::begin_cryostat,&GeometryCore::end_cryostat > IterateCryostats() const
Enables ranged-for loops on all cryostats of the detector.
raw::ChannelID_t PlaneWireToChannel(WireID const &wireid) const
Returns the ID of the TPC channel connected to the specified wire.
Forward iterator browsing all geometry elements in the detector.
Definition: GeometryCore.h:727
BEGIN_PROLOG could also be cout
TPC_iterator end_TPC() const
Returns an iterator pointing after the last TPC in the detector.
bool ana::SBNOsc::GetFV::ProcessEvent ( const gallery::Event &  ev,
const std::vector< event::Interaction > &  truth,
std::vector< event::RecoInteraction > &  reco 
)
inlinevirtual

Process one event.

Parameters
evA single event, as a gallery::Event
Reconstructedinteractions
Returns
True to keep event

Implements core::ProcessorBase.

Definition at line 152 of file GetFV.cc.

152 {return false; }

Member Data Documentation

core::ProviderManager* ana::SBNOsc::GetFV::_managerICARUS
protected

Definition at line 155 of file GetFV.cc.

core::ProviderManager* ana::SBNOsc::GetFV::_managerSBND
protected

Definition at line 156 of file GetFV.cc.

core::ProviderManager* ana::SBNOsc::GetFV::_managerUBOONE
protected

Definition at line 157 of file GetFV.cc.


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