Public Member Functions | Protected Attributes | List of all members
flat::FlatVeto Class Reference

Flat encoding of SRVeto. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/FlatMaker/FlatVeto.h"

Public Member Functions

 FlatVeto (const std::string &prefix, TTree *tr, const IBranchPolicy *policy)
 
 ~FlatVeto ()
 
void Fill (const caf::SRVeto &sr)
 

Protected Attributes

int ncell
 
float fwddist
 
float bakdist
 
float ratio
 
float diry
 
float angle
 
float anglevar
 
float anglevarold
 
bool passthru
 
bool passthruold
 
bool passangle
 
bool passanglefirstana
 
bool passnumicut
 
bool keep
 
bool keepnue
 

Detailed Description

Flat encoding of SRVeto.

Definition at line 20 of file FlatVeto.h.

Constructor & Destructor Documentation

flat::FlatVeto::FlatVeto ( const std::string prefix,
TTree *  tr,
const IBranchPolicy policy 
)

Definition at line 1881 of file FlatRecord.cxx.

References angle, compare_h5_caf::branch, sanity_check_grl::keep, and ratio().

1882 {
1883  branch(tr, prefix+"ncell", &ncell, policy);
1884  branch(tr, prefix+"fwddist", &fwddist, policy);
1885  branch(tr, prefix+"bakdist", &bakdist, policy);
1886  branch(tr, prefix+"ratio", &ratio, policy);
1887  branch(tr, prefix+"diry", &diry, policy);
1888  branch(tr, prefix+"angle", &angle, policy);
1889  branch(tr, prefix+"anglevar", &anglevar, policy);
1890  branch(tr, prefix+"anglevarold", &anglevarold, policy);
1891  branch(tr, prefix+"passthru", &passthru, policy);
1892  branch(tr, prefix+"passthruold", &passthruold, policy);
1893  branch(tr, prefix+"passangle", &passangle, policy);
1894  branch(tr, prefix+"passanglefirstana", &passanglefirstana, policy);
1895  branch(tr, prefix+"passnumicut", &passnumicut, policy);
1896  branch(tr, prefix+"keep", &keep, policy);
1897  branch(tr, prefix+"keepnue", &keepnue, policy);
1898 }
float anglevarold
Definition: FlatVeto.h:36
bool passnumicut
Definition: FlatVeto.h:41
float ratio
Definition: FlatVeto.h:32
bool passthru
Definition: FlatVeto.h:37
bool passanglefirstana
Definition: FlatVeto.h:40
bool passthruold
Definition: FlatVeto.h:38
bool passangle
Definition: FlatVeto.h:39
float diry
Definition: FlatVeto.h:33
const XML_Char * prefix
Definition: expat.h:380
float bakdist
Definition: FlatVeto.h:31
float anglevar
Definition: FlatVeto.h:35
float angle
Definition: FlatVeto.h:34
bool keepnue
Definition: FlatVeto.h:43
float fwddist
Definition: FlatVeto.h:30
flat::FlatVeto::~FlatVeto ( )

Definition at line 1900 of file FlatRecord.cxx.

1901 {
1902 }

Member Function Documentation

void flat::FlatVeto::Fill ( const caf::SRVeto sr)

Definition at line 1904 of file FlatRecord.cxx.

References caf::SRVeto::angle, angle, caf::SRVeto::anglevar, caf::SRVeto::anglevarold, caf::SRVeto::bakdist, caf::SRVeto::diry, caf::SRVeto::fwddist, caf::SRVeto::keep, sanity_check_grl::keep, caf::SRVeto::keepnue, caf::SRVeto::ncell, caf::SRVeto::passangle, caf::SRVeto::passanglefirstana, caf::SRVeto::passnumicut, caf::SRVeto::passthru, caf::SRVeto::passthruold, caf::SRVeto::ratio, and ratio().

Referenced by flat::FlatIDBranch::Fill().

