5#include "CalibData/Dedx/DedxSimData.h"
6#include "CalibDataSvc/IInstrumentName.h"
7#include "GaudiKernel/MsgStream.h"
15#include "GaudiKernel/DataObject.h"
16#include "GaudiKernel/GenericAddress.h"
17#include "GaudiKernel/IAddressCreator.h"
18#include "GaudiKernel/IConversionSvc.h"
19#include "GaudiKernel/IDataProviderSvc.h"
20#include "GaudiKernel/IOpaqueAddress.h"
22#include "CalibDataSvc/ICalibMetaCnvSvc.h"
23#include "CalibDataSvc/ICalibRootSvc.h"
29#include "CalibData/CalibModel.h"
42 DataObject*& refpObject ) {
44 MsgStream log(
msgSvc(),
"RootDedxSimDataCnv" );
45 log << MSG::DEBUG <<
"SetProperty" << endmsg;
49 TH1F* h1 =
new TH1F();
52 if ( !sc ) { log << MSG::ERROR <<
"unable to open files" << endmsg; }
54 std::vector<TH1F> hist;
55 std::vector<double> hRange;
58 TTree* tree = (TTree*)
m_inFile->Get(
"TH1F_Col" );
59 tree->SetBranchAddress(
"TH1F_Col", &h1 );
60 int entries = tree->GetEntries();
61 for ( cnt = 0; cnt < entries; cnt++ )
63 tree->GetEntry( cnt );
65 TH1F* h2 =
new TH1F();
66 h2 = (TH1F*)h1->Clone();
67 hist.push_back( *h2 );
71 double betagamma[5000];
76 if (
bin->FindBranch(
"version" ) )
bin->SetBranchAddress(
"version", &ver );
78 if (
bin->FindBranch(
"thetaNum" ) )
bin->SetBranchAddress(
"thetaNum", &thetaNum );
80 bin->SetBranchAddress(
"totalNum", &totalNum );
81 bin->SetBranchAddress(
"betagamma", betagamma );
82 bin->SetBranchAddress(
"betagammaBounds", &bgNum );
86 for ( cnt = 0; cnt < bgNum; cnt++ ) { hRange.push_back( betagamma[cnt] ); }
94 refpObject = tmpObject;
96 return StatusCode::SUCCESS;
101 MsgStream log(
msgSvc(),
"RootDedxSimDataCnv" );
105 if ( !sc ) { log << MSG::ERROR <<
"unable to open files" << endmsg; }
*******INTEGER m_nBinMax INTEGER m_NdiMax !No of bins in histogram for cell exploration division $ !Last vertex $ !Last active cell $ !Last cell in buffer $ !No of sampling when dividing cell $ !No of function total $ !Flag for random ceel for $ !Flag for type of for WtMax $ !Flag which decides whether vertices are included in the sampling $ entire domain is hyp !Maximum effective eevents per bin
void setThetaNo(const int No)
void setHist(const vector< TH1F > *hist)
void setHistNo(const int No)
void setRangeNo(const int No)
void setRange(const vector< double > *hRange)
void setVersion(const int ver)
StatusCode openRead(const std::string &fname)
RootCalBaseCnv(ISvcLocator *svc, const CLID &clid)
virtual StatusCode openWrite(const std::string &fname)
virtual StatusCode i_createObj(const std::string &fname, DataObject *&refpObject)
static const CLID & classID()
virtual StatusCode createRoot(const std::string &fname, CalibData::CalibBase1 *pTDSObj)
const CLID & objType() const
RootDedxSimDataCnv(ISvcLocator *svc)