54 Name(
"HitModuleLabel"),
55 Comment(
"tag of the producer used to create the recob::Hit collection")
59 Name(
"OutputCategory"),
60 Comment(
"the messagefacility category used for the output"),
65 Name(
"CheckRawDigitAssociation"),
66 Comment(
"verify the associated raw digits are on the same channel as the hit"),
71 Name(
"CheckWireAssociation"),
72 Comment(
"verify the associated wire is on the same channel as the hit"),
138 <<
"The event contains " <<
Hits->
size() <<
" '" 141 std::unique_ptr<art::FindOne<raw::RawDigit>> HitToRawDigit;
145 if (!HitToRawDigit->isValid()) {
147 <<
"DumpHits: can't find associations between raw digits and hits from '" 152 std::unique_ptr<art::FindOne<recob::Wire>>
HitToWire;
155 if (!HitToWire->isValid()) {
157 <<
"DumpHits: can't find associations between wires and hits from '" 162 unsigned int iHit = 0;
167 <<
"Hit #" << iHit <<
": " <<
hit;
171 if (assChannelID != hit.Channel()) {
173 <<
"Hit #" << iHit <<
" on channel " << hit.Channel()
174 <<
" is associated with raw digit on channel " << assChannelID
181 if (assChannelID != hit.Channel()) {
183 <<
"Hit #" << iHit <<
" on channel " << hit.Channel()
184 <<
" is associated with wire on channel " << assChannelID
fhicl::Atom< bool > CheckWireAssociation
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
art::InputTag fHitsModuleLabel
name of module that produced the hits
fhicl::Atom< bool > CheckRawDigitAssociation
Prints the content of all the hits on screen.
fhicl::Atom< art::InputTag > HitModuleLabel
void analyze(const art::Event &evt)
Does the printing.
std::string fOutputCategory
category for LogInfo output
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
Declaration of signal hit object.
Definition of basic raw digits.
fhicl::Atom< std::string > OutputCategory
#define DEFINE_ART_MODULE(klass)
details::FindAllP< recob::Hit, recob::Wire > HitToWire
Query object connecting a hit to a wire.
EDAnalyzer(Table< Config > const &config)
Detector simulation of raw signals on wires.
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
art::PtrVector< recob::Hit > Hits
bool bCheckWires
check associations with wires
bool bCheckRawDigits
check associations with raw digits
DumpHits(Parameters const &config)
Default constructor.
Declaration of basic channel signal object.
2D representation of charge deposited in the TDC/wire plane
unsigned int ChannelID_t
Type representing the ID of a readout channel.
ValidHandle< PROD > getValidHandle(InputTag const &tag) const