1905 {
1906  ncell = sr.ncell;
1907  fwddist = sr.fwddist;
1908  bakdist = sr.bakdist;
1909  ratio = sr.ratio;
1910  diry = sr.diry;
1911  angle = sr.angle;
1912  anglevar = sr.anglevar;
1913  anglevarold = sr.anglevarold;
1914  passthru = sr.passthru;
1915  passthruold = sr.passthruold;
1916  passangle = sr.passangle;
1918  passnumicut = sr.passnumicut;
1919  keep = sr.keep;
1920  keepnue = sr.keepnue;
1921 }
float anglevarold
Definition: FlatVeto.h:36
bool passnumicut
Definition: FlatVeto.h:41
bool passanglefirstana
Would this slice pass the old angle cut used for first analysis.
Definition: SRVeto.h:29
float ratio
Definition: FlatVeto.h:32
bool passthru
Definition: FlatVeto.h:37
bool passthru
Would this slice pass the (fixed) through-going check?
Definition: SRVeto.h:26
bool passangle
Would this slice pass the most recent angle cut?
Definition: SRVeto.h:28
bool passthruold
Would this slice pass the (not fixed, no ratio check) through-going check?
Definition: SRVeto.h:27
float angle
Cosine of CosmicTrack with respect to the beam direction.
Definition: SRVeto.h:23
bool keep
Definition: SRVeto.h:34
bool keepnue
Does the event past nue version of veto? (see doc-db 14654)
Definition: SRVeto.h:36
bool passanglefirstana
Definition: FlatVeto.h:40
bool passthruold
Definition: FlatVeto.h:38
float bakdist
Projected live distance to the edge projected backwards from track start.
Definition: SRVeto.h:20
bool passangle
Definition: FlatVeto.h:39
float diry
Definition: FlatVeto.h:33
float fwddist
Projected live distance to the edge projected forwards from track end.
Definition: SRVeto.h:19
int ncell
Number of hits in the slice.
Definition: SRVeto.h:18
bool passnumicut
Does this event pass the NuMI timing cuts?
Definition: SRVeto.h:32
float diry
Cosine of CosmicTrack with respect to the y-direction.
Definition: SRVeto.h:22
float anglevar
Defined as: abs(angle)*(diry+1) - new angle variable for new angle cut.
Definition: SRVeto.h:24
float bakdist
Definition: FlatVeto.h:31
float anglevar
Definition: FlatVeto.h:35
float angle
Definition: FlatVeto.h:34
bool keepnue
Definition: FlatVeto.h:43
float ratio
Number of hits in the track relative to the slice.
Definition: SRVeto.h:21
float fwddist
Definition: FlatVeto.h:30
float anglevarold
Difference of squares between beam angle and Y-direction (Also labeled CosmicVar AnglePID and AngleVa...
Definition: SRVeto.h:25

Member Data Documentation

float flat::FlatVeto::angle
protected

Definition at line 34 of file FlatVeto.h.

float flat::FlatVeto::anglevar
protected

Definition at line 35 of file FlatVeto.h.

float flat::FlatVeto::anglevarold
protected

Definition at line 36 of file FlatVeto.h.

float flat::FlatVeto::bakdist
protected

Definition at line 31 of file FlatVeto.h.

float flat::FlatVeto::diry
protected

Definition at line 33 of file FlatVeto.h.

float flat::FlatVeto::fwddist
protected

Definition at line 30 of file FlatVeto.h.

bool flat::FlatVeto::keep
protected

Definition at line 42 of file FlatVeto.h.

bool flat::FlatVeto::keepnue
protected

Definition at line 43 of file FlatVeto.h.

int flat::FlatVeto::ncell
protected

Definition at line 29 of file FlatVeto.h.

bool flat::FlatVeto::passangle
protected

Definition at line 39 of file FlatVeto.h.

bool flat::FlatVeto::passanglefirstana
protected

Definition at line 40 of file FlatVeto.h.

bool flat::FlatVeto::passnumicut
protected

Definition at line 41 of file FlatVeto.h.

bool flat::FlatVeto::passthru
protected

Definition at line 37 of file FlatVeto.h.

bool flat::FlatVeto::passthruold
protected

Definition at line 38 of file FlatVeto.h.

float flat::FlatVeto::ratio
protected

Definition at line 32 of file FlatVeto.h.


The documentation for this class was generated from the following files: