Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
sn::SNSlicerAna Class Reference
Inheritance diagram for sn::SNSlicerAna:
art::EDAnalyzer art::detail::Analyzer art::detail::LegacyModule art::Observer art::ModuleBase

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 SNSlicerAna (fhicl::ParameterSet const &p)
 
 SNSlicerAna (SNSlicerAna const &)=delete
 
 SNSlicerAna (SNSlicerAna &&)=delete
 
SNSlicerAnaoperator= (SNSlicerAna const &)=delete
 
SNSlicerAnaoperator= (SNSlicerAna &&)=delete
 
void analyze (art::Event const &e) override
 
void beginJob () override
 
std::string workerType () const
 
void doBeginJob ()
 
void doEndJob ()
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToOpenOutputFiles (FileBlock const &fb)
 
void doRespondToCloseOutputFiles (FileBlock const &fb)
 
bool doBeginRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doEndRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed)
 
void registerProducts (ProductDescriptions &, ModuleDescription const &)
 
void fillDescriptions (ModuleDescription const &)
 
std::string const & processName () const
 
bool wantAllEvents () const
 
bool wantEvent (Event const &e)
 
fhicl::ParameterSetID selectorConfig () const
 
Handle< TriggerResults > getTriggerResults (Event const &e) const
 
ModuleDescription const & moduleDescription () const
 
void setModuleDescription (ModuleDescription const &)
 
std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables () const
 
void sortConsumables (std::string const &current_process_name)
 
template<typename T , BranchType BT>
ViewToken< TconsumesView (InputTag const &tag)
 
template<typename T , BranchType BT>
ViewToken< TmayConsumeView (InputTag const &tag)
 

Protected Member Functions

detail::ProcessAndEventSelectors & processAndEventSelectors ()
 
ConsumesCollector & consumesCollector ()
 
