SpillVars.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Definition of the generic SpillCut object
4 #include "CAFAna/Core/Var.h"
5 
6 namespace ana
7 {
8  ///Return number of analyzable diblocks, taking into account gaps when appropriate.
9  extern const SpillVar kAnalysisDiblocks;
10 
11  ///Return the POT for the spill
12  extern const Var kSpillPOT;
13 
14  /// Return the Livetime for the spill
15  extern const Var kSpillLivetime;
16 }
17 
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const Var kSpillPOT
Return the POT for the spill.
Definition: SpillVars.cxx:33
Template for Var and SpillVar.
const SpillVar kAnalysisDiblocks([](const caf::SRSpillProxy *spill){std::bitset< 14 > binary(spill->dibmask);int totalDB=0;int countDB=1;int tmpDB=0;for(int i=0;i< 14;++i){if(countDB >=spill->dibfirst && countDB<=spill->diblast &&binary[i]) tmpDB++;else if(countDB >=spill->dibfirst && countDB<=spill->diblast &&!binary[i]){if(tmpDB >=4) totalDB+=tmpDB;tmpDB=0;}countDB++;}if(tmpDB >=4) totalDB+=tmpDB;return totalDB;})
Return number of analyzable diblocks, taking into account gaps when appropriate.
Definition: SpillVars.h:9
const Var kSpillLivetime
Return the Livetime for the spill.
Definition: SpillVars.cxx:36