Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dq::DAQHeaderSummaryAna Class Reference
Inheritance diagram for dq::DAQHeaderSummaryAna:
art::EDAnalyzer art::EventObserverBase art::Consumer art::EngineCreator

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 DAQHeaderSummaryAna (fhicl::ParameterSet const &p)
 
 DAQHeaderSummaryAna (DAQHeaderSummaryAna const &)=delete
 
 DAQHeaderSummaryAna (DAQHeaderSummaryAna &&)=delete
 
DAQHeaderSummaryAnaoperator= (DAQHeaderSummaryAna const &)=delete
 
DAQHeaderSummaryAnaoperator= (DAQHeaderSummaryAna &&)=delete
 
void analyze (art::Event const &e) override
 
void beginJob () override
 
void endJob () override
 
std::string workerType () const
 
bool modifiesEvent () const
 
void registerProducts (MasterProductRegistry &, ProductDescriptions &, ModuleDescription const &)
 
std::string const & processName () const
 
bool wantAllEvents () const
 
bool wantEvent (Event const &e)
 
fhicl::ParameterSetID selectorConfig () const
 
art::Handle< art::TriggerResultsgetTriggerResults (Event const &e) const
 
template<typename T , BranchType = InEvent>
ProductToken< Tconsumes (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< Tconsumes (InputTag const &it)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ViewToken< TconsumesView (InputTag const &it)
 
template<typename T , BranchType = InEvent>
ProductToken< TmayConsume (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< TmayConsume (InputTag const &it)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ViewToken< TmayConsumeView (InputTag const &it)
 
base_engine_tcreateEngine (seed_t seed)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make, label_t const &engine_label)
 
seed_t get_seed_value (fhicl::ParameterSet const &pset, char const key[]="seed", seed_t const implicit_seed=-1)
 

Static Public Member Functions

static cet::exempt_ptr< Consumernon_module_context ()
 

Protected Member Functions

CurrentProcessingContext const * currentContext () const
 
detail::CachedProducts & cachedProducts ()
 
void validateConsumedProduct (BranchType const bt, ProductInfo const &pi)
 
void prepareForJob (fhicl::ParameterSet const &pset)
 
void showMissingConsumes () const
 

Private Attributes

std::string fRawDataLabel
 ART module label for Raw Data products. More...
 
std::string fDQLabel
 ART module label for Data Quality products. More...
 
art::ServiceHandle< art::TFileServicetfs
 
TTree * fTree
 
unsigned long long fTriggerStartTime
 
unsigned int fTriggerDuration
 
unsigned int fTriggerType
 
bool fEventIncomplete
 Is the event incomplete? More...
 
int fEventNumber
 Event number (diagnostic) More...
 
int fNemptyDataBlock
 How many empty data blocks? More...
 
int fNmicroBlocks
 How many microblocks? More...
 
int fNmicroSlices
 How many microslices? More...
 
int fNemptyMicroSlice
 How many empty micro slices? More...
 
int fNDroppedMicroBlocks
 How many dropped micro blocks? More...
 
int fNdataBlockMissingData
 

of occurances of isMissingData

More...
 
int fNmicroSliceDataNotPresent
 

of microslices with !DataPresent

More...
 
int fNDiblocks
 

of diblocks reporting in event

More...
 

Detailed Description

Definition at line 31 of file DAQHeaderSummaryAna_module.cc.

Member Typedef Documentation

Definition at line 39 of file EDAnalyzer.h.

Definition at line 38 of file EDAnalyzer.h.

Constructor & Destructor Documentation

dq::DAQHeaderSummaryAna::DAQHeaderSummaryAna ( fhicl::ParameterSet const &  p)
explicit

Definition at line 74 of file DAQHeaderSummaryAna_module.cc.

75  :
76  EDAnalyzer(p),
77  fRawDataLabel(p.get<std::string>("RawDataLabel")),
78  fDQLabel(p.get<std::string>("DQLabel"))
79 {}
const char * p
Definition: xmltok.h:285
std::string fDQLabel
ART module label for Data Quality products.
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
std::string fRawDataLabel
ART module label for Raw Data products.
enum BeamMode string
dq::DAQHeaderSummaryAna::DAQHeaderSummaryAna ( DAQHeaderSummaryAna const &  )
delete
dq::DAQHeaderSummaryAna::DAQHeaderSummaryAna ( DAQHeaderSummaryAna &&  )
delete

Member Function Documentation

void dq::DAQHeaderSummaryAna::analyze ( art::Event const &  e)
overridevirtual

Implements art::EDAnalyzer.

Definition at line 81 of file DAQHeaderSummaryAna_module.cc.

References fDQLabel, dq::DAQEventSummary::fEventIncomplete, fEventIncomplete, dq::DAQEventSummary::fEventNumber, fEventNumber, dq::DAQEventSummary::fNdataBlockMissingData, fNdataBlockMissingData, dq::DAQEventSummary::fNDiblocks, fNDiblocks, dq::DAQEventSummary::fNDroppedMicroBlocks, fNDroppedMicroBlocks, dq::DAQEventSummary::fNemptyDataBlock, fNemptyDataBlock, dq::DAQEventSummary::fNemptyMicroSlice, fNemptyMicroSlice, dq::DAQEventSummary::fNmicroBlocks, fNmicroBlocks, dq::DAQEventSummary::fNmicroSliceDataNotPresent, fNmicroSliceDataNotPresent, dq::DAQEventSummary::fNmicroSlices, fNmicroSlices, fRawDataLabel, fTree, fTriggerDuration, rawdata::RawTrigger::fTriggerMask_TriggerType, rawdata::RawTrigger::fTriggerRange_TriggerLength, fTriggerStartTime, rawdata::RawTrigger::fTriggerTimingMarker_TimeStart, fTriggerType, and art::DataViewImpl::getByLabel().

82 {
83  // Get the RawTrigger from the event
85  e.getByLabel(fRawDataLabel, rawtrigs);
86  rawdata::RawTrigger rawtrig = rawtrigs->at(0);
87 
91 
92  // Get the DAQEventSummary from the event
94  e.getByLabel(fDQLabel, daqsum);
95 
97  fEventNumber = daqsum->fEventNumber;
99  fNmicroBlocks = daqsum->fNmicroBlocks;
100  fNmicroSlices = daqsum->fNmicroSlices;
105  fNDiblocks = daqsum->fNDiblocks;
106 
107  // Fill the tree
108  fTree->Fill();
109 
110 }
int fNdataBlockMissingData
of occurances of isMissingData
int fNDiblocks
of diblocks reporting in event
int fNdataBlockMissingData
of occurances of isMissingData
int fNmicroBlocks
How many microblocks?
bool fEventIncomplete
Is the event incomplete?
int fNemptyMicroSlice
How many empty micro slices?
int fNemptyDataBlock
How many empty data blocks?
int fNmicroSlices
How many microslices?
uint8_t fTriggerMask_TriggerType
Definition: RawTrigger.h:43
int fNDiblocks
of diblocks reporting in event
int fNemptyMicroSlice
How many empty micro slices?
std::string fDQLabel
ART module label for Data Quality products.
int fEventNumber
Event number (diagnostic)
bool fEventIncomplete
Is the event incomplete?
int fNemptyDataBlock
How many empty data blocks?
int fNmicroSlices
How many microslices?
int fNmicroSliceDataNotPresent
of microslices with !DataPresent
unsigned long long fTriggerTimingMarker_TimeStart
Definition: RawTrigger.h:38
int fEventNumber
Event number (diagnostic)
int fNmicroSliceDataNotPresent
of microslices with !DataPresent
uint32_t fTriggerRange_TriggerLength
Definition: RawTrigger.h:40
int fNmicroBlocks
How many microblocks?
Float_t e
Definition: plot.C:35
int fNDroppedMicroBlocks
How many dropped micro blocks?
std::string fRawDataLabel
ART module label for Raw Data products.
int fNDroppedMicroBlocks
How many dropped micro blocks?
void dq::DAQHeaderSummaryAna::beginJob ( )
overridevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 112 of file DAQHeaderSummaryAna_module.cc.

References fEventIncomplete, fEventNumber, fNdataBlockMissingData, fNDiblocks, fNDroppedMicroBlocks, fNemptyDataBlock, fNemptyMicroSlice, fNmicroBlocks, fNmicroSliceDataNotPresent, fNmicroSlices, fTree, fTriggerDuration, fTriggerStartTime, fTriggerType, art::TFileDirectory::make(), and tfs.

113 {
114  fTree = tfs->make<TTree>("DAQHeaderSummaryAna", "DAQ Header Summary");
115 
116  fTree->Branch("fTriggerStartTime", &fTriggerStartTime);
117  fTree->Branch("fTriggerDuration", &fTriggerDuration);
118  fTree->Branch("fTriggerType", &fTriggerType);
119  fTree->Branch("fEventIncomplete", &fEventIncomplete);
120  fTree->Branch("fEventNumber", &fEventNumber);
121  fTree->Branch("fNemptyDataBlock", &fNemptyDataBlock);
122  fTree->Branch("fNmicroBlocks", &fNmicroBlocks);
123  fTree->Branch("fNmicroSlices", &fNmicroSlices);
124  fTree->Branch("fNemptyMicroSlice", &fNemptyMicroSlice);
125  fTree->Branch("fNDroppedMicroBlocks", &fNDroppedMicroBlocks);
126  fTree->Branch("fNdataBlockMissingData", &fNdataBlockMissingData);
127  fTree->Branch("fNmicroSliceDataNotPresent", &fNmicroSliceDataNotPresent);
128  fTree->Branch("fNDiblocks", &fNDiblocks);
129 }
int fNdataBlockMissingData
of occurances of isMissingData
int fNDiblocks
of diblocks reporting in event
art::ServiceHandle< art::TFileService > tfs
bool fEventIncomplete
Is the event incomplete?
int fNemptyMicroSlice
How many empty micro slices?
int fNemptyDataBlock
How many empty data blocks?
int fNmicroSlices
How many microslices?
T * make(ARGS...args) const
int fEventNumber
Event number (diagnostic)
int fNmicroSliceDataNotPresent
of microslices with !DataPresent
int fNmicroBlocks
How many microblocks?
int fNDroppedMicroBlocks
How many dropped micro blocks?
detail::CachedProducts& art::EventObserverBase::cachedProducts ( )
inlineprotectedinherited

Definition at line 79 of file EventObserverBase.h.

References art::EventObserverBase::selectors_.

80  {
81  return selectors_;
82  }
detail::CachedProducts selectors_
template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::consumes ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::consumes ( InputTag const &  it)
inherited

Definition at line 146 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

147 {
148  if (!moduleContext_)
149  return ProductToken<T>::invalid();
150 
151  consumables_[BT].emplace_back(ConsumableType::Product,
152  TypeID{typeid(T)},
153  it.label(),
154  it.instance(),
155  it.process());
156  return ProductToken<T>{it};
157 }
set< int >::iterator it
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename T , art::BranchType BT>
void art::Consumer::consumesMany ( )
inherited

Definition at line 161 of file Consumer.h.

References T.

162 {
163  if (!moduleContext_)
164  return;
165 
166  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
167 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::consumesView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::consumesView ( InputTag const &  it)
inherited

Definition at line 171 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

172 {
173  if (!moduleContext_)
174  return ViewToken<T>::invalid();
175 
176  consumables_[BT].emplace_back(ConsumableType::ViewElement,
177  TypeID{typeid(T)},
178  it.label(),
179  it.instance(),
180  it.process());
181  return ViewToken<T>{it};
182 }
set< int >::iterator it
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make 
)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make,
label_t const &  engine_label 
)
inherited
CurrentProcessingContext const* art::EDAnalyzer::currentContext ( ) const
protectedinherited
void dq::DAQHeaderSummaryAna::endJob ( )
overridevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 131 of file DAQHeaderSummaryAna_module.cc.