template<typename T , BranchType = InEvent>
ProductToken< Tconsumes (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename T , BranchType = InEvent>
ProductToken< TmayConsume (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 

Private Attributes

art::ServiceHandle< art::TFileService > tfs
 
art::ServiceHandle< geo::GeometryfGeom
 
std::string fClusterLabel
 
std::string fCellHitLabel
 
TTree * fClusterTree
 
TTree * fEventTree
 
TTree * fHitTree
 
TTree * fHitPairTree
 
int fEventNumber
 
int fClusterId
 ART event number. More...
 
double fClusterTNS
 Unique ID for each cluster in the event. More...
 
int fNHitsMC
 Min time of the cluster. More...
 
int fNHitsBG
 Number of MC hits in cluster. More...
 
int fAdcMc
 Number of non-MC hits in cluster. More...
 
int fAdcBg
 ADC for MC hits. More...
 
int fNFEB
 ADC for BG hits. More...
 
double fSumADC
 Number of distinct FEBs in the cluster. More...
 
int fSpanADC
 Total cluster ADC. More...
 
double fMeanADC
 Difference between max and min ADCs. More...
 
double fStdADC
 Mean cluster ADC. More...
 
double fSumMeV
 Std. Dev. of cluster ADCs. More...
 
double fSpanTNS
 Cluster total energy (MeV) More...
 
int fSpanPlane
 Cluster time span (ns) More...
 
int fSpanCellX
 Cluster plane span (planes) More...
 
int fSpanCellY
 Cluster cell span in X-view (cells) More...
 
int fSpanViews
 Cluster cell span in Y-view (cells) More...
 
float fPairwiseADC
 Cluster view span (1 or 2) More...
 
float fPairwiseTNS
 Average of hit-pairwise ADC differences in a cluster. More...
 
double fMeanTNS
 Average of hit-pairwise TNS differences in a cluster. More...
 
double fMeanX
 Cluster time mean (ns) More...
 
double fMeanY
 Cluster X mean. More...
 
double fMeanZ
 Cluster Y mean. More...
 
float fClusterEfficiency
 Cluster Z mean. More...
 
float fPurity
 Number of MC hits (in all clusters / total in event) More...
 
int fAdcDiff
 Cluster Purity (Nsig / Ntotal) More...
 
int fPlaneDiff
 Difference in ADC between pair-wise hits. More...
 
int fCellDiff
 
float fXdiff
 

Detailed Description

Definition at line 38 of file SNSlicerAna_module.cc.

Member Typedef Documentation

Definition at line 25 of file EDAnalyzer.h.

using art::EDAnalyzer::WorkerType = WorkerT<EDAnalyzer>
inherited

Definition at line 24 of file EDAnalyzer.h.

Constructor & Destructor Documentation

sn::SNSlicerAna::SNSlicerAna ( fhicl::ParameterSet const &  p)
explicit

Definition at line 108 of file SNSlicerAna_module.cc.

108  :
109  EDAnalyzer(p),
110  fClusterLabel(p.get<std::string>("ClusterLabel")),
111  fCellHitLabel(p.get<std::string>("CellHitLabel")),
112  fEventNumber(0),
113  fClusterId(0),
114  fClusterTNS(0),
115  fNHitsMC(0),
116  fNHitsBG(0),
117  fAdcMc(0),
118  fAdcBg(0),
119  fNFEB(0),
120  fSumADC(0),
121  fSpanADC(0),
122  fMeanADC(0),
123  fStdADC(0),
124  fSumMeV(0),
125  fSpanTNS(0),
126  fSpanPlane(0),
127  fSpanCellX(0),
128  fSpanCellY(0),
129  fSpanViews(0),
130  fPairwiseADC(0),
131  fPairwiseTNS(0),
132  fMeanTNS(0),
133  fMeanX(0),
134  fMeanY(0),
135  fMeanZ(0),
137  fPurity(0),
138  fAdcDiff(0),
139  fPlaneDiff(0),
140  fCellDiff(0),
141  fXdiff(0)
142 {
143 }
int fAdcDiff
Cluster Purity (Nsig / Ntotal)
double fMeanTNS
Average of hit-pairwise TNS differences in a cluster.
float fPairwiseADC
Cluster view span (1 or 2)
double fSumMeV
Std. Dev. of cluster ADCs.
int fPlaneDiff
Difference in ADC between pair-wise hits.
const char * p
Definition: xmltok.h:285
int fNFEB
ADC for BG hits.
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.h:27
int fSpanViews
Cluster cell span in Y-view (cells)
double fMeanZ
Cluster Y mean.
int fSpanCellY
Cluster cell span in X-view (cells)
double fMeanY
Cluster X mean.
int fNHitsMC
Min time of the cluster.
double fMeanX
Cluster time mean (ns)
int fSpanCellX
Cluster plane span (planes)
int fClusterId
ART event number.
float fPairwiseTNS
Average of hit-pairwise ADC differences in a cluster.
std::string fCellHitLabel
double fSumADC
Number of distinct FEBs in the cluster.
float fPurity
Number of MC hits (in all clusters / total in event)
int fNHitsBG
Number of MC hits in cluster.
int fAdcMc
Number of non-MC hits in cluster.
double fClusterTNS
Unique ID for each cluster in the event.
int fSpanPlane
Cluster time span (ns)
double fMeanADC
Difference between max and min ADCs.
double fSpanTNS
Cluster total energy (MeV)
int fAdcBg
ADC for MC hits.
int fSpanADC
Total cluster ADC.
std::string fClusterLabel
double fStdADC
Mean cluster ADC.
float fClusterEfficiency
Cluster Z mean.
enum BeamMode string
sn::SNSlicerAna::SNSlicerAna ( SNSlicerAna const &  )
delete
sn::SNSlicerAna::SNSlicerAna ( SNSlicerAna &&  )
delete

Member Function Documentation

void sn::SNSlicerAna::analyze ( art::Event const &  e)
overridevirtual

Implements art::EDAnalyzer.

Definition at line 146 of file SNSlicerAna_module.cc.

References std::abs(), rb::Cluster::AllCells(), geo::PlaneGeo::Cell(), art::EventID::event(), rb::Cluster::ExtentCell(), rb::Cluster::ExtentPlane(), rb::Cluster::ExtentTNS(), fAdcBg, fAdcDiff, fAdcMc, fCellDiff, fCellHitLabel, fClusterEfficiency, fClusterId, fClusterLabel, fClusterTNS, fClusterTree, fEventNumber, fEventTree, fGeom, fHitPairTree, check_time_usage::float, fMeanADC, fMeanTNS, fMeanX, fMeanY, fMeanZ, fNFEB, fNHitsBG, fNHitsMC, fPairwiseADC, fPairwiseTNS, fPlaneDiff, fPurity, fSpanADC, fSpanCellX, fSpanCellY, fSpanPlane, fSpanTNS, fSpanViews, fStdADC, fSumADC, fSumMeV, fXdiff, art::DataViewImpl::getByLabel(), geo::CellGeo::GetCenter(), hits(), MECModelEnuComparisons::i, art::Event::id(), calib::j, geo::kX, geo::kY, Mag(), rb::Cluster::MeanTNS(), rb::Cluster::MeanX(), rb::Cluster::MeanY(), rb::Cluster::MeanZ(), rb::Cluster::MinTNS(), rb::Cluster::NCell(), rb::Cluster::NXCell(), rb::Cluster::NYCell(), geo::GeometryBase::Plane(), cet::pow(), std::sqrt(), rb::Cluster::TotalADC(), rb::Cluster::TotalGeV(), x1, and submit_syst::x2.

147 {
148  fEventNumber = e.id().event();
149 
150  // Get the clusters from the ART event
152  e.getByLabel(fClusterLabel, clusters);
153 
154  int fClusterHitsMC = 0;
155 
156  for (size_t iCluster = 0; iCluster < clusters->size(); ++iCluster) {
157  rb::Cluster aCluster = clusters->at(iCluster);
158  fClusterId = iCluster;
159 
160  if (aCluster.NCell()==0) continue;
161 
162  fClusterTNS = aCluster.MinTNS();
163 
164  fSumADC = aCluster.TotalADC();
165  fSumMeV = aCluster.TotalGeV() * 1.0e3;
166  fMeanADC = aCluster.TotalADC() / (float)aCluster.NCell();
167  fSpanTNS = aCluster.ExtentTNS();
168  fSpanPlane = aCluster.ExtentPlane();
169  fSpanCellX = (aCluster.NXCell()) ? aCluster.ExtentCell(geo::kX) : 0;
170  fSpanCellY = (aCluster.NYCell()) ? aCluster.ExtentCell(geo::kY) : 0;
171 
172  fSpanViews = (fSpanCellX>0 && fSpanCellY>0) ? 2 : 1;
173 
174  fMeanTNS = aCluster.MeanTNS();
175  fMeanX = aCluster.MeanX();
176  fMeanY = aCluster.MeanY();
177  fMeanZ = aCluster.MeanZ();
178 
179 
180  // Loop over the contained cell hits
181  std::map<int, int> mapInteractionCounts;
182  fNHitsMC = 0;
183  fNHitsBG = 0;
184  std::vector<unsigned int> fFEBs;
185 
186  int fMinADC=0;
187  int fMaxADC=0;
188  float fVarADC=0;
189  art::PtrVector<rb::CellHit> allHits = aCluster.AllCells();
190  for (art::Ptr<rb::CellHit> aHit : allHits) {
191  fAdcMc = 0;
192  fAdcBg = 0;
193  (aHit->IsMC()) ? fNHitsMC++ : fNHitsBG++;
194  (aHit->IsMC()) ? fAdcMc = aHit->ADC() : fAdcBg = aHit->ADC();
195 
196  if (fMinADC==0 || aHit->ADC() < fMinADC) fMinADC = aHit->ADC();
197  if (fMaxADC==0 || aHit->ADC() > fMaxADC) fMaxADC = aHit->ADC();
198 
199  fVarADC += pow(aHit->ADC() - fMeanADC, 2) / (float)aCluster.NCell();
200 
201  unsigned int fFEB = aHit->DaqChannel() & 0xFFFFFF00;
202  if (std::find(fFEBs.begin(), fFEBs.end(), fFEB) == fFEBs.end()) fFEBs.push_back(fFEB);
203 
204  // fHitTree->Fill();
205  }
206 
207  fStdADC = sqrt(fVarADC);
208 
209  int n = 0;
210  float totalPairwiseADC = 0;
211  float totalPairwiseTNS = 0;
212  for (size_t i=0; i<allHits.size()-1; ++i) {
213  for (size_t j=i+1; j<allHits.size(); ++j) {
214  ++n;
215 
216  totalPairwiseADC = std::abs(allHits[i]->ADC() - allHits[j]->ADC());
217  totalPairwiseTNS = std::abs(allHits[i]->TNS() - allHits[j]->TNS());
218  fAdcDiff = std::abs(allHits[i]->ADC() - allHits[j]->ADC());
219  fPlaneDiff = std::abs(allHits[i]->Plane() - allHits[j]->Plane());
220  fCellDiff = std::abs(allHits[i]->Cell() - allHits[j]->Cell());
222 
223  TVector3 x1, x2;
224  fGeom->Plane(allHits[i]->Plane())->Cell(allHits[i]->Cell())->GetCenter(x1);
225  fGeom->Plane(allHits[j]->Plane())->Cell(allHits[j]->Cell())->GetCenter(x2);
226 
227  fXdiff = (x1 - x2).Mag();
228 
229  fHitPairTree->Fill();
230  }
231  }
232  fPairwiseADC = totalPairwiseADC / (float)n;
233  fPairwiseTNS = totalPairwiseTNS / (float)n;
234 
235  fSpanADC = fMaxADC - fMinADC;
236 
237  fNFEB = fFEBs.size();
238  fClusterHitsMC += fNHitsMC;
239 
240  fClusterTree->Fill();
241  }
242 
243  // Get the hits from the ART event
245  e.getByLabel(fCellHitLabel, hits);
246 
247  int fEventHitsMC = 0;
248  for (rb::CellHit aHit : *hits) {
249  if (aHit.IsMC()) ++fEventHitsMC;
250  }
251 
252  fClusterEfficiency = (float)fClusterHitsMC / (float)fEventHitsMC;
253 
254  fEventTree->Fill();
255 }
unsigned int NCell(geo::View_t view) const
Number of cells in view view.
Definition: Cluster.cxx:134
int fAdcDiff
Cluster Purity (Nsig / Ntotal)
void GetCenter(double *xyz, double localz=0.0) const
Definition: CellGeo.cxx:159
double fMeanTNS
Average of hit-pairwise TNS differences in a cluster.
float fPairwiseADC
Cluster view span (1 or 2)
double fSumMeV
Std. Dev. of cluster ADCs.
Float_t x1[n_points_granero]
Definition: compare.C:5
int fPlaneDiff
Difference in ADC between pair-wise hits.
const CellGeo * Cell(int icell) const
Definition: PlaneGeo.h:48
T sqrt(T number)
Definition: d0nt_math.hpp:156
constexpr T pow(T x)
Definition: pow.h:72
Vertical planes which measure X.
Definition: PlaneGeo.h:28
A collection of associated CellHits.
Definition: Cluster.h:47
double MeanZ(rb::AveragingScheme scheme=kDefaultScheme) const
Definition: Cluster.h:233
int fNFEB
ADC for BG hits.
const PlaneGeo * Plane(unsigned int i) const
int fSpanViews
Cluster cell span in Y-view (cells)
float abs(float number)
Definition: d0nt_math.hpp:39
Horizontal planes which measure Y.
Definition: PlaneGeo.h:29
art::PtrVector< rb::CellHit > AllCells() const
Get all cells from both views.
Definition: Cluster.cxx:180
double fMeanZ
Cluster Y mean.
unsigned int ExtentCell(geo::View_t view) const
Definition: Cluster.cxx:570
double MeanX(rb::AveragingScheme scheme=kDefaultScheme) const
Definition: Cluster.h:231
double MinTNS() const
Definition: Cluster.cxx:482
double TotalADC() const
Sum of the ADC of all the contained hits.
Definition: Cluster.cxx:360
void hits()
Definition: readHits.C:15
double MeanY(rb::AveragingScheme scheme=kDefaultScheme) const
Definition: Cluster.h:232
if(dump)
int fSpanCellY
Cluster cell span in X-view (cells)
double fMeanY
Cluster X mean.
std::void_t< T > n
int fNHitsMC
Min time of the cluster.
double fMeanX
Cluster time mean (ns)
const double j
Definition: BetheBloch.cxx:29
int fSpanCellX
Cluster plane span (planes)
int fClusterId
ART event number.
float fPairwiseTNS
Average of hit-pairwise ADC differences in a cluster.
std::string fCellHitLabel
double fSumADC
Number of distinct FEBs in the cluster.
float fPurity
Number of MC hits (in all clusters / total in event)
unsigned int NYCell() const
Number of cells in the y-view.
Definition: Cluster.h:108
int fNHitsBG
Number of MC hits in cluster.
int fAdcMc
Number of non-MC hits in cluster.
A rawdata::RawDigit with channel information decoded.
Definition: CellHit.h:27
art::ServiceHandle< geo::Geometry > fGeom
double fClusterTNS
Unique ID for each cluster in the event.
unsigned int NXCell() const
Number of cells in the x-view.
Definition: Cluster.h:106
double MeanTNS(rb::AveragingScheme scheme=kDefaultScheme) const
Definition: Cluster.cxx:554
float Mag() const
unsigned int ExtentPlane(geo::View_t view=geo::kXorY) const
Definition: Cluster.h:250
double TotalGeV(EEnergyCalcScheme escheme=kRecomputeEnergy) const
Simple sum of the estimated GeV of all the hits.
Definition: Cluster.cxx:378
int fSpanPlane
Cluster time span (ns)
double fMeanADC
Difference between max and min ADCs.
double fSpanTNS
Cluster total energy (MeV)
Float_t e
Definition: plot.C:35
#define for
Definition: msvc_pragmas.h:3
int fAdcBg
ADC for MC hits.
double ExtentTNS() const
Definition: Cluster.h:252
int fSpanADC
Total cluster ADC.
std::string fClusterLabel
double fStdADC
Mean cluster ADC.
float fClusterEfficiency
Cluster Z mean.
void sn::SNSlicerAna::beginJob ( )
overridevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 258 of file SNSlicerAna_module.cc.

References DEFINE_ART_MODULE(), fAdcBg, fAdcDiff, fAdcMc, fCellDiff, fClusterEfficiency, fClusterId, fClusterTNS, fClusterTree, fEventNumber, fEventTree, fHitPairTree, fHitTree, fMeanADC, fMeanTNS, fMeanX, fMeanY, fMeanZ, fNFEB, fNHitsBG, fNHitsMC, fPairwiseADC, fPairwiseTNS, fPlaneDiff, fPurity, fSpanADC, fSpanCellX, fSpanCellY, fSpanPlane, fSpanTNS, fSpanViews, fStdADC, fSumADC, fSumMeV, fXdiff, and tfs.

259 {
260  fClusterTree = tfs->make<TTree>("ClusterTree", "ClusterTree");
261  fClusterTree->Branch("EventNumber", &fEventNumber);
262  fClusterTree->Branch("ClusterID", &fClusterId);
263  fClusterTree->Branch("ClusterTNS", &fClusterTNS);
264  fClusterTree->Branch("NHitsMC", &fNHitsMC);
265  fClusterTree->Branch("NHitsBG", &fNHitsBG);
266  fClusterTree->Branch("NFEB", &fNFEB);
267  fClusterTree->Branch("SumADC", &fSumADC);
268  fClusterTree->Branch("SpanADC", &fSpanADC);
269  fClusterTree->Branch("MeanADC", &fMeanADC);
270  fClusterTree->Branch("StdADC", &fStdADC);
271  fClusterTree->Branch("SumMeV", &fSumMeV);
272  fClusterTree->Branch("PairwiseADC", &fPairwiseADC);
273  fClusterTree->Branch("PairwiseTNS", &fPairwiseTNS);
274  fClusterTree->Branch("SpanTNS", &fSpanTNS);
275  fClusterTree->Branch("SpanPlane", &fSpanPlane);
276  fClusterTree->Branch("SpanCellX", &fSpanCellX);
277  fClusterTree->Branch("SpanCellY", &fSpanCellY);
278  fClusterTree->Branch("SpanViews", &fSpanViews);
279  fClusterTree->Branch("MeanTNS", &fMeanTNS);
280  fClusterTree->Branch("MeanX", &fMeanX);
281  fClusterTree->Branch("MeanY", &fMeanY);
282  fClusterTree->Branch("MeanZ", &fMeanZ);
283 
284  fEventTree = tfs->make<TTree>("EventTree", "EventTree");
285  fEventTree->Branch("EventNumber", &fEventNumber);
286  fEventTree->Branch("ClusterEfficiency", &fClusterEfficiency);
287 
288  fHitTree = tfs->make<TTree>("HitTree", "HitTree");
289  fHitTree->Branch("EventNumber", &fEventNumber);
290  fHitTree->Branch("AdcMc", &fAdcMc);
291  fHitTree->Branch("AdcBg" , &fAdcBg);
292 
293  fHitPairTree = tfs->make<TTree>("HitPairTree", "HitPairTree");
294  fHitPairTree->Branch("EventNumber", &fEventNumber);
295  fHitPairTree->Branch("ClusterID", &fClusterId);
296  fHitPairTree->Branch("ClusterTNS", &fClusterTNS);
297  fHitPairTree->Branch("Purity", &fPurity);
298  fHitPairTree->Branch("PlaneDiff", &fPlaneDiff);
299  fHitPairTree->Branch("CellDiff", &fCellDiff);
300  fHitPairTree->Branch("ADCdiff", &fAdcDiff);
301  fHitPairTree->Branch("Xdiff", &fXdiff);
302 }
int fAdcDiff
Cluster Purity (Nsig / Ntotal)
double fMeanTNS
Average of hit-pairwise TNS differences in a cluster.
float fPairwiseADC
Cluster view span (1 or 2)
double fSumMeV
Std. Dev. of cluster ADCs.
art::ServiceHandle< art::TFileService > tfs
int fPlaneDiff
Difference in ADC between pair-wise hits.
int fNFEB
ADC for BG hits.
int fSpanViews
Cluster cell span in Y-view (cells)
double fMeanZ
Cluster Y mean.
int fSpanCellY
Cluster cell span in X-view (cells)
double fMeanY
Cluster X mean.
int fNHitsMC
Min time of the cluster.
double fMeanX
Cluster time mean (ns)
int fSpanCellX
Cluster plane span (planes)
int fClusterId
ART event number.
float fPairwiseTNS
Average of hit-pairwise ADC differences in a cluster.
double fSumADC
Number of distinct FEBs in the cluster.
float fPurity
Number of MC hits (in all clusters / total in event)
int fNHitsBG
Number of MC hits in cluster.
int fAdcMc
Number of non-MC hits in cluster.
double fClusterTNS
Unique ID for each cluster in the event.
int fSpanPlane
Cluster time span (ns)
double fMeanADC
Difference between max and min ADCs.
double fSpanTNS
Cluster total energy (MeV)
int fAdcBg
ADC for MC hits.
int fSpanADC
Total cluster ADC.
double fStdADC
Mean cluster ADC.
float fClusterEfficiency
Cluster Z mean.
template<typename T , BranchType BT>
ProductToken< T > art::ModuleBase::consumes ( InputTag const &  tag)
protectedinherited

Definition at line 55 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::consumes(), T, and getGoodRuns4SAM::tag.

56  {
57  return collector_.consumes<T, BT>(tag);
58  }
ConsumesCollector collector_
Definition: ModuleBase.h:50
ProductToken< T > consumes(InputTag const &)
double T
Definition: Xdiff_gwt.C:5
ConsumesCollector& art::ModuleBase::consumesCollector ( )
protectedinherited
template<typename T , BranchType BT>
void art::ModuleBase::consumesMany ( )
protectedinherited

Definition at line 69 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::consumesMany(), and T.

70  {
71  collector_.consumesMany<T, BT>();
72  }
ConsumesCollector collector_
Definition: ModuleBase.h:50
double T
Definition: Xdiff_gwt.C:5
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::ModuleBase::consumesView ( InputTag const &  )
protectedinherited
template<typename T , BranchType BT>
ViewToken<T> art::ModuleBase::consumesView ( InputTag const &  tag)
inherited

Definition at line 62 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::consumesView(), T, and getGoodRuns4SAM::tag.

63  {
64  return collector_.consumesView<T, BT>(tag);
65  }
ConsumesCollector collector_
Definition: ModuleBase.h:50
ViewToken< Element > consumesView(InputTag const &)
double T
Definition: Xdiff_gwt.C:5
void art::detail::Analyzer::doBeginJob ( )
inherited
bool art::detail::Analyzer::doBeginRun ( RunPrincipal rp,
ModuleContext const &  mc 
)
inherited
bool art::detail::Analyzer::doBeginSubRun ( SubRunPrincipal srp,
ModuleContext const &  mc 
)
inherited
void art::detail::Analyzer::doEndJob ( )
inherited
bool art::detail::Analyzer::doEndRun ( RunPrincipal rp,
ModuleContext const &  mc 
)
inherited
bool art::detail::Analyzer::doEndSubRun ( SubRunPrincipal srp,
ModuleContext const &  mc 
)
inherited
bool art::detail::Analyzer::doEvent ( EventPrincipal ep,
ModuleContext const &  mc,
std::atomic< std::size_t > &  counts_run,
std::atomic< std::size_t > &  counts_passed,
std::atomic< std::size_t > &  counts_failed 
)
inherited
void art::detail::Analyzer::doRespondToCloseInputFile ( FileBlock const &  fb)
inherited
void art::detail::Analyzer::doRespondToCloseOutputFiles ( FileBlock const &  fb)
inherited
void art::detail::Analyzer::doRespondToOpenInputFile ( FileBlock const &  fb)
inherited
void art::detail::Analyzer::doRespondToOpenOutputFiles ( FileBlock const &  fb)
inherited
void art::Observer::fillDescriptions ( ModuleDescription const &  )
inherited
std::array<std::vector<ProductInfo>, NumBranchTypes> const& art::ModuleBase::getConsumables ( ) const
inherited
Handle<TriggerResults> art::Observer::getTriggerResults ( Event const &  e) const
inherited
template<typename T , BranchType BT>
ProductToken< T > art::ModuleBase::mayConsume ( InputTag const &  tag)
protectedinherited

Definition at line 76 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::mayConsume(), T, and getGoodRuns4SAM::tag.

77  {
78  return collector_.mayConsume<T, BT>(tag);
79  }
ProductToken< T > mayConsume(InputTag const &)
ConsumesCollector collector_
Definition: ModuleBase.h:50
double T
Definition: Xdiff_gwt.C:5
template<typename T , BranchType BT>
void art::ModuleBase::mayConsumeMany ( )
protectedinherited

Definition at line 90 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::mayConsumeMany(), and T.

91  {
93  }
ConsumesCollector collector_
Definition: ModuleBase.h:50
double T
Definition: Xdiff_gwt.C:5
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::ModuleBase::mayConsumeView ( InputTag const &  )
protectedinherited
template<typename T , BranchType BT>
ViewToken<T> art::ModuleBase::mayConsumeView ( InputTag const &  tag)
inherited

Definition at line 83 of file ModuleBase.h.

References art::ModuleBase::collector_, art::ConsumesCollector::mayConsumeView(), T, and getGoodRuns4SAM::tag.

84  {
85  return collector_.mayConsumeView<T, BT>(tag);
86  }
ConsumesCollector collector_
Definition: ModuleBase.h:50
ViewToken< Element > mayConsumeView(InputTag const &)
double T
Definition: Xdiff_gwt.C:5
ModuleDescription const& art::ModuleBase::moduleDescription ( ) const
inherited
SNSlicerAna& sn::SNSlicerAna::operator= ( SNSlicerAna const &  )
delete
SNSlicerAna& sn::SNSlicerAna::operator= ( SNSlicerAna &&  )
delete
detail::ProcessAndEventSelectors& art::Observer::processAndEventSelectors ( )
protectedinherited
std::string const& art::Observer::processName ( ) const
inherited
void art::Observer::registerProducts ( ProductDescriptions ,
ModuleDescription const &   
)
inherited
fhicl::ParameterSetID art::Observer::selectorConfig ( ) const
inherited
void art::ModuleBase::setModuleDescription ( ModuleDescription const &  )
inherited
void art::ModuleBase::sortConsumables ( std::string const &  current_process_name)
inherited
bool art::Observer::wantAllEvents ( ) const
inherited
bool art::Observer::wantEvent ( Event const &  e)
inherited
std::string art::EDAnalyzer::workerType ( ) const
inherited

Member Data Documentation

int sn::SNSlicerAna::fAdcBg
private

ADC for MC hits.

Definition at line 75 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fAdcDiff
private

Cluster Purity (Nsig / Ntotal)

Definition at line 101 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fAdcMc
private

Number of non-MC hits in cluster.

Definition at line 74 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fCellDiff
private

Definition at line 103 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

std::string sn::SNSlicerAna::fCellHitLabel
private

Definition at line 59 of file SNSlicerAna_module.cc.

Referenced by analyze().

float sn::SNSlicerAna::fClusterEfficiency
private

Cluster Z mean.

Definition at line 98 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fClusterId
private

ART event number.

Definition at line 68 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

std::string sn::SNSlicerAna::fClusterLabel
private

Definition at line 58 of file SNSlicerAna_module.cc.

Referenced by analyze().

double sn::SNSlicerAna::fClusterTNS
private

Unique ID for each cluster in the event.

Definition at line 69 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

TTree* sn::SNSlicerAna::fClusterTree
private

Definition at line 61 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fEventNumber
private

Definition at line 67 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

TTree* sn::SNSlicerAna::fEventTree
private

Definition at line 62 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

art::ServiceHandle<geo::Geometry> sn::SNSlicerAna::fGeom
private

Definition at line 55 of file SNSlicerAna_module.cc.

Referenced by analyze().

TTree* sn::SNSlicerAna::fHitPairTree
private

Definition at line 64 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

TTree* sn::SNSlicerAna::fHitTree
private

Definition at line 63 of file SNSlicerAna_module.cc.

Referenced by beginJob().

double sn::SNSlicerAna::fMeanADC
private

Difference between max and min ADCs.

Definition at line 81 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

double sn::SNSlicerAna::fMeanTNS
private

Average of hit-pairwise TNS differences in a cluster.

Definition at line 93 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

double sn::SNSlicerAna::fMeanX
private

Cluster time mean (ns)

Definition at line 94 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

double sn::SNSlicerAna::fMeanY
private

Cluster X mean.

Definition at line 95 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

double sn::SNSlicerAna::fMeanZ
private

Cluster Y mean.

Definition at line 96 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fNFEB
private

ADC for BG hits.

Definition at line 76 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fNHitsBG
private

Number of MC hits in cluster.

Definition at line 73 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fNHitsMC
private

Min time of the cluster.

Definition at line 72 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

float sn::SNSlicerAna::fPairwiseADC
private

Cluster view span (1 or 2)

Definition at line 89 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

float sn::SNSlicerAna::fPairwiseTNS
private

Average of hit-pairwise ADC differences in a cluster.

Definition at line 90 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fPlaneDiff
private

Difference in ADC between pair-wise hits.

Definition at line 102 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

float sn::SNSlicerAna::fPurity
private

Number of MC hits (in all clusters / total in event)

Definition at line 100 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fSpanADC
private

Total cluster ADC.

Definition at line 80 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fSpanCellX
private

Cluster plane span (planes)

Definition at line 86 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fSpanCellY
private

Cluster cell span in X-view (cells)

Definition at line 87 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fSpanPlane
private

Cluster time span (ns)

Definition at line 85 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

double sn::SNSlicerAna::fSpanTNS
private

Cluster total energy (MeV)

Definition at line 84 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

int sn::SNSlicerAna::fSpanViews
private

Cluster cell span in Y-view (cells)

Definition at line 88 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

double sn::SNSlicerAna::fStdADC
private

Mean cluster ADC.

Definition at line 82 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

double sn::SNSlicerAna::fSumADC
private

Number of distinct FEBs in the cluster.

Definition at line 79 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

double sn::SNSlicerAna::fSumMeV
private

Std. Dev. of cluster ADCs.

Definition at line 83 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

float sn::SNSlicerAna::fXdiff
private

Definition at line 104 of file SNSlicerAna_module.cc.

Referenced by analyze(), and beginJob().

art::ServiceHandle<art::TFileService> sn::SNSlicerAna::tfs
private

Definition at line 54 of file SNSlicerAna_module.cc.

Referenced by beginJob().


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