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

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 CalHitAna (fhicl::ParameterSet const &pset)
 
virtual ~CalHitAna ()
 
void analyze (art::Event const &evt)
 
void beginJob ()
 
void reconfigure (const fhicl::ParameterSet &pset)
 
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 Member Functions

void FillTruthInfo (const art::Ptr< rb::CellHit > &hit)
 

Private Attributes

TTree * fHitTree
 Tree that gets filled for every hit. More...
 
TTree * fNonNoiseHitTree
 Tree that gets filled for every hit. More...
 
TTree * fEvtTree
 Tree that gets filled for every event. More...
 
float fPe
 PE of the CellHit. More...
 
int fAdc
 ADC0 of the CellHit. More...
 
int fTdc
 TDC0 of the CellHit. More...
 
float fTns
 TNS of the CellHit. More...
 
float fFLSTime
 Energy weighted time of energy deposit in cell. More...
 
float fReadDist
 Distance to readout APD from energy deposit (with pigtail) More...
 
float fFLSEnergy
 FLS Energy in this hit. More...
 
int fIsNoise
 Is this hit a noise? More...
 
int fIsGoodTiming
 Good timing for this hit? More...
 
float fNFLSHits
 Number of FLSHits in this hit. More...
 
unsigned int fPlane
 Plane of the CellHit. More...
 
unsigned int fCell
 Cell of the CellHit. More...
 
int fNoise
 Number of noise hits in event. More...
 
int fPhysics
 Number of physics hits in event. More...
 
int fAllHits
 Number of all hits in event. More...
 
float fPePerTrueE
 PE per True Energy in event. More...
 
float fAdcPerTrueE
 ADC per True Energy in event. More...
 
std::string fCellHitLabel
 Module label name from where to grab CellHits. More...
 
std::string fSlicerLabel
 Module label for slices. More...
 

Detailed Description

Definition at line 29 of file CalHitAna_module.cc.

Member Typedef Documentation

Definition at line 39 of file EDAnalyzer.h.

Definition at line 38 of file EDAnalyzer.h.

Constructor & Destructor Documentation

calhit::CalHitAna::CalHitAna ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 79 of file CalHitAna_module.cc.

References reconfigure().

80  : EDAnalyzer(pset)
81  {
82  this->reconfigure(pset);
83  }
void reconfigure(const fhicl::ParameterSet &pset)
EDAnalyzer(Table< Config > const &config)
Definition: EDAnalyzer.h:100
calhit::CalHitAna::~CalHitAna ( )
virtual

Definition at line 90 of file CalHitAna_module.cc.

90 { }

Member Function Documentation

void calhit::CalHitAna::analyze ( art::Event const &  evt)
virtual

Implements art::EDAnalyzer.

Definition at line 155 of file CalHitAna_module.cc.

References rawdata::RawDigit::ADC(), rb::CellHit::Cell(), fAdc, fAdcPerTrueE, fAllHits, fCell, fCellHitLabel, fEvtTree, fFLSEnergy, fFLSTime, fHitTree, FillTruthInfo(), fIsGoodTiming, fIsNoise, fNFLSHits, fNoise, fNonNoiseHitTree, fPe, fPePerTrueE, fPhysics, fPlane, fReadDist, fSlicerLabel, fTdc, fTns, geom(), art::DataViewImpl::getByLabel(), rb::CellHit::GoodTiming(), cheat::BackTracker::HaveTruthInfo(), cheat::BackTracker::HitToFLSHit(), MECModelEnuComparisons::i, makeTrainCVSamples::int, cheat::BackTracker::IsNoise(), calib::j, rb::CellHit::PE(), rb::CellHit::Plane(), rawdata::RawDigit::TDC(), and rb::CellHit::TNS().

155  {
156 
158 
160  evt.getByLabel(fCellHitLabel, cHitCol);
161 
163  evt.getByLabel(fSlicerLabel, sliceHandle);
164 
165  // Set default values
166 
167  fPlane = -5;
168  fCell = -5;
169  fPe = -5;
170  fTdc = -5;
171  fTns = -5;
172  fAdc = -5;
173  fNoise = -5;
174  fPePerTrueE = -5;
175 
177 
178  // Fill the hit tree
179  for(int i = 0; i < (int)cHitCol->size(); ++i){
180  art::Ptr< rb::CellHit> hit(cHitCol, i);
181  fPlane = hit->Plane();
182  fCell = hit->Cell();
183  fPe = hit->PE();
184  fAdc = hit->ADC();
185  fTdc = hit->TDC();
186  fTns = hit->TNS();
187  fIsGoodTiming = hit->GoodTiming();
188 
189  if(bt->HaveTruthInfo())
191  else{
192  fFLSEnergy = -5;
193  fIsNoise = -5;
194  fFLSTime = -5;
195  fReadDist = -5;
196  fNFLSHits = -5;
197  }
198  fHitTree->Fill();
199  }
200 
201  // Fill tree for non-noise slices
202  int nsli = sliceHandle->size();
203  for(int isli = 0; isli < nsli; isli++){
204  if(sliceHandle->at(isli).IsNoise() )
205  continue;
206 
207  // Fill the non-noise hit tree
208  int nhits = sliceHandle->at(isli).NCell();
209  for(int ic = 0; ic < nhits; ++ic){
210  art::Ptr< rb::CellHit> hit = sliceHandle->at(isli).Cell(ic);
211  fPlane = hit->Plane();
212  fCell = hit->Cell();
213  fPe = hit->PE();
214  fAdc = hit->ADC();
215  fTdc = hit->TDC();
216  fTns = hit->TNS();
217  fIsGoodTiming = hit->GoodTiming();
218 
219  if(bt->HaveTruthInfo())
220  FillTruthInfo(hit);
221  else{
222  fFLSEnergy = -5;
223  fIsNoise = -5;
224  fFLSTime = -5;
225  fReadDist = -5;
226  fNFLSHits = -5;
227  }
228  fNonNoiseHitTree->Fill();
229  }// end loop over slice hits
230 
231  }// end loop over slices
232  // If truth information is available, fill event tree
233  if( bt->HaveTruthInfo()){
234  fNoise = 0;
235  fPePerTrueE = 0;
236  float totPe = 0;
237  float totAdc= 0;
238  float totE = 0;
239  fAllHits = cHitCol->size();
240 
241  for(int i = 0; i < fAllHits; ++i){
242  art::Ptr< rb::CellHit> hit(cHitCol, i);
243 
244  if( bt->IsNoise(hit) ){
245  fNoise += 1;
246  continue;
247  }
248  else
249  fPhysics += 1;
250 
251  const std::vector< sim::FLSHit > flsHits = bt->HitToFLSHit(hit);
252  for(int j = 0; j < (int)flsHits.size(); j++){
253  totE += flsHits[j].GetEdep();
254  }//End loop over flshits in hit
255 
256  totPe += hit->PE();
257  totAdc+= hit->ADC();
258  }// End loop over hits
259 
260  if( totE != 0){
261  fPePerTrueE = totPe/totE;
262  fAdcPerTrueE = totAdc/totE;
263  }
264  fEvtTree->Fill();
265  }// EndIf HaveTruthInfo
266 
267  }// End of analyser
float TNS() const
Definition: CellHit.h:46
unsigned int fPlane
Plane of the CellHit.
float fPe
PE of the CellHit.
int fIsNoise
Is this hit a noise?
int32_t TDC() const
The time of the last baseline sample.
Definition: RawDigit.h:94
int fTdc
TDC0 of the CellHit.
unsigned short Plane() const
Definition: CellHit.h:39
unsigned int fCell
Cell of the CellHit.
TTree * fEvtTree
Tree that gets filled for every event.
float fReadDist
Distance to readout APD from energy deposit (with pigtail)
int fIsGoodTiming
Good timing for this hit?
std::string fCellHitLabel
Module label name from where to grab CellHits.
int fAdc
ADC0 of the CellHit.
bool IsNoise(const art::Ptr< rb::CellHit > &hit) const
Is this hit not associated with any particles?
unsigned short Cell() const
Definition: CellHit.h:40
float fFLSEnergy
FLS Energy in this hit.
TTree * fHitTree
Tree that gets filled for every hit.
std::vector< sim::FLSHit > HitToFLSHit(const rb::CellHit &hit) const
All the FLSHits that contributed to this hit, sorted from most to least light.
int evt
float PE() const
Definition: CellHit.h:42
int fNoise
Number of noise hits in event.
const double j
Definition: BetheBloch.cxx:29
float fTns
TNS of the CellHit.
float fFLSTime
Energy weighted time of energy deposit in cell.
float fPePerTrueE
PE per True Energy in event.
std::string fSlicerLabel
Module label for slices.
int16_t ADC(uint32_t i) const
Definition: RawDigit.cxx:58
Definition: structs.h:12
void geom(int which=0)
Definition: geom.C:163
bool HaveTruthInfo() const
Is this a file with truth info in? (Is BackTracker going to be any use to you?)
Definition: BackTracker.h:133
void FillTruthInfo(const art::Ptr< rb::CellHit > &hit)
float fNFLSHits
Number of FLSHits in this hit.
int fPhysics
Number of physics hits in event.
TTree * fNonNoiseHitTree
Tree that gets filled for every hit.
float fAdcPerTrueE
ADC per True Energy in event.
bool GoodTiming() const
Definition: CellHit.h:48
int fAllHits
Number of all hits in event.
void calhit::CalHitAna::beginJob ( )
virtual

Reimplemented from art::EDAnalyzer.

Definition at line 107 of file CalHitAna_module.cc.

References fAdc, fAdcPerTrueE, fAllHits, fCell, fEvtTree, fFLSEnergy, fFLSTime, fHitTree, fIsGoodTiming, fIsNoise, fNFLSHits, fNoise, fNonNoiseHitTree, fPe, fPePerTrueE, fPhysics, fPlane, fReadDist, fTdc, fTns, and art::TFileDirectory::make().

107  {
108 
110 
111  fHitTree = tfs->make<TTree>("fHitTree","fHitTree");
112 
113  fHitTree->Branch("Pe", &fPe);
114  fHitTree->Branch("Adc", &fAdc);
115  fHitTree->Branch("Tdc", &fTdc);
116  fHitTree->Branch("Tns" , &fTns);
117  fHitTree->Branch("FlsTime", &fFLSTime);
118  fHitTree->Branch("ReadDist", &fReadDist);
119  fHitTree->Branch("Plane", &fPlane);
120  fHitTree->Branch("Cell", &fCell);
121  fHitTree->Branch("NFlsHits", &fNFLSHits);
122  fHitTree->Branch("FlsEnergy", &fFLSEnergy);
123  fHitTree->Branch("IsNoise", &fIsNoise);
124  fHitTree->Branch("IsGoodTiming", &fIsGoodTiming);
125 
126  fNonNoiseHitTree = tfs->make<TTree>("fNonNoiseHitTree","fNonNoiseHitTree");
127 
128  fNonNoiseHitTree->Branch("Pe", &fPe);
129  fNonNoiseHitTree->Branch("Adc", &fAdc);
130  fNonNoiseHitTree->Branch("Tdc", &fTdc);
131  fNonNoiseHitTree->Branch("Tns" , &fTns);
132  fNonNoiseHitTree->Branch("FlsTime", &fFLSTime);
133  fNonNoiseHitTree->Branch("ReadDist", &fReadDist);
134  fNonNoiseHitTree->Branch("Plane", &fPlane);
135  fNonNoiseHitTree->Branch("Cell", &fCell);
136  fNonNoiseHitTree->Branch("NFlsHits", &fNFLSHits);
137  fNonNoiseHitTree->Branch("FlsEnergy", &fFLSEnergy);
138  fNonNoiseHitTree->Branch("IsNoise", &fIsNoise);
139  fNonNoiseHitTree->Branch("IsGoodTiming", &fIsGoodTiming);
140 
141  fEvtTree = tfs->make<TTree>("fEvtTree","fEvtTree");
142 
143  fEvtTree->Branch("Noise", &fNoise);
144  fEvtTree->Branch("PePerTrueE", &fPePerTrueE);
145  fEvtTree->Branch("AdcPerTrueE",&fAdcPerTrueE);
146  fEvtTree->Branch("Physics", &fPhysics);
147  fEvtTree->Branch("AllHits", &fAllHits);
148  }
unsigned int fPlane
Plane of the CellHit.
float fPe
PE of the CellHit.
int fIsNoise
Is this hit a noise?
int fTdc
TDC0 of the CellHit.
unsigned int fCell
Cell of the CellHit.
TTree * fEvtTree
Tree that gets filled for every event.
float fReadDist
Distance to readout APD from energy deposit (with pigtail)
int fIsGoodTiming
Good timing for this hit?
int fAdc
ADC0 of the CellHit.
float fFLSEnergy
FLS Energy in this hit.
TTree * fHitTree
Tree that gets filled for every hit.
int fNoise
Number of noise hits in event.
float fTns
TNS of the CellHit.
float fFLSTime
Energy weighted time of energy deposit in cell.
float fPePerTrueE
PE per True Energy in event.
T * make(ARGS...args) const
float fNFLSHits
Number of FLSHits in this hit.
int fPhysics
Number of physics hits in event.
TTree * fNonNoiseHitTree
Tree that gets filled for every hit.
float fAdcPerTrueE
ADC per True Energy in event.
int fAllHits
Number of all hits in event.
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 calhit::CalHitAna::FillTruthInfo ( const art::Ptr< rb::CellHit > &  hit)
private

Definition at line 271 of file CalHitAna_module.cc.

References DEFINE_ART_MODULE(), fFLSEnergy, fFLSTime, fIsNoise, fNFLSHits, fReadDist, calib::GetXYZD(), cheat::BackTracker::HitToFLSHit(), cheat::BackTracker::IsNoise(), geo::kX, geo::kY, rb::CellHit::OfflineChan(), rb::CellHit::View(), and w.

Referenced by analyze().

272  {
274  const std::vector< sim::FLSHit> flsHits = bt->HitToFLSHit(hit);
275  fNFLSHits = flsHits.size();
276  fIsNoise = bt->IsNoise(hit);
277  fFLSEnergy= 0;
278  fFLSTime = 0;
279 
280  // calculate the total FLS energy, energy weighted time
281  // and distance from readout.
282  double w = 0.0;
283  for( int ifls = 0; ifls < fNFLSHits; ifls++){
284  fFLSEnergy += flsHits[ifls].GetEdepBirks();
285  fFLSTime += flsHits[ifls].GetEdepBirks()*
286  (flsHits[0].GetEntryT() +flsHits[0].GetExitT())/2.0;
287 
288  if (hit->View() == geo::kX)
289  w = flsHits[ifls].GetEdepBirks()*
290  (flsHits[0].GetEntryY() + flsHits[0].GetExitY())/2.0;
291 
292  if (hit->View() == geo::kY)
293  w = flsHits[ifls].GetEdepBirks()*
294  (flsHits[0].GetEntryX() + flsHits[0].GetExitX())/2.0;
295 
296  }// end loop over FLS Hits
297 
298  if(fFLSEnergy > 0){
300  double xyzd[4];
301  w = w/fFLSEnergy;
302  calib::GetXYZD(hit->OfflineChan(),w,xyzd);
303  fReadDist = xyzd[3];
304 
305  }
306 
307  }
int fIsNoise
Is this hit a noise?
geo::View_t View() const
Definition: CellHit.h:41
Vertical planes which measure X.
Definition: PlaneGeo.h:28
float fReadDist
Distance to readout APD from energy deposit (with pigtail)
geo::OfflineChan OfflineChan() const
Definition: CellHit.h:49
Horizontal planes which measure Y.
Definition: PlaneGeo.h:29
bool IsNoise(const art::Ptr< rb::CellHit > &hit) const
Is this hit not associated with any particles?
float fFLSEnergy
FLS Energy in this hit.
std::vector< sim::FLSHit > HitToFLSHit(const rb::CellHit &hit) const
All the FLSHits that contributed to this hit, sorted from most to least light.
void GetXYZD(geo::OfflineChan chan, double w, double *xyzd)
Return position in world coordninates and distance to the readout.
Definition: CalibUtil.cxx:294
float fFLSTime
Energy weighted time of energy deposit in cell.
float fNFLSHits
Number of FLSHits in this hit.
Float_t w
Definition: plot.C:20
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
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
std::string const& art::EventObserverBase::processName ( ) const
inlineinherited
void calhit::CalHitAna::reconfigure ( const fhicl::ParameterSet pset)

Definition at line 97 of file CalHitAna_module.cc.

References fCellHitLabel, fSlicerLabel, fhicl::ParameterSet::get(), and string.

Referenced by CalHitAna().

98  {
99  fCellHitLabel = pset.get<std::string>("CellHitLabel");
100  fSlicerLabel = pset.get<std::string>("SlicerLabel");
101  }
std::string fCellHitLabel
Module label name from where to grab CellHits.
T get(std::string const &key) const
Definition: ParameterSet.h:231
std::string fSlicerLabel
Module label for slices.
enum BeamMode string
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

int calhit::CalHitAna::fAdc
private

ADC0 of the CellHit.

Definition at line 48 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

float calhit::CalHitAna::fAdcPerTrueE
private

ADC per True Energy in event.

Definition at line 66 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

int calhit::CalHitAna::fAllHits
private

Number of all hits in event.

Definition at line 64 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

unsigned int calhit::CalHitAna::fCell
private

Cell of the CellHit.

Definition at line 58 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

std::string calhit::CalHitAna::fCellHitLabel
private

Module label name from where to grab CellHits.

Definition at line 68 of file CalHitAna_module.cc.

Referenced by analyze(), and reconfigure().

TTree* calhit::CalHitAna::fEvtTree
private

Tree that gets filled for every event.

Definition at line 45 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

float calhit::CalHitAna::fFLSEnergy
private

FLS Energy in this hit.

Definition at line 53 of file CalHitAna_module.cc.

Referenced by analyze(), beginJob(), and FillTruthInfo().

float calhit::CalHitAna::fFLSTime
private

Energy weighted time of energy deposit in cell.

Definition at line 51 of file CalHitAna_module.cc.

Referenced by analyze(), beginJob(), and FillTruthInfo().

TTree* calhit::CalHitAna::fHitTree
private

Tree that gets filled for every hit.

Definition at line 43 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

int calhit::CalHitAna::fIsGoodTiming
private

Good timing for this hit?

Definition at line 55 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

int calhit::CalHitAna::fIsNoise
private

Is this hit a noise?

Definition at line 54 of file CalHitAna_module.cc.

Referenced by analyze(), beginJob(), and FillTruthInfo().

float calhit::CalHitAna::fNFLSHits
private

Number of FLSHits in this hit.

Definition at line 56 of file CalHitAna_module.cc.

Referenced by analyze(), beginJob(), and FillTruthInfo().

int calhit::CalHitAna::fNoise
private

Number of noise hits in event.

Definition at line 62 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

TTree* calhit::CalHitAna::fNonNoiseHitTree
private

Tree that gets filled for every hit.

Definition at line 44 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

float calhit::CalHitAna::fPe
private

PE of the CellHit.

Definition at line 47 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

float calhit::CalHitAna::fPePerTrueE
private

PE per True Energy in event.

Definition at line 65 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

int calhit::CalHitAna::fPhysics
private

Number of physics hits in event.

Definition at line 63 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

unsigned int calhit::CalHitAna::fPlane
private

Plane of the CellHit.

Definition at line 57 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

float calhit::CalHitAna::fReadDist
private

Distance to readout APD from energy deposit (with pigtail)

Definition at line 52 of file CalHitAna_module.cc.

Referenced by analyze(), beginJob(), and FillTruthInfo().

std::string calhit::CalHitAna::fSlicerLabel
private

Module label for slices.

Definition at line 69 of file CalHitAna_module.cc.

Referenced by analyze(), and reconfigure().

int calhit::CalHitAna::fTdc
private

TDC0 of the CellHit.

Definition at line 49 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().

float calhit::CalHitAna::fTns
private

TNS of the CellHit.

Definition at line 50 of file CalHitAna_module.cc.

Referenced by analyze(), and beginJob().


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