20 #include "canvas/Persistency/Common/FindOne.h" 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"),
137 <<
"The event contains " <<
Hits->
size() <<
" '" 140 std::unique_ptr<art::FindOne<raw::RawDigit>> HitToRawDigit;
144 if (!HitToRawDigit->isValid()) {
146 <<
"DumpHits: can't find associations between raw digits and hits from '" 151 std::unique_ptr<art::FindOne<recob::Wire>>
HitToWire;
154 if (!HitToWire->isValid()) {
156 <<
"DumpHits: can't find associations between wires and hits from '" 161 unsigned int iHit = 0;
166 <<
"Hit #" << iHit <<
": " <<
hit;
170 if (assChannelID != hit.Channel()) {
172 <<
"Hit #" << iHit <<
" on channel " << hit.Channel()
173 <<
" is associated with raw digit on channel " << assChannelID
180 if (assChannelID != hit.Channel()) {
182 <<
"Hit #" << iHit <<
" on channel " << hit.Channel()
183 <<
" 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
ChannelGroupService::Name Name
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.
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
Detector simulation of raw signals on wires.
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
art::PtrVector< recob::Hit > Hits
Declaration of signal hit object.
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.