CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ZdcTBAnalyzer Class Reference
Inheritance diagram for ZdcTBAnalyzer:
edm::EDAnalyzer

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void endJob ()
 
 ZdcTBAnalyzer (const edm::ParameterSet &)
 
 ~ZdcTBAnalyzer ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

bool beamDetectorsADCInfo
 
bool beamDetectorsTDCInfo
 
std::string inputFileName
 
std::string outputFileName
 
bool triggerInfo
 
bool wireChambersInfo
 
ZdcTBAnalysis zdcTBAnalysis
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Definition at line 22 of file ZdcTBAnalyzer.cc.

Constructor & Destructor Documentation

ZdcTBAnalyzer::ZdcTBAnalyzer ( const edm::ParameterSet iConfig)
explicit

Definition at line 40 of file ZdcTBAnalyzer.cc.

References beamDetectorsADCInfo, beamDetectorsTDCInfo, gather_cfg::cout, edm::ParameterSet::getParameter(), outputFileName, ZdcTBAnalysis::setup(), triggerInfo, wireChambersInfo, and zdcTBAnalysis.

41 {
42  std::cout<<"**************** ZdcTBAnalizer Start**************************"<<std::endl;
43  edm::ParameterSet para = iConfig.getParameter<edm::ParameterSet>("ZdcTBAnalyzer");
44 
45  beamDetectorsADCInfo = para.getParameter<bool>("beamDetectorsADCInfoFlag");
46  beamDetectorsTDCInfo = para.getParameter<bool>("beamDetectorsTDCInfoFlag");
47  wireChambersInfo = para.getParameter<bool>("wireChambersInfoFlag");
48  triggerInfo = para.getParameter<bool>("triggerInfoFlag");
49  outputFileName = para.getParameter<std::string>("ntupleOutputFileName");
50  zdcTBAnalysis.setup(outputFileName);
51 }
T getParameter(std::string const &) const
bool beamDetectorsTDCInfo
std::string outputFileName
void setup(const std::string &histoFileName)
Definition: ZdcTBAnalysis.cc:8
bool beamDetectorsADCInfo
ZdcTBAnalysis zdcTBAnalysis
tuple cout
Definition: gather_cfg.py:41
ZdcTBAnalyzer::~ZdcTBAnalyzer ( )

Definition at line 53 of file ZdcTBAnalyzer.cc.

53 {;}

Member Function Documentation

void ZdcTBAnalyzer::analyze ( const edm::Event e,
const edm::EventSetup  
)
virtual

Implements edm::EDAnalyzer.

Definition at line 55 of file ZdcTBAnalyzer.cc.

References ZdcTBAnalysis::analyze(), beamDetectorsADCInfo, beamDetectorsTDCInfo, ZdcTBAnalysis::fillTree(), edm::Event::getByType(), triggerInfo, wireChambersInfo, and zdcTBAnalysis.

55  {
56  using namespace edm;
62 
63  e.getByType(zdcRecHits);
64  if(triggerInfo){
65  e.getByType(triggers);
66  zdcTBAnalysis.analyze(*triggers);
67  }
69  e.getByType(times); // e.getByLabel("tbunpacker2",times);
70  zdcTBAnalysis.analyze(*times);
71  }
73  e.getByType(bc);
75  }
76  if(wireChambersInfo){
77  e.getByType(chpos);
78  zdcTBAnalysis.analyze(*chpos);
79  }
80  zdcTBAnalysis.analyze(*zdcRecHits);
82 }
bool beamDetectorsTDCInfo
bool getByType(Handle< PROD > &result) const
Definition: Event.h:403
void analyze(const ZDCRecHitCollection &hf)
bool beamDetectorsADCInfo
ZdcTBAnalysis zdcTBAnalysis
void ZdcTBAnalyzer::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 84 of file ZdcTBAnalyzer.cc.

References gather_cfg::cout, ZdcTBAnalysis::done(), and zdcTBAnalysis.

84  {
86 std::cout<<"****************ZdcTBAnalizer End**************************"<<std::endl;
87 }
ZdcTBAnalysis zdcTBAnalysis
tuple cout
Definition: gather_cfg.py:41

Member Data Documentation

bool ZdcTBAnalyzer::beamDetectorsADCInfo
private

Definition at line 33 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

bool ZdcTBAnalyzer::beamDetectorsTDCInfo
private

Definition at line 34 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

std::string ZdcTBAnalyzer::inputFileName
private

Definition at line 32 of file ZdcTBAnalyzer.cc.

std::string ZdcTBAnalyzer::outputFileName
private

Definition at line 31 of file ZdcTBAnalyzer.cc.

Referenced by ZdcTBAnalyzer().

bool ZdcTBAnalyzer::triggerInfo
private

Definition at line 36 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

bool ZdcTBAnalyzer::wireChambersInfo
private

Definition at line 35 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), and ZdcTBAnalyzer().

ZdcTBAnalysis ZdcTBAnalyzer::zdcTBAnalysis
private

Definition at line 37 of file ZdcTBAnalyzer.cc.

Referenced by analyze(), endJob(), and ZdcTBAnalyzer().