Classes | Enumerations | Functions
sn Namespace Reference

Remove hits from hot and cold channels. More...

Classes

class  ColdHotChannelsRemover
 
class  DaqChannelMask
 
class  FEBFlasherRemover
 
class  HighEnergyRemover
 
class  HitVetoMap
 
class  LowHighADCRemover
 
class  MichelBackgroundManager
 
class  SliceRemover
 
class  SNBackgroundRejection
 
class  SNMichelAnalyzer
 
class  SNSlicer
 
class  SNSlicerAna
 
class  SupernovaAna
 
class  SupernovaMCCluster
 
class  TrackActivityRemover
 

Enumerations

enum  TrackType {
  kUnknown =0, kStopping, kThroughGoing, kExiting,
  kContained, kUnknown =0, kStopping, kThroughGoing,
  kExiting, kContained
}
 
enum  TrackType {
  kUnknown =0, kStopping, kThroughGoing, kExiting,
  kContained, kUnknown =0, kStopping, kThroughGoing,
  kExiting, kContained
}
 
enum  ProcessID {
  kNone =-1, kUnknown =0, kPrimary, kHadElastic,
  kNCapture, kNeutronInelastic
}
 

Functions

bool SortTracksByTime (const art::Ptr< rb::Track > &t1, const art::Ptr< rb::Track > &t2)
 
bool SortTrackEndsByTime (const std::pair< int, std::pair< double, TVector3 >> &t1, const std::pair< int, std::pair< double, TVector3 >> &t2)
 
bool SortClustersByTime (const rb::Cluster &c1, const rb::Cluster &c2)
 
std::ostream & operator<< (std::ostream &os, const sn::MichelBackgroundManager &m)
 

Detailed Description

Remove hits from hot and cold channels.

Author
Justin Vasel justi.nosp@m.n.va.nosp@m.sel@g.nosp@m.mail.nosp@m..com
Date
5 December 2019

Enumeration Type Documentation

Enumerator
kNone 
kUnknown 

Track type is none of the below.

kPrimary 
kHadElastic 
kNCapture 
kNeutronInelastic 

Definition at line 30 of file SupernovaMCClusters_module.cc.

Enumerator
kUnknown 

Track type is none of the below.

kStopping 

Track enters the detector and stops inside.

kThroughGoing 

Track enters and exits the detector.

kExiting 

Track starts inside the detector and exits.

kContained 

Track starts and ends entirely inside the detector.

kUnknown 

Track type is none of the below.

kStopping 

Track enters the detector and stops inside.

kThroughGoing 

Track enters and exits the detector.

kExiting 

Track starts inside the detector and exits.

kContained 

Track starts and ends entirely inside the detector.

Definition at line 32 of file TrackActivityRemover.h.

32  {
33  kUnknown, ///< Track type is none of the below
34  kStopping, ///< Track enters the detector and stops inside
35  kThroughGoing, ///< Track enters and exits the detector
36  kExiting, ///< Track starts inside the detector and exits
37  kContained ///< Track starts and ends entirely inside the detector
38  };
Track enters the detector and stops inside.
Track starts inside the detector and exits.
const Cut kContained([](const caf::SRProxy *sr){return(sr->slc.boxmin.Z() > 100 && sr->slc.boxmax.Z()< 800);})
2 di-block era contained-type event selector
Definition: Cuts.h:42
const Cut kThroughGoing([](const caf::SRProxy *sr){return(sr->slc.boxmin.Z()< 100 && sr->slc.boxmax.Z() > 800);})
2 di-block era through-going-type event selector
Definition: Cuts.h:45
Enumerator
kUnknown 

Track type is none of the below.

kStopping 

Track enters the detector and stops inside.

kThroughGoing 

Track enters and exits the detector.

kExiting 

Track starts inside the detector and exits.

kContained 

Track starts and ends entirely inside the detector.

kUnknown 

Track type is none of the below.

kStopping 

Track enters the detector and stops inside.

kThroughGoing 

Track enters and exits the detector.

kExiting 

Track starts inside the detector and exits.

kContained 

Track starts and ends entirely inside the detector.

Definition at line 45 of file SNMichelAnalyzer_module.cc.

45  {
46  kUnknown, // Track type is none of the below
47  kStopping, // Track enters the detector and stops inside
48  kThroughGoing, // Track enters and exits the detector
49  kExiting, // Track starts inside the detector and exits
50  kContained // Track starts and ends entirely inside the detector
51  };
Track enters the detector and stops inside.
Track type is none of the below.
Track starts inside the detector and exits.
Track enters and exits the detector.
Track starts and ends entirely inside the detector.

Function Documentation

std::ostream& sn::operator<< ( std::ostream &  os,
const sn::MichelBackgroundManager m 
)

Definition at line 78 of file SNMichelAnalyzer_module.cc.

References HTMLTools::entry(), and sn::MichelBackgroundManager::GetEntries().

79  {
80  os << "[ ";
81  for (std::vector<std::pair<int, std::pair<double, TVector3>>> entry : m.GetEntries()) {
82  os << entry.size() << " ";
83  }
84  os << "]";
85  return os;
86  }
std::deque< std::vector< std::pair< int, std::pair< double, TVector3 > > > > GetEntries() const
def entry(str)
Definition: HTMLTools.py:26
bool sn::SortClustersByTime ( const rb::Cluster c1,
const rb::Cluster c2 
)

Definition at line 426 of file SNMichelAnalyzer_module.cc.

References DEFINE_ART_MODULE(), and rb::Cluster::MinTNS().

427 {
428  return c1.MinTNS() < c2.MinTNS();
429 }
double MinTNS() const
Definition: Cluster.cxx:482
bool sn::SortTrackEndsByTime ( const std::pair< int, std::pair< double, TVector3 >> &  t1,
const std::pair< int, std::pair< double, TVector3 >> &  t2 
)

Definition at line 420 of file SNMichelAnalyzer_module.cc.

References getGoodRuns4SAM::t1, and t2.

Referenced by sn::SNMichelAnalyzer::ClusterAroundTrackEnds().

421 {
422  return t1.second.first < t2.second.first;
423 }
double t2
bool sn::SortTracksByTime ( const art::Ptr< rb::Track > &  t1,
const art::Ptr< rb::Track > &  t2 
)

Definition at line 414 of file SNMichelAnalyzer_module.cc.

References rb::Cluster::MinTNS().

Referenced by sn::SNMichelAnalyzer::analyze().

415 {
416  return t1->MinTNS() < t2->MinTNS();
417 }
double MinTNS() const
Definition: Cluster.cxx:482