53 Name(
"HitModuleLabel"),
54 Comment(
"tag of the producer used to create the recob::Hit collection")};
57 Name(
"OutputCategory"),
58 Comment(
"the messagefacility category used for the output"),
62 Name(
"CheckRawDigitAssociation"),
63 Comment(
"verify the associated raw digits are on the same channel as the hit"),
67 Name(
"CheckWireAssociation"),
68 Comment(
"verify the associated wire is on the same channel as the hit"),
130 std::unique_ptr<art::FindOne<raw::RawDigit>> HitToRawDigit;
133 if (!HitToRawDigit->isValid()) {
135 <<
"DumpHits: can't find associations between raw digits and hits from '" 140 std::unique_ptr<art::FindOne<recob::Wire>>
HitToWire;
143 if (!HitToWire->isValid()) {
145 <<
"DumpHits: can't find associations between wires and hits from '" <<
fHitsModuleLabel 150 unsigned int iHit = 0;
158 if (assChannelID != hit.Channel()) {
160 <<
"Hit #" << iHit <<
" on channel " << hit.Channel()
161 <<
" is associated with raw digit on channel " << assChannelID <<
"!!";
167 if (assChannelID != hit.Channel()) {
169 <<
"Hit #" << iHit <<
" on channel " << hit.Channel()
170 <<
" 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.
EDAnalyzer(fhicl::ParameterSet const &pset)
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.
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
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
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.