#include "TPartSieveHists.h" |
TPartSieveHists() | |
TPartSieveHists(TPartSieve* Sieve, UInt_t control = 0x01) | |
virtual | ~TPartSieveHists() |
void | TObject::AbstractMethod(const char* method) const |
virtual void | TObject::AppendPad(Option_t* option = "") |
virtual void | TObject::Browse(TBrowser* b) |
static TClass* | Class() |
virtual const char* | TObject::ClassName() const |
virtual void | TObject::Clear(Option_t* = "") |
void | ClearHists() |
virtual TObject* | TObject::Clone(const char* newname = "") const |
virtual Int_t | TObject::Compare(const TObject* obj) const |
virtual void | TObject::Copy(TObject& object) const |
virtual void | TObject::Delete(Option_t* option = "") |
void | DeleteHists() |
virtual Int_t | TObject::DistancetoPrimitive(Int_t px, Int_t py) |
virtual void | TObject::Draw(Option_t* option = "") |
virtual void | TObject::DrawClass() const |
virtual TObject* | TObject::DrawClone(Option_t* option = "") const |
virtual void | TObject::Dump() const |
virtual void | TObject::Error(const char* method, const char* msgfmt) const |
virtual void | TObject::Execute(const char* method, const char* params, Int_t* error = 0) |
virtual void | TObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0) |
virtual void | TObject::ExecuteEvent(Int_t event, Int_t px, Int_t py) |
virtual void | TObject::Fatal(const char* method, const char* msgfmt) const |
Int_t | Fill() |
virtual TObject* | TObject::FindObject(const char* name) const |
virtual TObject* | TObject::FindObject(const TObject* obj) const |
Float_t | GetBetaP(Float_t p, Int_t ipart) |
virtual Option_t* | TObject::GetDrawOption() const |
static Long_t | TObject::GetDtorOnly() |
virtual const char* | TObject::GetIconName() const |
virtual const char* | TObject::GetName() const |
virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
static Bool_t | TObject::GetObjectStat() |
virtual Option_t* | TObject::GetOption() const |
virtual const char* | TObject::GetTitle() const |
virtual UInt_t | TObject::GetUniqueID() const |
virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
virtual ULong_t | TObject::Hash() const |
virtual void | TObject::Info(const char* method, const char* msgfmt) const |
virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
void | InitHists() |
void | Initialize() |
virtual void | TObject::Inspect() const |
void | TObject::InvertBit(UInt_t f) |
virtual TClass* | IsA() const |
virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
virtual Bool_t | TObject::IsFolder() const |
Bool_t | TObject::IsOnHeap() const |
virtual Bool_t | TObject::IsSortable() const |
Bool_t | TObject::IsZombie() const |
virtual void | TObject::ls(Option_t* option = "") const |
void | TObject::MayNotUse(const char* method) const |
virtual Bool_t | TObject::Notify() |
static void | TObject::operator delete(void* ptr) |
static void | TObject::operator delete(void* ptr, void* vp) |
static void | TObject::operator delete[](void* ptr) |
static void | TObject::operator delete[](void* ptr, void* vp) |
void* | TObject::operator new(size_t sz) |
void* | TObject::operator new(size_t sz, void* vp) |
void* | TObject::operator new[](size_t sz) |
void* | TObject::operator new[](size_t sz, void* vp) |
TObject& | TObject::operator=(const TObject& rhs) |
virtual void | TObject::Paint(Option_t* option = "") |
virtual void | TObject::Pop() |
virtual void | TObject::Print(Option_t* option = "") const |
virtual Int_t | TObject::Read(const char* name) |
virtual void | TObject::RecursiveRemove(TObject* obj) |
void | TObject::ResetBit(UInt_t f) |
virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") const |
virtual void | TObject::SavePrimitive(ostream& out, Option_t* option = "") |
void | TObject::SetBit(UInt_t f) |
void | TObject::SetBit(UInt_t f, Bool_t set) |
virtual void | TObject::SetDrawOption(Option_t* option = "") |
static void | TObject::SetDtorOnly(void* obj) |
static void | TObject::SetObjectStat(Bool_t stat) |
virtual void | TObject::SetUniqueID(UInt_t uid) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
Bool_t | TObject::TestBit(UInt_t f) const |
Int_t | TObject::TestBits(UInt_t f) const |
virtual void | TObject::UseCurrentStyle() |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
void | Write() |
virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
void | TObject::MakeZombie() |
enum TObject::EStatusBits { | kCanDelete | |
kMustCleanup | ||
kObjInCanvas | ||
kIsReferenced | ||
kHasUUID | ||
kCannotPick | ||
kNoContextMenu | ||
kInvalidObject | ||
}; | ||
enum TObject::[unnamed] { | kIsOnHeap | |
kNotDeleted | ||
kZombie | ||
kBitMask | ||
kSingleKey | ||
kOverwrite | ||
kWriteDelete | ||
}; |
UInt_t | fControl | Control Flag. |
TPartSieve* | fS | |
TClasTool* | fCT | |
TCounterCol | fCuts | Keep track of cuts. |
TObjArray* | fH | Stores the main histograms in directory Hists |
TObjArray* | fHP | Stores paddle histograms in directory Paddles; |
TH1F* | APartCount | |
TH1F* | AMassPos | |
TH1F* | AMassNeg | |
TH1F* | AElec_mom | |
TH2F* | AElec_Q2W | |
TH2F* | AElec_Q2Lc | |
TH1F* | AElec_ec_u | |
TH1F* | AElec_ec_v | |
TH1F* | AElec_ec_w | |
TH2F* | AElec_ec_xy | |
TH2F* | AElec_ec_etot | |
TH2F* | AElec_ec_eio | |
TH1F* | AElec_cc | |
TH2F* | ABetaPPos | |
TH2F* | ABetaPNeg | |
TH1F* | SPartCount | |
TH1F* | SMassPos | |
TH1F* | SMassNeg | |
TH1F* | SElec_mom | |
TH2F* | SElec_Q2W | |
TH2F* | SElec_Q2Lc | |
TH1F* | SElec_ec_u | |
TH1F* | SElec_ec_v | |
TH1F* | SElec_ec_w | |
TH2F* | SElec_ec_xy | |
TH2F* | SElec_ec_etot | |
TH2F* | SElec_ec_eio | |
TH1F* | SElec_cc | |
TH2F* | SBetaPPos | |
TH2F* | SBetaPNeg | |
vector<int> | ABetaPIdx | |
vector<int> | ADeltatPIdx | |
vector<int> | SBetaPIdx | |
vector<int> | SDeltatPIdx | |
vector<vector<int> > | ASCBetaP | |
vector<vector<int> > | ASCDeltatP |
____________________
Created at UNH by Maurik Holtrop
TPartSieveHistograms supports the TPartSieve class by providing a number of generally useful histograms that help determine the correct settings of the particle cuts. It is thus rather linked to the TPartSieve class. Since opinions on what cuts are best differ, and thus which histograms are useful differ, these classes will never satisfy everyones tastes.
See TPartSieve for use of that class.
This class should be initialized in the initialization of your analysis code. It will create
a standard set of histograms in the directory "SieveHists".
In your event loop you would want to call the Fill() method right after sieving the particles.
After the loop is finished you can write the collection of histograms out to disk with the Write() method.
{ TClasTool *ct=new TClasTool(); ct->InitDSTReader(); ct->SetBeamEnergy(5.015); // in GeV ct->Add("mydata.root"); // WriteRootDST file with data. TPartSieve *Sieve=new TPartSieve(ct,0x03); // 0x03 is the control flag. TPartSieveHistograms *SHists=new TPartSieveHistograms(Sieve); Sieve->SortOn(); Sieve->ConfidenceOn(); for(Int_t ievt=0;ct->Next();ievt++){ Sieve->SieveEvent(); SHists->Fill(); // // Do analysis } TFile fs("SieveHists.root","CREATE"); SHists->Write(); fs.Close(); }
Additional information about this package, including an overview, can be found at the ClasTool Documentation web pages.
{return p/TMath::Sqrt(p*p + ClasTool::fgParticle_Mass[ipart]* ClasTool::fgParticle_Mass[ipart]);}