-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelParamAnalyzerBase.hh
57 lines (38 loc) · 1.47 KB
/
ModelParamAnalyzerBase.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef artg4tk_MPAnalyzerBase_H
#define artg4tk_MPAnalyzerBase_H 1
#include "art/Framework/Core/EDAnalyzer.h"
// --> --> #include "art/Framework/Principal/Event.h" // no need so far...
#include "art/Framework/Principal/Run.h"
#include "art/Framework/Services/Registry/ServiceHandle.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
// Run/Eevent data products
#include "artg4tk/DataProducts/G4DetectorHits/ArtG4tkParticle.hh" // Event data product
#include "artg4tk/DataProducts/G4ModelConfig/ArtG4tkModelConfig.hh" // Run data product
// Root-specific headers
#include "TFile.h"
#include "TDirectory.h"
#include "TObjArray.h"
// --> --> #include "TObjString.h" // will be included with the source code
namespace artg4tk {
class ModelParamAnalyzerBase : public art::EDAnalyzer {
public:
explicit ModelParamAnalyzerBase( const fhicl::ParameterSet& );
virtual ~ModelParamAnalyzerBase();
virtual void beginRun( const art::Run& ) override;
protected:
void initXSecOnTarget( const std::string&, const ArtG4tkParticle& );
// These two data members below can go into a base class for
// this group of analysis modules
//
std::string fProdLabel;
TObjArray* fModelConfig;
// NOTE: Will also need XSec on TARGET !!!!!
//
double fXSecOnTarget;
bool fXSecInit;
// diagnostics output
//
mf::LogInfo fLogInfo;
};
}
#endif