3 #ifndef RawEVDDP_Module 4 #define RawEVDDP_Module 25 #include "art_root_io/TFileService.h" 27 #include "canvas/Persistency/Common/FindManyP.h" 113 fDetProp = lar::providerFrom<detinfo::DetectorPropertiesService>();
146 throw cet::exception(
"RawEVDDP") <<
"For DUNE DP expected to have only 2 views ";
150 unsigned int minT = 0;
152 unsigned int binT = (maxT-minT);
156 int nBins = (
int)((maxADC - minADC)/2.0);
158 for(
unsigned int i=0;i<
fGeom->
NTPC();i++)
162 name <<
"fTimeChanU";
165 title <<
"Time vs Channel(Plane U, CRM";
167 TempHisto2 = tfs->make<TH2I>(name.str().c_str(),title.str().c_str(),
fChPerView, 0,
fChPerView, binT, minT, maxT);
171 name <<
"fTimeChanThumbU";
174 title <<
"Time vs Channel(Plane U, CRM";
176 TempHisto2 = tfs->make<TH2I>(name.str().c_str(),title.str().c_str(), 32, 0,
fChPerView, 32, minT, maxT);
183 title <<
"Max ADC per channel (Plane U, CRM";
185 TempHisto1 = tfs->make<TH1I>(name.str().c_str(),title.str().c_str(), nBins, minADC, maxADC);
190 name <<
"fTimeChanV";
193 title <<
"Time vs Channel(Plane V, CRM";
195 TempHisto2 = tfs->make<TH2I>(name.str().c_str(),title.str().c_str(),
fChPerView, 0,
fChPerView, binT, minT, maxT);
199 name <<
"fTimeChanThumbV";
202 title <<
"Time vs Channel(Plane V, CRM";
204 TempHisto2 = tfs->make<TH2I>(name.str().c_str(),title.str().c_str(), 32, 0,
fChPerView, 32, minT, maxT);
211 title <<
"Max ADC per channel (Plane V, CRM";
213 TempHisto1 = tfs->make<TH1I>(name.str().c_str(),title.str().c_str(), nBins, minADC, maxADC);
238 std::vector< art::Ptr<raw::RawDigit> > Digits;
243 for(
size_t d = 0;
d < Digits.size();
d++)
255 std::vector<short> uncompressed(digit->
Samples());
261 for(
unsigned int l=0;
l<uncompressed.size();
l++)
263 short adcval = uncompressed.at(
l);
264 if(uncompressed.at(
l) > maxadc)
275 for(
unsigned int l=0;
l<uncompressed.size();
l++)
277 short adcval = uncompressed.at(
l);
278 if(uncompressed.at(
l) > maxadc)
297 #endif // RawEVDDP_Module
Store parameters for running LArG4.
detinfo::DetectorProperties const * fDetProp
const ADCvector_t & ADCs() const
Reference to the compressed ADC count vector.
ULong64_t Samples() const
Number of samples in the uncompressed ADC data.
void beginRun(const art::Run &run)
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
Declaration of signal hit object.
ChannelID_t Channel() const
DAQ channel this raw data was read from.
std::vector< geo::WireID > ChannelToWire(raw::ChannelID_t const channel) const
Returns a list of wires connected to the specified TPC channel.
Definition of basic raw digits.
std::vector< TH2I * > fTimeChanU
EDAnalyzer(fhicl::ParameterSet const &pset)
unsigned int Ncryostats() const
Returns the number of cryostats in the detector.
unsigned int Nchannels() const
Returns the number of TPC readout channels in the detector.
std::vector< TH2I * > fTimeChanV
std::vector< TH2I * > fTimeChanThumbU
#define DEFINE_ART_MODULE(klass)
Collect all the RawData header files together.
T get(std::string const &key) const
std::vector< TH1I * > fADCMaxDistU
virtual unsigned int NumberTimeSamples() const =0
Declaration of cluster object.
View_t View(geo::PlaneID const &pid) const
Returns the view (wire orientation) on the channels of specified TPC plane.
Definition of data types for geometry description.
RawEVDDP(fhicl::ParameterSet const &pset)
unsigned int NTPC(unsigned int cstat=0) const
Returns the total number of TPCs in the specified cryostat.
void reconfigure(fhicl::ParameterSet const &pset)
raw::Compress_t Compression() const
Compression algorithm used to store the ADC counts.
art::ServiceHandle< geo::Geometry > fGeom
object containing MC truth information necessary for making RawDigits and doing back tracking ...
std::string fRawDigitLabel
unsigned int Nviews() const
Returns the number of views (different wire orientations)
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
void Uncompress(const std::vector< short > &adc, std::vector< short > &uncompressed, raw::Compress_t compress)
Uncompresses a raw data buffer.
void analyze(const art::Event &evt)
std::vector< TH2I * > fTimeChanThumbV
cet::coded_exception< error, detail::translate > exception
Event finding and building.
std::vector< TH1I * > fADCMaxDistV