Selector for generic processing with stdlib collections.
#define ProofStdVect_cxx
ProofStdVect::ProofStdVect()
{
fTree = nullptr;
fFile = nullptr;
fRandom = nullptr;
}
ProofStdVect::~ProofStdVect()
{
}
void ProofStdVect::Begin(
TTree * )
{
if (fInput && fInput->FindObject("ProofStdVect_Create")) {
}
else if (
option.Contains(
"create")) {
}
}
void ProofStdVect::SlaveBegin(
TTree * )
{
if (fInput && fInput->FindObject("ProofStdVect_Create")) {
}
else if (
option.Contains(
"create")) {
}
if (fFile && fFile->IsZombie())
SafeDelete(fFile);
if (!fFile) {
Info(
"SlaveBegin",
"could not create '%s': instance is invalid!",
fProofFile->GetName());
return;
}
fTree =
new TTree(
"stdvec",
"Tree with std vector");
fTree->Branch(
"Vb",&
fVb);
fTree->Branch(
"Vfx",&
fVfx);
fTree->Branch(
"Vfy",&
fVfy);
fTree->SetDirectory(fFile);
fTree->AutoSave();
} else {
fHgood =
new TH1F(
"Hgood",
"Good hits", 100., -2.5, 2.5);
fHbad =
new TH1F(
"Hbad",
"Bad hits", 100., -6., 6.);
}
}
{
if (!fTree)
return kTRUE;
vfy.push_back(
float(
ym));
}
}
fTree->Fill();
std::vector<std::vector<bool> >::iterator
ivb;
(*ivb).clear();
}
std::vector<std::vector<float> >::iterator
ivf;
(*ivf).clear();
}
(*ivf).clear();
}
} else {
std::vector<bool> &
vb =
fVbr->at(i);
else
}
}
}
}
void ProofStdVect::SlaveTerminate()
{
if (fFile) {
if (!fTree) {
Error(
"SlaveTerminate",
"'tree' is undefined!");
return;
}
if (fTree->GetEntries() > 0) {
fFile->cd();
fTree->Write();
} else {
}
fTree->SetDirectory(nullptr);
fFile->Close();
if (cleanup) {
TUrl uf(*(fFile->GetEndpointUrl()));
}
}
}
void ProofStdVect::Terminate()
{
}
void ProofStdVect::Init(
TTree *tree)
{
if (!tree) return;
fChain->SetMakeClass(1);
fChain->SetBranchAddress(
"Vb", &
fVbr, &
b_Vb);
}
{
Info(
"Notify",
"processing file: %s",fChain->GetCurrentFile()->GetName());
}
Selector for generic processing with stdlib collections.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t np
R__EXTERN TSystem * gSystem
const_iterator begin() const
const_iterator end() const
TDirectory::TContext keeps track and restore the current directory.
1-D histogram with a float per channel (see TH1 documentation)
The most important graphics class in the ROOT system.
Class to steer the merging of files produced on the workers.
Random number generator class based on M.
virtual int Unlink(const char *name)
Unlink, i.e.
A TTree represents a columnar dataset.
This class represents a WWW compatible URL.
Double_t Erfc(Double_t x)
Computes the complementary error function erfc(x).
Double_t Sqrt(Double_t x)
Returns the square root of x.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.