Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
sn::SNSlicerAna Class Reference
Inheritance diagram for sn::SNSlicerAna:
art::EDAnalyzer art::EventObserverBase art::Consumer art::EngineCreator

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
 
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< Tconsumes (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< Tconsumes (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< TconsumesView (InputTag const &it)
 
template<typename T , BranchType = InEvent>
ProductToken< TmayConsume (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< TmayConsume (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< TmayConsumeView (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 Attributes

art::ServiceHandle< art::TFileServicetfs
 
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 39 of file EDAnalyzer.h.

Definition at line 38 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.
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
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
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(), getGoodRuns4SAM::n, 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:75
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.
int fNHitsMC
Min time of the cluster.
double fMeanX
Cluster time mean (ns)
base_types push_back(int_type())
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, art::TFileDirectory::make(), 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.
T * make(ARGS...args) const
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.
detail::CachedProducts& art::EventObserverBase::cachedProducts ( )
inlineprotectedinherited

Definition at line 79 of file EventObserverBase.h.

References art::EventObserverBase::selectors_.

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 146 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

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

Definition at line 161 of file Consumer.h.

References T.

162 {
163  if (!moduleContext_)
164  return;
165 
166  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
167 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
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 171 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

172 {
173  if (!moduleContext_)
174  return ViewToken<T>::invalid();
175 
176  consumables_[BT].emplace_back(ConsumableType::ViewElement,
177  TypeID{typeid(T)},
178  it.label(),
179  it.instance(),
180  it.process());
181  return ViewToken<T>{it};
182 }
set< int >::iterator it
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make 
)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make,
label_t const &  engine_label 
)
inherited
CurrentProcessingContext const* art::EDAnalyzer::currentContext ( ) const
protectedinherited
seed_t art::EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)
inherited
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_.

62  {
64  }
detail::CachedProducts selectors_
art::Handle< art::TriggerResults > getOneTriggerResults(Event const &) const
Float_t e
Definition: plot.C:35
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 189 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

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

Definition at line 204 of file Consumer.h.

References T.

205 {
206  if (!moduleContext_)
207  return;
208 
209  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
210 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
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 214 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

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

Definition at line 25 of file EventObserverBase.h.

26  {
27  return false;
28  }
static cet::exempt_ptr<Consumer> art::Consumer::non_module_context ( )
staticinherited
SNSlicerAna& sn::SNSlicerAna::operator= ( SNSlicerAna const &  )
delete
SNSlicerAna& sn::SNSlicerAna::operator= ( SNSlicerAna &&  )
delete
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
std::string const& art::EventObserverBase::processName ( ) const
inlineinherited
void art::EventObserverBase::registerProducts ( MasterProductRegistry ,
ProductDescriptions ,
ModuleDescription const &   
)
inlineinherited

Definition at line 33 of file EventObserverBase.h.

References string.

36  {}
fhicl::ParameterSetID art::EventObserverBase::selectorConfig ( ) const
inlineinherited

Definition at line 56 of file EventObserverBase.h.

References art::EventObserverBase::selector_config_id_.

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

Referenced by art::RootOutput::endJob().

void art::Consumer::validateConsumedProduct ( BranchType const  bt,
ProductInfo const &  pi 
)
protectedinherited
bool art::EventObserverBase::wantAllEvents ( ) const
inlineinherited

Definition at line 46 of file EventObserverBase.h.

References art::EventObserverBase::wantAllEvents_.

Referenced by art::RootOutput::RootOutput().

47  {
48  return wantAllEvents_;
49  }
bool art::EventObserverBase::wantEvent ( Event const &  e)
inlineinherited

Definition at line 51 of file EventObserverBase.h.

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

52  {
53  return selectors_.wantEvent(e);
54  }
detail::CachedProducts selectors_
Float_t e
Definition: plot.C:35
bool wantEvent(Event const &)
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

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: