All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
detsim::SimDriftedElectronClusterAna Class Reference
Inheritance diagram for detsim::SimDriftedElectronClusterAna:

Public Member Functions

 SimDriftedElectronClusterAna (fhicl::ParameterSet const &p)
 
 SimDriftedElectronClusterAna (SimDriftedElectronClusterAna const &)=delete
 
 SimDriftedElectronClusterAna (SimDriftedElectronClusterAna &&)=delete
 
SimDriftedElectronClusterAnaoperator= (SimDriftedElectronClusterAna const &)=delete
 
SimDriftedElectronClusterAnaoperator= (SimDriftedElectronClusterAna &&)=delete
 
void analyze (art::Event const &e) override
 
void beginJob () override
 

Private Attributes

art::InputTag fEDepTag
 
TNtuple * fNtuple
 

Detailed Description

Definition at line 26 of file SimDriftedElectronClusterAna_module.cc.

Constructor & Destructor Documentation

detsim::SimDriftedElectronClusterAna::SimDriftedElectronClusterAna ( fhicl::ParameterSet const &  p)
explicit

Definition at line 53 of file SimDriftedElectronClusterAna_module.cc.

54  : EDAnalyzer(p)
55  , fEDepTag{p.get<art::InputTag>("EDepModuleLabel")}
56 {}
pdgs p
Definition: selectors.fcl:22
detsim::SimDriftedElectronClusterAna::SimDriftedElectronClusterAna ( SimDriftedElectronClusterAna const &  )
delete
detsim::SimDriftedElectronClusterAna::SimDriftedElectronClusterAna ( SimDriftedElectronClusterAna &&  )
delete

Member Function Documentation

void detsim::SimDriftedElectronClusterAna::analyze ( art::Event const &  e)
override

Definition at line 58 of file SimDriftedElectronClusterAna_module.cc.

59 {
60  auto const& edep_handle = e.getValidHandle< std::vector<sim::SimDriftedElectronCluster> >(fEDepTag);
61  auto const& edep_vec(*edep_handle);
62  std::cout<< "=====================edep"<<edep_vec.size()<<std::endl;
63  for(auto const& edep : edep_vec){
64  fNtuple->Fill(e.run(),e.event(),
65  edep.NumberOfElectrons(),
66  edep.Time());
67  }
68 }
do i e
BEGIN_PROLOG could also be cout
void detsim::SimDriftedElectronClusterAna::beginJob ( )
override

Definition at line 70 of file SimDriftedElectronClusterAna_module.cc.

71 {
72  art::ServiceHandle<art::TFileService const> tfs;
73  fNtuple = tfs->make<TNtuple>("nt_is","EDep IS Calc Ntuple","run:event:ne:t");
74 }
art::ServiceHandle< art::TFileService > tfs
SimDriftedElectronClusterAna& detsim::SimDriftedElectronClusterAna::operator= ( SimDriftedElectronClusterAna const &  )
delete
SimDriftedElectronClusterAna& detsim::SimDriftedElectronClusterAna::operator= ( SimDriftedElectronClusterAna &&  )
delete

Member Data Documentation

art::InputTag detsim::SimDriftedElectronClusterAna::fEDepTag
private

Definition at line 47 of file SimDriftedElectronClusterAna_module.cc.

TNtuple* detsim::SimDriftedElectronClusterAna::fNtuple
private

Definition at line 49 of file SimDriftedElectronClusterAna_module.cc.


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