References DEFINE_ART_MODULE().

132 {
133  // Implementation of optional member function here.
134 }
seed_t art::EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)
inherited
art::Handle<art::TriggerResults> art::EventObserverBase::getTriggerResults ( Event const &  e) const
inlineinherited

Definition at line 61 of file EventObserverBase.h.

References art::detail::CachedProducts::getOneTriggerResults(), and art::EventObserverBase::selectors_.

62  {
64  }
detail::CachedProducts selectors_
art::Handle< art::TriggerResults > getOneTriggerResults(Event const &) const
Float_t e
Definition: plot.C:35
template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::mayConsume ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::mayConsume ( InputTag const &  it)
inherited

Definition at line 189 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

190 {
191  if (!moduleContext_)
192  return ProductToken<T>::invalid();
193 
194  consumables_[BT].emplace_back(ConsumableType::Product,
195  TypeID{typeid(T)},
196  it.label(),
197  it.instance(),
198  it.process());
199  return ProductToken<T>{it};
200 }
set< int >::iterator it
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename T , art::BranchType BT>
void art::Consumer::mayConsumeMany ( )
inherited

Definition at line 204 of file Consumer.h.

References T.

205 {
206  if (!moduleContext_)
207  return;
208 
209  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
210 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::mayConsumeView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::mayConsumeView ( InputTag const &  it)
inherited

Definition at line 214 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

215 {
216  if (!moduleContext_)
217  return ViewToken<T>::invalid();
218 
219  consumables_[BT].emplace_back(ConsumableType::ViewElement,
220  TypeID{typeid(T)},
221  it.label(),
222  it.instance(),
223  it.process());
224  return ViewToken<T>{it};
225 }
set< int >::iterator it
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
bool art::EventObserverBase::modifiesEvent ( ) const
inlineinherited

Definition at line 25 of file EventObserverBase.h.

26  {
27  return false;
28  }
static cet::exempt_ptr<Consumer> art::Consumer::non_module_context ( )
staticinherited
DAQHeaderSummaryAna& dq::DAQHeaderSummaryAna::operator= ( DAQHeaderSummaryAna const &  )
delete
DAQHeaderSummaryAna& dq::DAQHeaderSummaryAna::operator= ( DAQHeaderSummaryAna &&  )
delete
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
std::string const& art::EventObserverBase::processName ( ) const
inlineinherited
void art::EventObserverBase::registerProducts ( MasterProductRegistry ,
ProductDescriptions ,
ModuleDescription const &   
)
inlineinherited

Definition at line 33 of file EventObserverBase.h.

References string.

36  {}
fhicl::ParameterSetID art::EventObserverBase::selectorConfig ( ) const
inlineinherited

Definition at line 56 of file EventObserverBase.h.

References art::EventObserverBase::selector_config_id_.

57  {
58  return selector_config_id_;
59  }
fhicl::ParameterSetID selector_config_id_
void art::Consumer::showMissingConsumes ( ) const
protectedinherited

Referenced by art::RootOutput::endJob().

void art::Consumer::validateConsumedProduct ( BranchType const  bt,
ProductInfo const &  pi 
)
protectedinherited
bool art::EventObserverBase::wantAllEvents ( ) const
inlineinherited

Definition at line 46 of file EventObserverBase.h.

References art::EventObserverBase::wantAllEvents_.

Referenced by art::RootOutput::RootOutput().

47  {
48  return wantAllEvents_;
49  }
bool art::EventObserverBase::wantEvent ( Event const &  e)
inlineinherited

Definition at line 51 of file EventObserverBase.h.

References art::EventObserverBase::selectors_, and art::detail::CachedProducts::wantEvent().

52  {
53  return selectors_.wantEvent(e);
54  }
detail::CachedProducts selectors_
Float_t e
Definition: plot.C:35
bool wantEvent(Event const &)
std::string art::EDAnalyzer::workerType ( ) const
inlineinherited

Definition at line 109 of file EDAnalyzer.h.

References art::EDAnalyzer::currentContext().

110  {
111  return "WorkerT<EDAnalyzer>";
112  }

Member Data Documentation

std::string dq::DAQHeaderSummaryAna::fDQLabel
private

ART module label for Data Quality products.

Definition at line 49 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze().

bool dq::DAQHeaderSummaryAna::fEventIncomplete
private

Is the event incomplete?

Definition at line 60 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

int dq::DAQHeaderSummaryAna::fEventNumber
private

Event number (diagnostic)

Definition at line 61 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

int dq::DAQHeaderSummaryAna::fNdataBlockMissingData
private

of occurances of isMissingData

Definition at line 67 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

int dq::DAQHeaderSummaryAna::fNDiblocks
private

of diblocks reporting in event

Definition at line 69 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

int dq::DAQHeaderSummaryAna::fNDroppedMicroBlocks
private

How many dropped micro blocks?

Definition at line 66 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

int dq::DAQHeaderSummaryAna::fNemptyDataBlock
private

How many empty data blocks?

Definition at line 62 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

int dq::DAQHeaderSummaryAna::fNemptyMicroSlice
private

How many empty micro slices?

Definition at line 65 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

int dq::DAQHeaderSummaryAna::fNmicroBlocks
private

How many microblocks?

Definition at line 63 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

int dq::DAQHeaderSummaryAna::fNmicroSliceDataNotPresent
private

of microslices with !DataPresent

Definition at line 68 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

int dq::DAQHeaderSummaryAna::fNmicroSlices
private

How many microslices?

Definition at line 64 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

std::string dq::DAQHeaderSummaryAna::fRawDataLabel
private

ART module label for Raw Data products.

Definition at line 48 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze().

TTree* dq::DAQHeaderSummaryAna::fTree
private

Definition at line 52 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

unsigned int dq::DAQHeaderSummaryAna::fTriggerDuration
private

Definition at line 56 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

unsigned long long dq::DAQHeaderSummaryAna::fTriggerStartTime
private

Definition at line 55 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

unsigned int dq::DAQHeaderSummaryAna::fTriggerType
private

Definition at line 57 of file DAQHeaderSummaryAna_module.cc.

Referenced by analyze(), and beginJob().

art::ServiceHandle<art::TFileService> dq::DAQHeaderSummaryAna::tfs
private

Definition at line 51 of file DAQHeaderSummaryAna_module.cc.

Referenced by beginJob().


The documentation for this class was generated from the following file: